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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
fld dword [esi + 0x1c]
push edi
fld dword [0xb7cb5c]
fmul dword [0x858f44]
fadd dword [esi + 0x1c]
fld dword [0x858b3c]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x53a5a2
fstp st(0)
fld dword [0x858b3c]
fst dword [esi + 0x1c]
call fcn.00821b40
fld st(0)
mov edi, eax
call fcn.00821b40
cmp eax, edi
je 0x53a5bc
fstp dword [esi + 0x1c]
jmp 0x53a5be
fstp st(0)
mov edi, dword [esi + 0x10]
test edi, edi
je 0x53a7b4
mov eax, dword [edi + 0x14]
test eax, eax
je 0x53a5d5
add eax, 0x30
jmp 0x53a5d8
lea eax, [edi + 4]
mov edx, dword [eax]
lea ebx, [esi + 4]
mov ecx, ebx
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov al, byte [edi + 0x36]
and al, 7
cmp al, 3
jne 0x53a68a
cmp dword [edi + 0x730], esi
jne 0x53a69a
mov eax, dword [edi + 0x530]
cmp eax, 0x36
je 0x53a616
cmp eax, 0x37
jne 0x53a622
fld dword [esi + 0xc]
fsub dword [0x858624]
fstp dword [esi + 0xc]
mov eax, dword [edi + 0x46c]
test ah, 1
je 0x53a660
mov eax, dword [edi + 0x58c]
test eax, eax
je 0x53a660
cmp word [eax + 0x22], 0x197
je 0x53a763
mov ecx, dword [eax + 0x590]
test ecx, ecx
jne 0x53a763
mov dword [eax + 0x4c0], 0x42960000
jmp 0x53a763
mov ecx, edi
call fcn.005df8f0
test al, al
jne 0x53a763
mov ecx, edi
call fcn.005e0170
test al, al
jne 0x53a763
or dword [edi + 0x40], 0x20000000
jmp 0x53a763
cmp al, 2
jne 0x53a763
cmp dword [edi + 0x490], esi
je 0x53a6a9
mov ecx, esi
call fcn.005393f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
test byte [esi], 2
jne 0x53a6fc
fld dword [0xb7cb5c]
sub esp, 0xc
fmul dword [0x858f08]
mov ecx, esp
mov dword [esp + 0x24], 0
mov edx, dword [esp + 0x24]
mov dword [ecx], edx
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x14]
push ecx
mov dword [esp + 0x30], 0
mov edx, dword [esp + 0x30]
mov dword [ecx + 8], edx
fstp dword [esp]
push 0x25
push eax
mov ecx, edi
call fcn.006d7c90
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0x590]
test eax, eax
jne 0x53a763
movsx edx, word [ecx + 0x22]
mov eax, dword [edx*4 + 0xa9b0c8]
mov eax, dword [eax + 0x5c]
mov edx, dword [eax]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
lea edx, [esp + 0x18]
fld dword [esp + 0x20]
push edx
fadd dword [0x858fcc]
fstp dword [esp + 0x24]
call fcn.00411990
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0059c890
mov edx, dword [eax]
mov ecx, ebx
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
add esp, 0xc
mov dword [ecx + 8], eax
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x53a7b4
fld dword [0xb7cb5c]
mov eax, dword [esi + 0x10]
fadd st(0), st(0)
add eax, 0x44
lea edx, [esp + 0x24]
push edx
fld st(0)
fmul dword [eax]
fld st(1)
fmul dword [eax + 4]
fstp dword [esp + 0x20]
fxch st(1)
fmul dword [eax + 8]
fstp dword [esp + 0x24]
fadd dword [ebx]
fstp dword [esp + 0x28]
fld dword [esp + 0x20]
fadd dword [ebx + 4]
fstp dword [esp + 0x2c]
fld dword [esp + 0x24]
fadd dword [ebx + 8]
fstp dword [esp + 0x30]
call fcn.004aa660
mov eax, dword [esi + 0x10]
test eax, eax
je 0x53a7c8
mov al, byte [eax + 0x36]
and al, 7
cmp al, 2
je 0x53a8c5
push 0
push 0xffffffffffffffff
call fcn.0056e0d0
add esp, 8
test eax, eax
jne 0x53a8c5
push 0xffffffffffffffff
call fcn.0056e210
mov ecx, dword [eax + 0x730]
add esp, 4
test ecx, ecx
jne 0x53a8c5
push 0xffffffffffffffff
call fcn.0056e210
mov ecx, dword [eax + 0x40]
add esp, 4
test ecx, 0x80000
jne 0x53a8c5
push 0xffffffffffffffff
call fcn.0056e210
mov ecx, dword [eax + 0xfc]
add esp, 4
test ecx, ecx
jne 0x53a8c5
push 0xffffffffffffffff
call fcn.0056e210
mov ecx, dword [eax + 0x14]
add esp, 4
test ecx, ecx
je 0x53a83b
lea eax, [ecx + 0x30]
jmp 0x53a83e
add eax, 4
lea ecx, [esi + 4]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.0040fe60
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], ecx
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
mov dword [esp + 0x2c], eax
fld dword [esp + 0x2c]
mov dword [esp + 0x28], edx
fmul dword [esp + 0x2c]
add esp, 0xc
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fcomp dword [0x858f08]
fnstsw ax
test ah, 5
jp 0x53a8c5
push 0xffffffffffffffff
call fcn.0056e210
add esp, 4
mov ecx, eax
call fcn.0060a020
mov ecx, dword [esi + 0x14]
push 0x64
push 0x1b58
push 1
push 0x3f4ccccd
push ecx
push 0xffffffffffffffff
call fcn.0056e210
add esp, 4
push eax
mov ecx, 0xb71f80
call fcn.0053a050
call fcn.00821b1e
test al, 0x1f
jne 0x53aa05
mov eax, dword [0xb74494]
mov ebx, dword [eax + 8]
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x53aa05
mov ebp, ebx
imul ebp, ebp, 0xa18
mov edi, edi
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 4]
mov cl, byte [ebx + edx - 1]
dec ebx
sub ebp, 0xa18
test cl, cl
mov dword [esp + 0x14], ebp
js 0x53a9fd
mov edi, dword [eax]
add edi, ebp
je 0x53a9fd
mov eax, dword [edi + 0x490]
test eax, eax
jne 0x53a9fd
cmp word [edi + 0x22], 0x197
je 0x53a9fd
mov eax, dword [edi + 0x14]
test eax, eax
je 0x53a93e
add eax, 0x30
jmp 0x53a941
lea eax, [edi + 4]
fld dword [eax]
fsub dword [esi + 4]
fld dword [eax + 4]
fsub dword [esi + 8]
fld dword [eax + 8]
fsub dword [esi + 0xc]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fcomp dword [0x858ca0]
fnstsw ax
test ah, 5
jp 0x53a9fd
cmp dword [edi + 0x594], 0xa
jne 0x53a9e0
push 0xffffffffffffffff
call fcn.0056e210
add esp, 4
mov ecx, eax
call fcn.0060a020
mov eax, dword [esi + 0x14]
push 0x64
push 0x1b58
push 1
push 0x3f4ccccd
push eax
push 0xffffffffffffffff
call fcn.0056e210
add esp, 4
push eax
mov ecx, 0xb71f80
call fcn.0053a050
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov ebp, dword [edi]
push 0
push ecx
push edx
mov ecx, edi
call fcn.006d7bc0
add al, 0xd
mov ecx, edi
push eax
call dword [ebp + 0xb0]
mov ebp, dword [esp + 0x14]
jmp 0x53a9fd
mov eax, dword [esi + 0x14]
push 0
push 0x1b58
push 1
push 0x3f4ccccd
push eax
push edi
mov ecx, 0xb71f80
call fcn.0053a050
test ebx, ebx
jne 0x53a8f0
call fcn.00821b1e
test al, 3
jne 0x53aaab
mov ebp, dword [0xb7449c]
mov edi, dword [ebp + 8]
test edi, edi
je 0x53aaab
mov ebx, edi
imul ebx, ebx, 0x19c
jmp 0x53aa30
mov ecx, dword [ebp + 4]
mov al, byte [edi + ecx - 1]
dec edi
sub ebx, 0x19c
test al, al
js 0x53aaa7
mov ecx, dword [ebp]
add ecx, ebx
je 0x53aaa7
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x53aa55
add eax, 0x30
jmp 0x53aa58
lea eax, [ecx + 4]
fld dword [eax]
fsub dword [esi + 4]
fld dword [eax + 4]
fsub dword [esi + 8]
fld dword [eax + 8]
fsub dword [esi + 0xc]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fcomp dword [0x858b3c]
fnstsw ax
test ah, 5
jp 0x53aaa7
mov edx, dword [esi + 0x14]
fld dword [0xb7cb5c]
fmul dword [0x859000]
push edx
push ecx
fstp dword [esp]
call fcn.005a1580
test edi, edi
jne 0x53aa30
mov al, byte [esi + 0x20]
test al, al
jle 0x53ac22
call fcn.00821b1e
test al, 0x7f
jne 0x53ac22
xor ecx, ecx
mov eax, 0xb71fa8
lea ebx, [ebx]
test byte [eax - 0x28], 1
je 0x53aad7
inc ecx
test byte [eax], 1
je 0x53aadd
inc ecx
test byte [eax + 0x28], 1
je 0x53aae4
inc ecx
test byte [eax + 0x50], 1
je 0x53aaeb
inc ecx
test byte [eax + 0x78], 1
je 0x53aaf2
inc ecx
test byte [eax + 0xa0], 1
je 0x53aafc
inc ecx
test byte [eax + 0xc8], 1
je 0x53ab06
inc ecx
test byte [eax + 0xf0], 1
je 0x53ab10
inc ecx
test byte [eax + 0x118], 1
je 0x53ab1a
inc ecx
test byte [eax + 0x140], 1
je 0x53ab24
inc ecx
add eax, 0x190
cmp eax, 0xb72908
jl 0x53aad0
cmp ecx, 0x19
jge 0x53ac22
call fcn.00821b1e
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul dword [0x858c7c]
fstp dword [esp + 0x10]
call fcn.00821b1e
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0
fmul dword [0x858c7c]
fadd st(0), st(0)
fsub dword [0x858624]
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fadd st(0), st(0)
fsub dword [0x858624]
fstp dword [esp + 0x1c]
call fcn.0059c910
call fcn.00821b1e
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
xor eax, eax
mov al, byte [esi]
shr al, 1
fmul dword [0x858c7c]
xor ecx, ecx
mov cl, byte [esi + 0x20]
push 0x41200000
fadd dword [0x858ca0]
fld dword [esp + 0x1c]
and eax, 0xffffff01
fmul st(1)
dec cl
fld dword [esp + 0x20]
push eax
fmul st(2)
push 0
fstp dword [esp + 0x28]
fxch st(1)
fmul dword [esp + 0x2c]
push ecx
sub esp, 0xc
mov edx, esp
fstp dword [esp + 0x3c]
fadd dword [esi + 4]
fstp dword [esp + 0x34]
mov eax, dword [esp + 0x34]
fld dword [esp + 0x38]
mov dword [edx], eax
fadd dword [esi + 8]
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
fld dword [esp + 0x3c]
mov dword [edx + 4], ecx
fadd dword [esi + 0xc]
fadd dword [0x858ca0]
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov dword [edx + 8], eax
call fcn.0053a450
add esp, 0x1c
fld dword [esi + 0x1c]
fcomp dword [0x858ca0]
fnstsw ax
test ah, 0x41
jp 0x53ad72
mov al, byte [esi + 0x20]
test al, al
je 0x53ad72
call fcn.00821b1e
test al, 0xf
jne 0x53ad72
call fcn.00821b1e
and eax, 0xffff
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul dword [0x858b14]
fmul dword [0x858b34]
call fcn.00821b40
lea ebp, [eax + eax*4]
shl ebp, 3
lea eax, [ebp + 0xb71f80]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x53ad72
mov al, byte [eax]
test al, 1
je 0x53ad72
test al, 2
jne 0x53ad72
fld dword [ebp + 0xb71f9c]
fcomp dword [0x858624]
fnstsw ax
test ah, 0x41
jp 0x53ad72
lea ebx, [ebp + 0xb71f84]
push ebx
lea edi, [esi + 4]
lea ecx, [esp + 0x28]
push edi
push ecx
call fcn.0040fe60
add esp, 0xc
mov ecx, eax
call fcn.004082c0
fcomp dword [0x859028]
fnstsw ax
test ah, 5
jp 0x53ad72
push ebx
lea edx, [esp + 0x28]
push 0x3e99999a
push edx
call fcn.0040fe90
add esp, 0xc
push eax
push edi
lea eax, [esp + 0x20]
push 0x3f333333
push eax
call fcn.0040fe90
add esp, 0xc
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0040fe30
fld dword [esi + 0x1c]
mov ecx, dword [eax]
fadd dword [0x858624]
mov edx, edi
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
fstp dword [esi + 0x1c]
mov dword [edx + 8], eax
mov ecx, dword [0xb7cb84]
mov eax, dword [esi + 0x18]
add ecx, 0x1b58
add esp, 0xc
cmp eax, ecx
ja 0x53ad4a
mov eax, ecx
push 0
push edi
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.00539360
mov al, byte [ebp + 0xb71fa0]
mov cl, byte [esi + 0x20]
cmp cl, al
jge 0x53ad66
mov al, cl
mov ecx, dword [esp + 0x14]
mov byte [esi + 0x20], al
call fcn.005393f0
mov edi, dword [esi + 0x24]
test edi, edi
je 0x53adda
fld dword [esi + 0x1c]
fld st(0)
call fcn.00821b40
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [0xb7cb84]
fisub dword [esp + 0x14]
sub ecx, eax
test ecx, ecx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
jge 0x53ada7
fadd dword [0x858c54]
fmul dword [0x863a48]
fstp dword [esp + 0x10]
fcom dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x53adc2
fstp dword [esp + 0x10]
jmp 0x53adcc
mov edx, dword [esp + 0x10]
fstp st(0)
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
push eax
push 1
mov ecx, edi
call fcn.004aa6c0
mov ecx, dword [0xb7cb84]
cmp ecx, dword [esi + 0x18]
jae 0x53ae28
mov eax, dword [0xb6f03c]
test eax, eax
je 0x53adf3
add eax, 0x30
jmp 0x53adf8
mov eax, 0xb6f02c
fld dword [eax]
movzx edx, byte [esi + 0x21]
fsub dword [esi + 4]
mov dword [esp + 0x14], edx
fld dword [eax + 4]
fsub dword [esi + 8]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 0x41
je 0x53ae31
test byte [esi], 2
je 0x53aebc
call fcn.00821b1e
and eax, 0x7f
movsx eax, ax
mov dword [esp + 0x14], eax
push 0
push 0
fild dword [esp + 0x1c]
push 0
push 0
mov dword [esp + 0x28], 0
fmul dword [0x863a44]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
push eax
push eax
mov eax, dword [esp + 0x34]
push 0x41000000
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x48]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
add esi, 4
mov ecx, dword [esi]
mov edx, dword [esi + 4]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 4], edx
push 0
mov dword [eax + 8], ecx
call fcn.007000e0
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
fld dword [esi + 0x1c]
mov ecx, esi
fcomp dword [0x858624]
fnstsw ax
test ah, 0x41
jnp 0x53a69c
fld dword [esi + 0x1c]
push 0
fsub dword [0x858624]
lea eax, [esi + 4]
push eax
fstp dword [esi + 0x1c]
mov edx, dword [0xb7cb84]
add edx, 0x1b58
mov dword [esi + 0x18], edx
call fcn.00539360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret