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

Disassembly:
mov al, byte [0xa9aba0]
sub esp, 0x54
test al, 1
jne 0x6567c4
mov edx, dword [0xa9aba0]
or edx, 1
push 1
push 0x876dfc
mov dword [0xa9aba0], edx
call fcn.00704c0b
mov ecx, eax
call fcn.00704dd8
fstp dword [0xa9ab9c]
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
mov esi, dword [esp + 0x68]
mov eax, dword [esi + 0x1c]
movsx edx, word [eax + 2]
push edi
lea ecx, [esp + 0x40]
push ecx
add edx, ebp
push 1
xor edi, edi
push edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
call fcn.005fd460
mov ebx, dword [esp + 0x74]
fld dword [esp + 0x50]
mov ebp, dword [esp + 0x80]
fdiv dword [ebx + 0xa8]
add esp, 0xc
test ebp, ebp
fstp dword [esp + 0x44]
je 0x656833
xor eax, eax
mov ecx, 0xc
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x6c]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x48], eax
mov eax, dword [esp + 0x44]
mov dword [ebp + 0x30], eax
mov al, byte [esp + 0x70]
test al, al
jne 0x656880
fld dword [esp + 0x44]
fcomp dword [esi]
fnstsw ax
test ah, 0x41
jne 0x656861
test ebp, ebp
je 0x656855
fld dword [esp + 0x44]
fsub dword [esi]
fstp dword [ebp + 0x40]
mov dword [esp + 0x10], 2
mov edi, dword [esp + 0x10]
fld dword [esp + 0x44]
fcomp dword [esi + 4]
fnstsw ax
test ah, 5
jp 0x656880
test ebp, ebp
je 0x65687d
fld dword [esi + 4]
fsub dword [esp + 0x44]
fstp dword [ebp + 0x40]
or edi, 8
mov ecx, dword [ebx + 0x4d0]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
call dword [edx + 0x28]
fstp dword [esp + 0x70]
mov ecx, dword [ebx + 0x4d0]
call fcn.005ffbd0
fstp dword [esp + 0x10]
mov eax, dword [ebx + 0x4d0]
mov ecx, dword [eax + 0xc]
add eax, 0xc
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x50], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x78]
test eax, eax
jle 0x6568e8
fild dword [esp + 0x78]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push ecx
fmul dword [esp + 0x74]
push edx
push ecx
mov eax, ecx
fstp dword [esp]
push eax
call fcn.00610120
add esp, 0x10
mov al, byte [esi + 0x2c]
test al, al
je 0x6568f8
mov ecx, ebx
call fcn.005f5cc0
jmp 0x656912
mov ecx, dword [ebx + 0x4d0]
call fcn.005ffbd0
fsub dword [esi + 0x14]
push ecx
fstp dword [esp]
call fcn.006fec00
add esp, 4
mov eax, dword [esp + 0x14]
fstp dword [esp + 0x78]
movzx edx, word [eax + 8]
fld dword [esp + 0x78]
fadd dword [eax + 4]
lea ecx, [esp + 0x58]
push ecx
sub esp, 8
mov dword [esp + 0x78], edx
lea eax, [esp + 0x4c]
fstp dword [esp + 4]
fild dword [esp + 0x78]
fchs
fstp dword [esp]
push eax
call fcn.00610120
fld dword [esp + 0x68]
fsub dword [esp + 0x5c]
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x48], edx
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
fld dword [esp + 0x70]
mov dword [esp + 0x44], ecx
fsub dword [esp + 0x64]
mov ecx, dword [esp + 0x24]
add esp, 0x10
fstp dword [esp + 0x30]
movsx edx, word [ecx + 2]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x3c], eax
fild dword [esp + 0x6c]
fld dword [0x84669c]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x6569ae
fstp st(0)
fld dword [0x84669c]
jmp 0x6569b4
fdivr dword [0x8466a0]
fld dword [esp + 0x28]
mov ecx, dword [ebx + 0x4d0]
fmul st(1)
mov dword [esp + 0x6c], 0
fstp dword [esp + 0x28]
fld dword [0x84669c]
fmul st(1)
fstp dword [esp + 0x2c]
fmul dword [esp + 0x30]
fstp dword [esp + 0x30]
call fcn.006f0e40
fsubr dword [esp + 0x78]
push ecx
fstp dword [esp]
call fcn.006fec00
mov al, byte [esi + 0x2c]
fstp dword [esp + 0x24]
add esp, 4
test al, al
je 0x656b6a
fld dword [esp + 0x20]
fabs
fcomp dword [0x846c88]
fnstsw ax
test ah, 0x41
jne 0x656a1d
or edi, 0x100
fld dword [esi + 0x10]
fcomp dword [0x84669c]
fnstsw ax
test ah, 0x41
jne 0x656a4c
fld dword [esp + 0x78]
lea eax, [esp + 0x28]
fadd dword [esi + 0x14]
push eax
push ecx
mov ecx, dword [esi + 0x10]
fstp dword [esp]
push ecx
mov edx, eax
push edx
call fcn.00610120
add esp, 0x10
fld dword [esp + 0x28]
push ecx
fmul dword [esp + 0x2c]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fstp dword [esp]
call fcn.00798108
fstp dword [esp + 0x6c]
add esp, 4
fld dword [esp + 0x70]
fcomp dword [0x8473c8]
fnstsw ax
test ah, 0x41
jne 0x656acb
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.0079816a
fsub dword [esp + 0x18]
add esp, 4
fstp dword [esp]
call fcn.006fec00
fst dword [esp + 0x70]
add esp, 4
fabs
fcomp dword [0x846c88]
fnstsw ax
test ah, 0x41
jne 0x656ac3
or edi, 0x200
fld dword [0x84675c]
jmp 0x656aea
fld dword [esp + 0x70]
fcomp dword [0x8466a0]
fnstsw ax
test ah, 0x41
jne 0x656ae4
fld dword [0x84675c]
jmp 0x656aea
fld dword [0x8473c8]
test ebp, ebp
je 0x656b07
fld dword [0xa9ab9c]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
fmul st(1)
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x38], eax
fstp dword [ebp + 0x48]
fld dword [esp + 0x68]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x656dc4
or edi, 0x10
test ebp, ebp
je 0x656dc4
fld dword [esp + 0x3c]
push ecx
fmul dword [esp + 0x40]
fld dword [esp + 0x3c]
fmul dword [esp + 0x3c]
faddp st(1)
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fstp dword [esp]
call fcn.00798108
mov ecx, dword [esp + 0x18]
movsx edx, word [ecx + 2]
mov dword [esp + 0x74], edx
add esp, 4
fild dword [esp + 0x70]
fmul dword [ebp + 0x48]
fsubp st(1)
fstp dword [ebp + 0x3c]
jmp 0x656dc4
fld dword [esp + 0x78]
lea eax, [esp + 0x28]
fadd dword [esi + 0x14]
push eax
push ecx
mov ecx, dword [esi + 0x10]
fstp dword [esp]
push ecx
mov edx, eax
push edx
call fcn.00610120
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
add esp, 0xc
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fstp dword [esp]
call fcn.00798108
mov eax, dword [esp + 0x34]
fst dword [esp + 0x78]
fsub dword [esp + 0x74]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
fstp dword [esp + 0x74]
call fcn.0079816a
fsub dword [esp + 0x1c]
add esp, 8
fstp dword [esp]
call fcn.006fec00
fstp dword [esp + 0x70]
add esp, 4
fld dword [esp + 0x70]
mov dword [esp + 0x1c], 0x43200000
fcomp dword [0x873ecc]
mov dword [esp + 0x24], 0x41280000
mov dword [esp + 0x18], 0x40200000
mov dword [esp + 0x10], 0x3e9c71c7
fnstsw ax
test ah, 5
jp 0x656c19
mov dword [esp + 0x78], 0x3e471c72
jmp 0x656c3a
fld dword [esp + 0x70]
mov dword [esp + 0x78], 0x3e000000
fcomp dword [0x87552c]
fnstsw ax
test ah, 5
jnp 0x656c3a
mov dword [esp + 0x78], 0x3dc71c72
mov al, byte [esi + 0x2d]
test al, al
je 0x656cb7
fld dword [esp + 0x70]
mov dword [esp + 0x1c], 0x42a00000
fcomp dword [0x876df8]
mov dword [esp + 0x24], 0x411c0000
mov dword [esp + 0x18], 0x40500000
mov dword [esp + 0x10], 0x3e9c71c7
fnstsw ax
test ah, 5
jp 0x656c7c
mov dword [esp + 0x78], 0x3e471c72
jmp 0x656c9d
fld dword [esp + 0x70]
mov dword [esp + 0x78], 0x3e000000
fcomp dword [0x873f68]
fnstsw ax
test ah, 5
jnp 0x656c9d
mov dword [esp + 0x78], 0x3dc71c72
mov al, byte [ebx + 0x3ed]
test al, al
je 0x656cb7
mov dword [esp + 0x78], 0x3eb8e38f
mov dword [esp + 0x10], 0x3ed55556
test ebp, ebp
je 0x656cd6
fld dword [esp + 0x18]
mov edx, dword [esp + 0x6c]
fmul dword [0xa9ab9c]
mov eax, dword [esp + 0x68]
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x38], eax
fstp dword [ebp + 0x48]
fld dword [esp + 0x3c]
fmul dword [esp + 0x3c]
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fstp dword [esp + 0x70]
mov ebx, dword [esp + 0x70]
push ebx
call fcn.00798108
fcomp dword [esp + 0x20]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x656d36
or edi, 0x10
test ebp, ebp
je 0x656d36
push ebx
call fcn.00798108
mov ecx, dword [esp + 0x18]
movsx edx, word [ecx + 2]
mov dword [esp + 0x74], edx
add esp, 4
fild dword [esp + 0x70]
fmul dword [ebp + 0x48]
fsubp st(1)
fstp dword [ebp + 0x3c]
fld dword [esp + 0x20]
fabs
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x656d4d
or edi, 0x100
fld dword [esp + 0x6c]
fabs
fcomp dword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x656d64
or edi, 0x200
fld dword [esp + 0x74]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x41
je 0x656d96
fld dword [esp + 0x68]
fcomp dword [0x873ecc]
fnstsw ax
test ah, 0x41
je 0x656d96
fld dword [esp + 0x74]
fsub dword [esi + 0x10]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x656d99
or edi, 0x40
fld dword [esp + 0x68]
fcomp dword [0x866830]
fnstsw ax
test ah, 5
jnp 0x656dbe
fld dword [esp + 0x74]
fsub dword [esi + 0x10]
fcomp dword [0x84f968]
fnstsw ax
test ah, 5
jp 0x656dc4
or edi, 0x80
test edi, edi
jne 0x656dd4
mov dword [esp + 0x10], 1
mov edi, dword [esp + 0x10]
test ebp, ebp
mov eax, edi
je 0x656ddd
mov dword [ebp + 0x44], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret