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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6098e8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x6b9a04]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x6b9a04]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi]
xor edi, edi
mov dword [esp + 0x18], esi
cmp ecx, edi
je 0x539964
cmp dword [ecx + 4], edi
je 0x539964
call fcn.005abbd7
mov ecx, dword [esi]
cmp ecx, edi
je 0x539964
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push 8
call fcn.0059a17e
pop ecx
cmp eax, edi
je 0x53997d
mov dword [eax], vtable.CMenu.0
mov dword [eax + 4], edi
mov ecx, eax
jmp 0x53997f
xor ecx, ecx
mov dword [esi], ecx
call fcn.00436128
lea eax, [esp + 0x1c]
push eax
call fcn.0044c572
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x84], edi
push dword [ebx]
call fcn.0055be57
mov dword [esp + 0x10], edi
cmp dword [ebx + 0xc], edi
jne 0x539a37
mov esi, dword [esp + 0x2c]
sub esi, dword [esp + 0x28]
xor ecx, ecx
sar esi, 2
push 8
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0059a1b8
pop ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x80], 1
test eax, eax
je 0x539a0a
push 0x438978
push 0x438983
push esi
lea edi, [eax + 4]
push 8
push edi
mov dword [eax], esi
call fcn.005c7af9
mov eax, edi
jmp 0x539a0c
xor eax, eax
mov esi, dword [esp + 0x18]
mov byte [esp + 0x80], 0
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x2c]
mov ecx, eax
sub ecx, dword [esp + 0x28]
mov dword [esp + 0x10], 1
sar ecx, 2
mov dword [ebx + 8], ecx
xor edi, edi
jmp 0x539a3b
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 2
cmp eax, dword [ebx + 8]
jne 0x539bf3
push edi
push edi
lea eax, [esp + 0x3c]
push 0x54
push eax
call fcn.00401181
push eax
call fcn.0052bb08
mov byte [esp + 0x80], 2
push dword [eax]
lea ecx, [esp + 0x58]
call fcn.0040518c
mov byte [esp + 0x80], 4
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.00405172
cmp dword [ebp + 8], edi
jne 0x539aa7
push 0x64775c
call fcn.005c3140
pop ecx
push eax
push 0x64775c
xor eax, eax
lea ecx, [esp + 0x5c]
call fcn.004131a9
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x539ab6
lea eax, [esp + 0x58]
mov esi, dword [esi]
push eax
push 0x81b0
push edi
push dword [esi + 4]
call dword [0x6347b0]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
test eax, 0xfffffffc
jle 0x539be7
lea esi, [esp + 0x1c]
call fcn.0044280d
mov esi, dword [eax]
push esi
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ebx]
mov dword [esp + 0x1c], esi
call fcn.0055bced
mov byte [esp + 0x80], 5
cmp dword [ebp + 8], esi
jne 0x539b1d
mov esi, 0x64775c
push esi
call fcn.005c3140
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [esp + 0x40]
call fcn.004131a9
cmp dword [esp + 0x50], 0x10
mov edx, dword [esp + 0x3c]
jae 0x539b2c
lea edx, [esp + 0x3c]
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
push edx
lea ecx, [edi + 0x81b1]
push ecx
push 0
push dword [eax + 4]
call dword [0x6347b0]
cmp dword [esp + 0x10], 0
je 0x539b8e
mov dword [esp + 0xc], 0x18
call fcn.00435737
cmp dword [eax + 0x24], 0
jne 0x539b6b
push 0x48
call dword [0x6347e0]
mov dword [esp + 0xc], eax
push dword [esp + 0xc]
push 4
call dword [0x634828]
push eax
push dword [esp + 0x1c]
push ebx
call fcn.00539e0b
push eax
mov eax, dword [ebx + 0xc]
lea ecx, [eax + edi*8]
call fcn.005ab855
mov eax, dword [ebx + 0xc]
mov ecx, dword [esi]
lea eax, [eax + edi*8]
test eax, eax
jne 0x539b9e
xor edx, edx
jmp 0x539ba1
mov edx, dword [eax + 4]
test eax, eax
je 0x539ba8
mov eax, dword [eax + 4]
push edx
push eax
push 0
lea eax, [edi + 0x81b1]
push eax
push dword [ecx + 4]
call dword [0x634638]
push 0
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x88], 4
call fcn.004055c2
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
inc edi
sar eax, 2
cmp edi, eax
jl 0x539adb
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x5c]
call fcn.004055c2
lea esi, [esp + 0x1c]
call fcn.004e3a7c
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.005c30b2
mov esp, ebp
pop ebp
ret 4