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

Disassembly:
push 0xffffffffffffffff
push 0x5e2479
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x204], eax
push ebp
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov edi, dword [esp + 0x22c]
mov eax, dword [esp + 0x234]
mov esi, dword [esp + 0x228]
mov ecx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
call fcn.00522510
cmp eax, 3
jne 0x540552
mov ecx, dword [edi + 0x10]
test byte [ecx + 2], 1
je 0x540552
lea ecx, [esp + 0x54]
call fcn.004ee1e0
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x224], 0
call fcn.00568da0
test eax, eax
je 0x54053d
mov ax, word [esp + 0x74]
test al, 2
jne 0x5404dc
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x54053d
mov eax, dword [esp + 0x70]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x5c]
call fcn.004f2440
push eax
lea ecx, [esp + 0x34]
call fcn.004f2bd0
lea edx, [esp + 0x2c]
push edx
push esi
mov byte [esp + 0x228], 1
call fcn.0053b310
add esp, 8
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x220], 0
call fcn.004f2cc0
lea ecx, [esp + 0x54]
mov dword [esp + 0x220], 0xffffffff
call fcn.004eeaf0
mov eax, esi
jmp 0x5408ad
or ebp, 0xffffffff
lea ecx, [esp + 0x54]
mov dword [esp + 0x220], ebp
call fcn.004eeaf0
jmp 0x540555
or ebp, 0xffffffff
mov ecx, esi
call fcn.00522510
cmp eax, 3
jne 0x540620
mov eax, dword [esi + 0x10]
test byte [eax + 2], 1
je 0x540620
lea ecx, [esp + 0x78]
call fcn.004ee1e0
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x224], 2
call fcn.00568da0
test eax, eax
je 0x540610
mov ax, word [esp + 0x98]
test al, 2
jne 0x5405ad
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x540610
mov eax, dword [esp + 0x94]
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x80]
call fcn.004f2440
push eax
lea ecx, [esp + 0x44]
call fcn.004f2bd0
lea edx, [esp + 0x3c]
push edi
push edx
mov byte [esp + 0x228], 3
call fcn.005398b0
add esp, 8
lea ecx, [esp + 0x3c]
mov esi, eax
mov byte [esp + 0x220], 2
call fcn.004f2cc0
lea ecx, [esp + 0x78]
mov dword [esp + 0x220], ebp
call fcn.004eeaf0
mov eax, esi
jmp 0x5408ad
lea ecx, [esp + 0x78]
mov dword [esp + 0x220], ebp
call fcn.004eeaf0
push esi
lea ecx, [esp + 0xa0]
call fcn.005353a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x220], 4
call fcn.004f6ca0
mov eax, dword [esp + 0xa8]
mov byte [esp + 0x220], 5
cmp eax, dword [esp + 0xac]
ja 0x540758
lea ecx, [ecx]
mov ecx, dword [esp + 0xbc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
cmp eax, 6
mov eax, dword [esp + 0xbc]
jne 0x5406df
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 4]
jne 0x54068e
mov edx, dword [eax + 0x10]
cmp edx, dword [eax + 8]
je 0x540738
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.005001d0
add esp, 8
test eax, eax
je 0x540738
push 0x14
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x220], 6
test eax, eax
je 0x5406d6
mov ecx, dword [esp + 0xbc]
push ecx
mov ecx, eax
call fcn.004f5480
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
jmp 0x540725
mov edx, dword [esp + 0x10]
xor esi, esi
push edx
jmp 0x540725
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00500050
add esp, 8
test eax, eax
je 0x540738
push 0x24
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x220], 7
test eax, eax
je 0x54071e
mov edx, dword [esp + 0xbc]
push edx
mov ecx, eax
call fcn.004f0c50
mov esi, eax
jmp 0x540720
xor esi, esi
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x224], 5
call fcn.005bbe80
mov dword [eax], esi
lea ecx, [esp + 0x9c]
call fcn.00535020
mov ecx, dword [esp + 0xa8]
cmp ecx, dword [esp + 0xac]
jbe 0x540660
cmp dword [esp + 0x10], 0
je 0x540884
push edi
lea ecx, [esp + 0x15c]
call fcn.005353a0
mov edx, dword [esp + 0x164]
mov byte [esp + 0x220], 8
cmp edx, dword [esp + 0x168]
ja 0x540867
xor ebp, ebp
cmp dword [esp + 0x10], ebp
jle 0x540844
mov ecx, dword [esp + 0x178]
nop
mov eax, dword [ecx]
mov edx, dword [eax + 0x5c]
call edx
mov ecx, dword [esp + 0x178]
cmp eax, 6
jne 0x5407c3
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 4]
jne 0x5407c3
mov edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 8]
je 0x540815
mov eax, dword [esp + 0x18]
mov edx, dword [ecx]
mov esi, dword [eax + ebp*4]
mov eax, dword [edx + 0x5c]
mov edi, ecx
call eax
mov edx, dword [esi]
cmp eax, 6
mov eax, dword [edx + 0x5c]
mov ecx, esi
jne 0x5407ef
call eax
push esi
push edi
cmp eax, 6
jne 0x5407f8
call fcn.0053e240
jmp 0x540806
call eax
cmp eax, 6
jne 0x5407ff
push edi
push esi
call fcn.0053a9a0
jmp 0x540806
push esi
push edi
call fcn.0053ab30
add esp, 8
cmp eax, 1
jne 0x54081e
mov ecx, dword [esp + 0x178]
inc ebp
cmp ebp, dword [esp + 0x10]
jl 0x5407a0
jmp 0x540844
cmp eax, 2
jne 0x5408d4
mov ecx, dword [esp + 0x178]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.005400f0
add esp, 8
test eax, eax
je 0x5408d4
lea ecx, [esp + 0x158]
call fcn.00535020
mov eax, dword [esp + 0x164]
cmp eax, dword [esp + 0x168]
jbe 0x54078c
or ebp, 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004f6cf0
lea ecx, [esp + 0x158]
mov byte [esp + 0x220], 5
call fcn.00534f60
lea ecx, [esp + 0x10]
mov byte [esp + 0x220], 4
call fcn.00467410
lea ecx, [esp + 0x9c]
mov dword [esp + 0x220], ebp
call fcn.00534f60
mov eax, 1
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x214
ret
lea ecx, [esp + 0x10]
call fcn.004f6cf0
lea ecx, [esp + 0x158]
mov byte [esp + 0x220], 5
call fcn.00534f60
lea ecx, [esp + 0x10]
mov byte [esp + 0x220], 4
call fcn.00467410
lea ecx, [esp + 0x9c]
mov dword [esp + 0x220], 0xffffffff
call fcn.00534f60
xor eax, eax
jmp 0x5408ad