Function at 0x539fe0
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 0x7e4eb0
push 1
push edx
push eax
call fcn.006471b0
fldz
fldz
fld dword [esp + 0xb8]
fstp st(2)
add esp, 0x10
fld st(1)
fadd dword [0x694e00]
fcomp dword [0x97853c]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x53a060
xor al, al
jmp 0x53a125
fld st(1)
fsub dword [0x694e00]
fcomp dword [0xa10680]
fnstsw ax
test ah, 0x45
jne 0x53a080
xor al, al
jmp 0x53a125
fld st(1)
fmul dword [0x7e4f4c]
fld dword [esp + 0xa4]
fmul dword [0x7e4f48]
faddp st(1)
fcomp dword [0x694e00]
fnstsw ax
test ah, 0x45
jne 0x53a0a8
xor al, al
jmp 0x53a125
fld st(1)
fmul dword [0x7e4f58]
fld dword [esp + 0xa4]
fmul dword [0x7e4f54]
faddp st(1)
fcomp dword [0x694e00]
fnstsw ax
test ah, 0x45
jne 0x53a0d0
xor al, al
jmp 0x53a125
fld dword [esp + 0xac]
fst st(1)
fmul dword [0x7e4f68]
fld st(2)
fmul dword [0x7e4f64]
faddp st(1)
fcomp dword [0x694e00]
fnstsw ax
test ah, 0x45
jne 0x53a100
xor al, al
jmp 0x53a125
fld st(0)
fmul dword [0x7e4f74]
fld st(2)
fmul dword [0x7e4f70]
faddp st(1)
fcomp dword [0x694e00]
fnstsw ax
test ah, 0x45
jne 0x53a123
xor al, al
jmp 0x53a125
mov al, 1
test al, al
je 0x53a678
fcompp
call fcn.004bc140
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.004bc200
test eax, eax
je 0x53a201
call fcn.004bc200
fld dword [eax + 0x74]
fstp dword [esp + 0x24]
call fcn.004bc200
fld dword [eax + 0x74]
fmul dword [esp + 0x24]
fstp dword [esp + 0x2c]
call fcn.004bc200
fld dword [eax + 0x70]
fstp dword [esp + 0x20]
call fcn.004bc200
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 0x53a1de
fld dword [0x694dd8]
fstp st(1)
fld dword [0x694dd0]
fcomp st(1)
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x53a1f8
fld dword [0x694dd0]
fstp st(1)
fst dword [esp + 0x1c]
jmp 0x53a671
fld dword [0x694dd8]
fstp dword [esp + 0x1c]
fld dword [0x694ddc]
fmul dword [esp + 0x1c]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x45
jne 0x53a230
add esp, 0xb0
pop ebp
pop edi
pop esi
pop ebx
ret
push 0
push 0xffffffffffffffff
push dword [0x694e00]
push ebp
call fcn.0052fbf0
add esp, 0x10
test al, al
jne 0x53a252
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.004d53c0
fadd dword [0x694dd8]
add esp, 0x10
cmp byte [esp + 0x4f], 0
fstp dword [esp + 0x14]
jne 0x53a290
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 0x53a2a8
fst dword [esp + 0x30]
jmp 0x53a2b0
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.004eed40
mov esi, eax
pop ecx
mov ecx, dword [esi*4 + 0x92d4d0]
mov edi, dword [ecx]
call dword [edi + 0x14]
test eax, eax
fldz
jne 0x53a2e4
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.0053b620
add esp, 0x10
test eax, eax
mov dword [esp + 0xc], eax
jne 0x53a328
add esp, 0xb0
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esp + 0xc]
push 0
call fcn.005224d0
call fcn.00649a40
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.004face0
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.004eef30
test al, al
pop ecx
je 0x53a3b9
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 0x53a614
mov eax, dword [esp + 0xc4]
add eax, 0xfffffff9
push eax
call fcn.004eed40
mov edi, eax
pop ecx
mov ecx, dword [edi*4 + 0x92d4d0]
mov ebx, dword [ecx]
call dword [ebx + 0x14]
test eax, eax
fldz
je 0x53a680
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.0053b620
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x53a5ff
mov ecx, ebx
push dword [esp + 0xc]
push 0xf
call fcn.00521f30
mov ecx, ebx
push dword [esp + 8]
call fcn.0051a040
lea eax, [esp + 0x8c]
mov ecx, ebx
push eax
call fcn.00519e50
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.004d53c0
fadd dword [0x694dd8]
add esp, 0x10
fstp dword [esp + 0x18]
fld dword [esp + 0x38]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x45
jne 0x53a4d7
mov eax, dword [esp + 0x38]
jmp 0x53a4db
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
cmp byte [esp + 0x73], 0
fldz
jne 0x53a507
push ebx
fstp st(0)
call fcn.004db330
test ebx, ebx
pop ecx
je 0x53a5ff
mov ecx, ebx
mov edi, dword [ecx]
push 1
call dword [edi + 8]
jmp 0x53a5ff
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 0x53a550
push ebx
fstp st(0)
call fcn.004db330
test ebx, ebx
pop ecx
je 0x53a5ff
mov ecx, ebx
mov esi, dword [ecx]
push 1
call dword [esi + 8]
jmp 0x53a5ff
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.004da580
add esp, 0x24
test al, al
jne 0x53a5b0
push ebx
call fcn.004db330
test ebx, ebx
pop ecx
je 0x53a5ff
mov ecx, ebx
mov edi, dword [ecx]
push 1
call dword [edi + 8]
jmp 0x53a5ff
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.004eef30
test al, al
pop ecx
je 0x53a5f2
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.00581520
pop ecx
pop ecx
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0xc8]
jl 0x53a3e3
cmp dword [esp + 4], 3
jge 0x53a645
xor edi, edi
cmp dword [esp + 4], 0
jle 0x53a666
mov ebp, dword [esp + edi*4 + 0x50]
push ebp
call fcn.004db330
test ebp, ebp
pop ecx
je 0x53a63c
mov ecx, ebp
mov esi, dword [ecx]
push 1
call dword [esi + 8]
inc edi
cmp edi, dword [esp + 4]
jl 0x53a624
jmp 0x53a666
cmp dword [esp + 4], 1
mov ebx, 1
jle 0x53a666
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + ebx*4 + 0x50]
push eax
call fcn.004f07f0
inc ebx
cmp ebx, dword [esp + 4]
jl 0x53a651
add esp, 0xb0
pop ebp
pop edi
pop esi
pop ebx
ret
fstp st(0)
jmp 0x53a20b
fcompp
jmp 0x53a230
fstp st(0)
jmp 0x53a5ff