Question: Write the assembly function below in C psuedocode. test: proc near push sLock call _strlen pop ecx mov esi, eax mov ebx, offset sAccountLock push

Write the assembly function below in C psuedocode.

test: proc near

push sLock

call _strlen

pop ecx

mov esi, eax

mov ebx, offset sAccountLock

push ebx

call _strlen

pop ecx

cmp esi, eax

jz short loc_4011A1

xor eax, eax

jmp short end_proc

loc_4011A1:

push esi

push ebx

push sLock

call _strcmp

add esp, 4

test eax, eax

jnz short loc_4013CC

mov eax, 1

jmp short end_proc

loc_4013CC:

xor eax, eax

end_proc:

pop esi

pop ebx

pop ebp

retn

endp

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!