Function at 0x4f36c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x834
cmp eax, 0x13
push esi
jne 0x4f37cb
mov eax, dword [0x63ad78]
push eax
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x4f39df
mov eax, dword [esp + 0x844]
cmp eax, 0x1b57
jne 0x4f3708
push 1
call fcn.00509bb0
add esp, 4
pop esi
add esp, 0x834
ret
lea esi, [eax - 0x1b58]
test esi, esi
jle 0x4f39df
mov edx, dword [0x63ad78]
push 0
push 0x64
lea ecx, [esp + 0x70]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_GetMenuStringA]
test eax, eax
jle 0x4f39df
mov al, byte [0x611d88]
test al, al
je 0x4f39df
mov edx, dword [0x63cacc]
test edx, edx
je 0x4f39df
test esi, esi
je 0x4f3764
mov edx, dword [edx + 0x40]
dec esi
test edx, edx
jne 0x4f3750
pop esi
add esp, 0x834
ret
xor eax, eax
jmp 0x4f3770
mov cl, byte [eax + 0x611d88]
mov byte [esp + eax + 0x450], cl
inc eax
test cl, cl
jne 0x4f3770
mov edx, dword [edx + 0x38]
push edx
mov dword [esp + 0x84c], edx
call fcn.00502a60
add esp, 4
test eax, eax
je 0x4f39df
mov eax, dword [esp + 0x848]
push eax
mov eax, dword [eax]
push 0
push 0
push 1
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x464]
push edx
push eax
call fcn.00447670
add esp, 0x1c
pop esi
add esp, 0x834
ret
cmp eax, 7
jne 0x4f39df
push ebx
push ebp
mov ebp, dword [esp + 0x84c]
cmp ebp, 0x1b54
push edi
jne 0x4f3807
mov eax, dword [0x609cec]
xor ecx, ecx
test eax, eax
sete cl
pop edi
pop ebp
pop ebx
pop esi
mov dword [0x609cec], ecx
add esp, 0x834
jmp fcn.00508fb0
cmp ebp, 0x1b57
jne 0x4f3848
mov eax, dword [0x645324]
mov edx, dword [0x645338]
push 5
push 0x9c
push 0x111
push eax
mov dword [0x60d418], 2
mov dword [0x60d1fc], edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x834
ret
lea ecx, [esp + 0x10]
push 0x64
push ecx
call fcn.00423a00
mov ebx, dword [esp + 0x854]
mov eax, dword [0x6374b8]
add esp, 8
cmp ebx, eax
jne 0x4f38c5
mov al, byte [0x6370d0]
test al, al
je 0x4f38c5
mov edx, dword [esp + 0x854]
push edx
push 1
push 0x6370d0
call fcn.00507b00
add esp, 0xc
test eax, eax
je 0x4f38ae
push eax
lea eax, [esp + 0x14]
push 0x64
push eax
call fcn.00423900
lea ecx, [esp + 0x1c]
push 0x21
push ecx
call fcn.005cbf10
add esp, 0x14
test eax, eax
je 0x4f38ae
mov byte [eax], 0
push 0x3e7
push 0x6370d0
call fcn.00423a00
add esp, 8
jmp 0x4f3954
mov edx, dword [0x645338]
push edx
call fcn.005827d0
mov esi, eax
add esp, 4
test esi, esi
je 0x4f3954
mov eax, dword [esi + 0x88c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x188
push eax
call edi
cmp eax, 0xffffffff
je 0x4f3954
mov edx, dword [esi + 0x88c]
lea ecx, [esp + 0x854]
push ecx
push 0
push eax
push 0x199
push edx
call edi
push eax
call fcn.00508c70
mov ecx, dword [esp + 0x85c]
add esp, 8
test ecx, ecx
je 0x4f39dc
test eax, eax
je 0x4f3954
mov ecx, dword [eax + 0x40c]
test ecx, ecx
jne 0x4f3954
mov esi, dword [esi + 0xbf4]
push esi
mov dword [esp + 0x858], esi
call fcn.00502a60
add esp, 4
test eax, eax
je 0x4f39dc
mov eax, dword [esp + 0x854]
push eax
call fcn.00502a60
add esp, 4
test eax, eax
je 0x4f39dc
cmp ebp, 0x1b56
jne 0x4f39c3
mov ax, word [0x5ed48c]
mov ecx, dword [str.__.notify]
mov edx, dword [0x5ed488]
mov word [esp + 0x7c], ax
mov eax, dword [esp + 0x854]
push eax
push 0
push 0
push 0
mov dword [esp + 0x84], ecx
push 0
lea ecx, [esp + 0x88]
mov dword [esp + 0x8c], edx
mov edx, dword [eax]
push ecx
push edx
call fcn.00447670
add esp, 0x1c
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x834
ret
mov eax, dword [esp + 0x854]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebp
push 2
push ebx
call fcn.004f1e80
add esp, 0x14
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x834
ret