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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e1bf7
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
mov dword [esp + 0x60], esi
call fcn.004f6ca0
mov eax, dword [esi + 0xc]
mov dword [esp + 0x228], 0
test eax, eax
jle 0x539dc7
lea ecx, [esp + 0x114]
call fcn.00560f00
push esi
lea ecx, [esp + 0x118]
mov byte [esp + 0x22c], 1
call fcn.00561700
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x118]
call fcn.00564a60
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx]
lea ecx, [esp + 0x114]
mov dword [esp + 0x14], edi
mov byte [esp + 0x228], 0
call fcn.00560f20
jmp 0x539dcd
mov dword [esp + 0x14], esi
mov edi, esi
lea ecx, [esp + 0xc4]
call fcn.004fd440
lea ecx, [esp + 0x38]
call fcn.004f5420
mov byte [esp + 0x228], 2
call fcn.004f9f20
add eax, 5
push ebx
mov ecx, edi
mov dword [esp + 0x34], eax
call fcn.00527a20
test eax, eax
jne 0x539e37
lea ecx, [esp + 0x18]
call fcn.004f6cf0
lea ecx, [esp + 0x38]
mov byte [esp + 0x228], 0
call fcn.004f54b0
lea ecx, [esp + 0x18]
mov dword [esp + 0x228], 0xffffffff
call fcn.00467410
xor eax, eax
jmp 0x53a495
mov eax, 1
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x5c], eax
jle 0x53a462
mov dword [esp + 0x34], ebx
lea ecx, [ecx]
lea esi, [ebx + 8]
push esi
mov ecx, edi
call fcn.00527a20
test eax, eax
je 0x539e02
push esi
push ebx
lea ecx, [esp + 0xcc]
call fcn.004fd4a0
mov edx, dword [ebx]
mov ecx, dword [esi]
mov eax, dword [ebx + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], edx
call fcn.005bbf60
push edi
lea ecx, [esp + 0x158]
mov byte [esp + 0x22c], 3
call fcn.005353a0
mov eax, dword [esp + 0x160]
mov byte [esp + 0x228], 4
cmp eax, dword [esp + 0x164]
ja 0x53a346
mov ecx, dword [esp + 0x174]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
sub eax, 1
je 0x53a0ff
sub eax, 5
jne 0x53a0cc
mov edx, dword [esp + 0x174]
lea ecx, [esp + 0x4c]
push ecx
push edx
lea ecx, [esp + 0x14c]
call fcn.004fd450
push eax
lea ecx, [esp + 0xcc]
call fcn.004fe330
test eax, eax
je 0x53a326
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x28]
call fcn.005b8490
mov ecx, dword [esp + 0x4c]
mov dword [eax], ecx
mov edx, dword [esp + 0x50]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0xbc]
push edx
push ebx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
call fcn.004fa0c0
add esp, 8
test eax, eax
je 0x539f69
mov eax, dword [esp + 0x30]
neg eax
push eax
lea ecx, [esp + 0x108]
push ecx
jmp 0x53a0b3
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x94]
mov dword [esp + 0x98], eax
push ecx
lea eax, [ebx + 8]
push eax
mov dword [esp + 0x9c], edx
call fcn.004fa0c0
add esp, 8
test eax, eax
je 0x539fb4
mov edx, dword [esp + 0x30]
neg edx
push edx
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x40]
call fcn.004f5d20
jmp 0x53a0bc
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x174]
lea eax, [esp + 0xa4]
push eax
add ecx, 4
push ecx
mov dword [esp + 0xb0], edx
call fcn.004fa0c0
add esp, 8
test eax, eax
jne 0x53a022
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x174]
lea ecx, [esp + 0xb4]
push ecx
add edx, 0xc
push edx
mov dword [esp + 0xc0], eax
call fcn.004fa0c0
add esp, 8
test eax, eax
je 0x53a0cc
lea eax, [esp + 0x4c]
push eax
mov ecx, ebx
call fcn.005b87c0
fst qword [esp + 0x64]
fild dword [esp + 0x30]
fst qword [esp + 0x6c]
fld st(1)
fchs
fsub st(1)
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x53a057
fstp st(0)
faddp st(1)
fsubr qword [0x5ecc78]
jmp 0x53a061
fstp st(2)
fstp st(0)
fsub qword [0x5ecc78]
call fcn.005bd3f0
push eax
lea ecx, [esp + 0x110]
push ecx
lea ecx, [esp + 0x40]
call fcn.004f5ce0
push eax
mov ecx, edi
call fcn.00527a20
test eax, eax
je 0x53a0cc
fld qword [esp + 0x6c]
fsub qword [esp + 0x64]
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x53a09f
fadd qword [0x5ecc78]
jmp 0x53a0a5
fsub qword [0x5ecc78]
call fcn.005bd3f0
push eax
lea edx, [esp + 0xe0]
push edx
lea ecx, [esp + 0x40]
call fcn.004f5ce0
push eax
mov ecx, edi
call fcn.00527a20
test eax, eax
jne 0x53a326
lea ecx, [esp + 0x18]
call fcn.004f6cf0
lea ecx, [esp + 0x154]
mov byte [esp + 0x228], 3
call fcn.00534f60
lea ecx, [esp + 0x24]
mov byte [esp + 0x228], 2
call fcn.005b9680
jmp 0x539e0b
mov edx, dword [esp + 0x174]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x50]
push ecx
push edx
lea ecx, [esp + 0xd0]
call fcn.004fe6f0
mov edi, eax
xor esi, esi
test edi, edi
jle 0x53a145
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x28]
call fcn.005b8490
mov ecx, dword [esp + esi*8 + 0x4c]
mov dword [eax], ecx
mov ecx, dword [esp + esi*8 + 0x50]
inc esi
cmp esi, edi
mov dword [eax + 4], ecx
jl 0x53a125
cmp dword [esp + 0x78], 0
jne 0x53a151
cmp edi, 1
je 0x53a15a
cmp edi, 2
jne 0x53a322
xor ebx, ebx
test edi, edi
jle 0x53a31e
lea esi, [esp + 0x4c]
jmp 0x53a170
mov edx, dword [esi]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x98], eax
call fcn.004fa0c0
add esp, 8
test eax, eax
je 0x53a1ae
mov eax, dword [esp + 0x30]
neg eax
lea ecx, [esp + 0xe4]
jmp 0x53a2f5
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x84]
push ecx
add eax, 8
push eax
mov dword [esp + 0x8c], edx
call fcn.004fa0c0
add esp, 8
test eax, eax
je 0x53a1fa
mov edx, dword [esp + 0x30]
neg edx
push edx
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x40]
call fcn.004f5d20
jmp 0x53a300
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x174]
lea eax, [esp + 0xac]
push eax
add ecx, 4
push ecx
mov dword [esp + 0xb8], edx
call fcn.004fa0c0
add esp, 8
test eax, eax
jne 0x53a262
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x174]
lea ecx, [esp + 0x9c]
push ecx
add edx, 0xc
push edx
mov dword [esp + 0xa8], eax
call fcn.004fa0c0
add esp, 8
test eax, eax
je 0x53a0cc
mov ecx, dword [esp + 0x34]
push esi
call fcn.005b87c0
fst qword [esp + 0x64]
fild dword [esp + 0x30]
fst qword [esp + 0x6c]
fld st(1)
fchs
fsub st(1)
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x53a295
fstp st(0)
faddp st(1)
fsubr qword [0x5ecc78]
jmp 0x53a29f
fstp st(2)
fstp st(0)
fsub qword [0x5ecc78]
call fcn.005bd3f0
push eax
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x40]
call fcn.004f5ce0
mov ecx, dword [esp + 0x14]
push eax
call fcn.00527a20
test eax, eax
je 0x53a0cc
fld qword [esp + 0x6c]
fsub qword [esp + 0x64]
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x53a2e3
fadd qword [0x5ecc78]
jmp 0x53a2e9
fsub qword [0x5ecc78]
call fcn.005bd3f0
lea ecx, [esp + 0xec]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.004f5ce0
mov ecx, dword [esp + 0x14]
push eax
call fcn.00527a20
test eax, eax
je 0x53a0cc
inc ebx
add esi, 8
cmp ebx, edi
jl 0x53a170
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x154]
call fcn.00535020
mov edx, dword [esp + 0x160]
cmp edx, dword [esp + 0x164]
jbe 0x539ec1
lea ecx, [esp + 0x154]
mov byte [esp + 0x228], 3
call fcn.00534f60
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x28]
call fcn.005b8490
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x28]
call fcn.005b8490
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov ecx, dword [ebx + 0xc]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
push ebx
push edx
push eax
call fcn.005297a0
mov ecx, dword [esp + 0x30]
dec ecx
add esp, 0xc
xor esi, esi
test ecx, ecx
jle 0x53a438
lea ecx, [ecx]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + esi*8 + 8]
mov eax, dword [eax + esi*8]
push ecx
push eax
call fcn.004fa020
add esp, 8
test eax, eax
je 0x53a3e3
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + esi*8 + 0xc]
mov eax, dword [eax + esi*8 + 4]
push ecx
push eax
call fcn.004fa020
add esp, 8
test eax, eax
jne 0x53a42a
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + esi*8 + 0xc]
mov ecx, dword [eax + esi*8 + 4]
mov edi, dword [eax + esi*8]
mov eax, dword [eax + esi*8 + 8]
lea ecx, [edx + ecx + 1]
sar ecx, 1
lea eax, [eax + edi + 1]
lea edx, [esp + 0x7c]
sar eax, 1
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x60]
push edx
mov dword [esp + 0x80], eax
call fcn.00527a20
test eax, eax
je 0x53a0e9
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc esi
dec eax
cmp esi, eax
jl 0x53a3b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x228], 2
call fcn.005b9680
mov eax, dword [esp + 0x5c]
inc eax
add ebx, 8
cmp eax, dword [ebp + 0x10]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x34], ebx
jl 0x539e50
lea ecx, [esp + 0x18]
call fcn.004f6cf0
lea ecx, [esp + 0x38]
mov byte [esp + 0x228], 0
call fcn.004f54b0
lea ecx, [esp + 0x18]
mov dword [esp + 0x228], 0xffffffff
call fcn.00467410
mov eax, 1
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005bd2c6
mov esp, ebp
pop ebp
ret