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

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0xb0
mov ebp, dword [esp + 0xcc]
fld dword [ebp + 4]
fld dword [ebp + 8]
fld dword [ebp]
fstp dword [esp + 0xa4]
fld st(1)
lea eax, [esp + 0xa4]
lea edx, [esp + 0xa4]
fstp dword [esp + 0xa8]
fst dword [esp + 0xac]
fcompp
push 0x7e4ea8
push 1
push edx
push eax
call fcn.00647160
fldz
fldz
fld dword [esp + 0xb8]
fstp st(2)
add esp, 0x10
fld st(1)
fadd dword [0x694e00]
fcomp dword [0x978534]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x53a040
xor al, al
jmp 0x53a105
fld st(1)
fsub dword [0x694e00]
fcomp dword [0xa10678]
fnstsw ax
test ah, 0x45
jne 0x53a060
xor al, al
jmp 0x53a105
fld st(1)
fmul dword [0x7e4f44]
fld dword [esp + 0xa4]
fmul dword [0x7e4f40]
faddp st(1)
fcomp dword [0x694e00]
fnstsw ax
test ah, 0x45
jne 0x53a088
xor al, al
jmp 0x53a105
fld st(1)
fmul dword [0x7e4f50]
fld dword [esp + 0xa4]
fmul dword [0x7e4f4c]
faddp st(1)
fcomp dword [0x694e00]
fnstsw ax
test ah, 0x45
jne 0x53a0b0
xor al, al
jmp 0x53a105
fld dword [esp + 0xac]
fst st(1)
fmul dword [0x7e4f60]
fld st(2)
fmul dword [0x7e4f5c]
faddp st(1)
fcomp dword [0x694e00]
fnstsw ax
test ah, 0x45
jne 0x53a0e0
xor al, al
jmp 0x53a105
fld st(0)
fmul dword [0x7e4f6c]
fld st(2)
fmul dword [0x7e4f68]
faddp st(1)
fcomp dword [0x694e00]
fnstsw ax
test ah, 0x45
jne 0x53a103
xor al, al
jmp 0x53a105
mov al, 1
test al, al
je 0x53a658
fcompp
call fcn.004bc120
add eax, 0x34
fldz
fldz
fld dword [ebp + 4]
fsub dword [eax + 4]
fstp st(2)
fld dword [ebp]
fsub dword [eax]
fstp st(1)
fld st(1)
fstp st(2)
fld st(1)
fmul st(0)
fld st(1)
fmul st(0)
faddp st(1)
fsqrt
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x40]
fcompp
mov dword [esp + 0x28], eax
call fcn.004bc1e0
test eax, eax
je 0x53a1e1
call fcn.004bc1e0
fld dword [eax + 0x74]
fstp dword [esp + 0x24]
call fcn.004bc1e0
fld dword [eax + 0x74]
fmul dword [esp + 0x24]
fstp dword [esp + 0x2c]
call fcn.004bc1e0
fld dword [eax + 0x70]
fstp dword [esp + 0x20]
call fcn.004bc1e0
fldz
fld dword [eax + 0x70]
fmul dword [esp + 0x20]
fadd dword [esp + 0x2c]
fsqrt
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp st(1)
fsub dword [0x694dd4]
fadd dword [0x694dd8]
fld dword [0x694dd8]
fcomp st(1)
fnstsw ax
test ah, 0x45
jne 0x53a1be
fld dword [0x694dd8]
fstp st(1)
fld dword [0x694dd0]
fcomp st(1)
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x53a1d8
fld dword [0x694dd0]
fstp st(1)
fst dword [esp + 0x1c]
jmp 0x53a651
fld dword [0x694dd8]
fstp dword [esp + 0x1c]
fld dword [0x694ddc]
fmul dword [esp + 0x1c]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x45
jne 0x53a210
add esp, 0xb0
pop ebp
pop edi
pop esi
pop ebx
ret
push 0
push 0xffffffffffffffff
push dword [0x694e00]
push ebp
call fcn.0052fbd0
add esp, 0x10
test al, al
jne 0x53a232
add esp, 0xb0
pop ebp
pop edi
pop esi
pop ebx
ret
fld dword [0x694dd8]
fadd dword [ebp + 8]
lea eax, [esp + 0x4f]
push eax
push eax
fstp dword [esp]
push dword [ebp + 4]
push dword [ebp]
call fcn.004d53a0
fadd dword [0x694dd8]
add esp, 0x10
cmp byte [esp + 0x4f], 0
fstp dword [esp + 0x14]
jne 0x53a270
add esp, 0xb0
pop ebp
pop edi
pop esi
pop ebx
ret
fldz
fld dword [ebp + 8]
fst st(1)
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x45
jne 0x53a288
fst dword [esp + 0x30]
jmp 0x53a290
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc4]
add eax, 0xfffffff9
push eax
fstp st(0)
call fcn.004eed20
mov esi, eax
pop ecx
mov ecx, dword [esi*4 + 0x92d4c8]
mov edi, dword [ecx]
call dword [edi + 0x14]
test eax, eax
fldz
jne 0x53a2c4
add esp, 0xb0
fstp st(0)
pop ebp
pop edi
pop esi
pop ebx
ret
fld dword [ebp + 4]
mov eax, dword [esp + 0x30]
fstp st(1)
fld dword [ebp]
mov dword [esp + 0x7c], eax
fstp dword [esp + 0x74]
lea eax, [esp + 0x74]
fst dword [esp + 0x78]
push 0
push eax
push esi
push dword [esp + 0xd0]
fstp st(0)
call fcn.0053b600
add esp, 0x10
test eax, eax
mov dword [esp + 0xc], eax
jne 0x53a308
add esp, 0xb0
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esp + 0xc]
push 0
call fcn.005224b0
call fcn.006499f0
and eax, 0xffff
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fmul dword [0x694de4]
fmul dword [0x694de0]
fnstcw word [esp + 0x10]
mov eax, dword [esp + 0x10]
or byte [esp + 0x11], 0xc
fldcw word [esp + 0x10]
mov dword [esp + 0x10], eax
fistp dword [esp + 0x40]
fldcw word [esp + 0x10]
mov eax, dword [esp + 0x40]
push eax
call fcn.004facc0
mov eax, dword [esp + 0xc]
mov bl, byte [eax + 0x151]
and bl, 0xfd
or bl, 2
mov byte [eax + 0x151], bl
push dword [esp + 0xc4]
call fcn.004eef10
test al, al
pop ecx
je 0x53a399
mov eax, dword [esp + 0xc]
mov dl, byte [eax + 0x158]
and dl, 0x7f
or dl, 0x80
mov byte [eax + 0x158], dl
mov eax, dword [esp + 0xc]
mov dword [esp + 4], 0
inc dword [esp + 4]
cmp dword [esp + 0xc8], 1
mov dword [esp + 8], 1
mov dword [esp + 0x50], eax
jle 0x53a5f4
mov eax, dword [esp + 0xc4]
add eax, 0xfffffff9
push eax
call fcn.004eed20
mov edi, eax
pop ecx
mov ecx, dword [edi*4 + 0x92d4c8]
mov ebx, dword [ecx]
call dword [ebx + 0x14]
test eax, eax
fldz
je 0x53a660
fld dword [ebp + 4]
mov eax, dword [esp + 0x30]
fstp st(1)
fld dword [ebp]
mov dword [esp + 0x88], eax
fstp dword [esp + 0x80]
lea eax, [esp + 0x80]
fst dword [esp + 0x84]
push 0
push eax
push edi
push dword [esp + 0xd0]
fstp st(0)
call fcn.0053b600
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x53a5df
mov ecx, ebx
push dword [esp + 0xc]
push 0xf
call fcn.00521f10
mov ecx, ebx
push dword [esp + 8]
call fcn.0051a020
lea eax, [esp + 0x8c]
mov ecx, ebx
push eax
call fcn.00519e30
lea esi, [esp + 0x8c]
lea edi, [esp + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
fld dword [0x694dd8]
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x73]
mov dword [esp + 0x38], eax
push edx
fadd dword [esp + 0x3c]
push eax
fstp dword [esp]
mov eax, dword [esp + 0x70]
push eax
mov dword [esp + 0x48], eax
push dword [esp + 0x70]
call fcn.004d53a0
fadd dword [0x694dd8]
add esp, 0x10
fstp dword [esp + 0x18]
fld dword [esp + 0x38]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x45
jne 0x53a4b7
mov eax, dword [esp + 0x38]
jmp 0x53a4bb
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
cmp byte [esp + 0x73], 0
fldz
jne 0x53a4e7
push ebx
fstp st(0)
call fcn.004db310
test ebx, ebx
pop ecx
je 0x53a5df
mov ecx, ebx
mov edi, dword [ecx]
push 1
call dword [edi + 8]
jmp 0x53a5df
mov esi, dword [esp + 0xc]
fld dword [esp + 0x34]
add esi, 0x34
fsub dword [esi + 8]
fabs
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fst st(1)
fcomp dword [0x694dd8]
fnstsw ax
test ah, 0x45
jne 0x53a530
push ebx
fstp st(0)
call fcn.004db310
test ebx, ebx
pop ecx
je 0x53a5df
mov ecx, ebx
mov esi, dword [ecx]
push 1
call dword [esi + 8]
jmp 0x53a5df
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x98]
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push esi
push eax
fstp st(0)
mov dword [esp + 0xc0], edx
call fcn.004da560
add esp, 0x24
test al, al
jne 0x53a590
push ebx
call fcn.004db310
test ebx, ebx
pop ecx
je 0x53a5df
mov ecx, ebx
mov edi, dword [ecx]
push 1
call dword [edi + 8]
jmp 0x53a5df
fld dword [esp + 0x64]
fstp dword [ebx + 0x34]
fld dword [esp + 0x3c]
fstp dword [ebx + 0x38]
fld dword [esp + 0x34]
fstp dword [ebx + 0x3c]
mov eax, dword [esp + 4]
mov dword [esp + eax*4 + 0x50], ebx
inc dword [esp + 4]
push dword [esp + 0xc4]
call fcn.004eef10
test al, al
pop ecx
je 0x53a5d2
mov al, byte [ebx + 0x158]
and al, 0x7f
or al, 0x80
mov byte [ebx + 0x158], al
mov eax, dword [ebx + 0x4c]
push 0
push eax
call fcn.00581500
pop ecx
pop ecx
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0xc8]
jl 0x53a3c3
cmp dword [esp + 4], 3
jge 0x53a625
xor edi, edi
cmp dword [esp + 4], 0
jle 0x53a646
mov ebp, dword [esp + edi*4 + 0x50]
push ebp
call fcn.004db310
test ebp, ebp
pop ecx
je 0x53a61c
mov ecx, ebp
mov esi, dword [ecx]
push 1
call dword [esi + 8]
inc edi
cmp edi, dword [esp + 4]
jl 0x53a604
jmp 0x53a646
cmp dword [esp + 4], 1
mov ebx, 1
jle 0x53a646
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + ebx*4 + 0x50]
push eax
call fcn.004f07d0
inc ebx
cmp ebx, dword [esp + 4]
jl 0x53a631
add esp, 0xb0
pop ebp
pop edi
pop esi
pop ebx
ret
fstp st(0)
jmp 0x53a1eb
fcompp
jmp 0x53a210
fstp st(0)
jmp 0x53a5df