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

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
mov esi, ecx
mov bl, byte [esi + 0x49]
mov ecx, dword [esi + 0xc]
test bl, 1
mov eax, 0
setne al
mov dword [ecx], 0
mov dl, byte [esi + 0x4a]
push edi
mov dword [esp + 0x3c], 0
inc eax
inc dl
mov dword [esp + 0x64], eax
mov al, dl
cmp al, 0x14
mov byte [esi + 0x4a], dl
jge 0x657fee
fld dword [esi + 0x2c]
mov ebp, dword [esp + 0x9c]
fadd st(0), st(0)
mov dword [esp + 0x20], 1
mov ebx, 8
fstp dword [esp + 0x4c]
fld dword [esi + 0x30]
fadd st(0), st(0)
fstp dword [esp + 0x50]
fld dword [esi + 0x34]
fadd st(0), st(0)
fstp dword [esp + 0x54]
lea edx, [esp + 0x80]
push edx
push ebp
mov ecx, esi
call fcn.00654b80
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.00821b1e
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
movsx eax, byte [esi + 0x4a]
mov dword [esp + 0x10], eax
fmul dword [0x858c7c]
fmul dword [0x858ee8]
fsub dword [0x858cc4]
fiadd dword [esp + 0x10]
fld dword [esp + 0x14]
fmul st(1)
fld dword [esp + 0x18]
fmul st(2)
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul st(2)
fstp dword [esp + 0x1c]
fild dword [esp + 0x20]
fst dword [esp + 0x10]
fmul st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x18]
fmul dword [esp + 0x10]
fld dword [esp + 0x1c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x1c]
fld dword [esi + 0x2c]
fmul dword [0x858f9c]
fld dword [esi + 0x30]
fmul dword [0x858f9c]
fstp dword [esp + 0x6c]
fld dword [esi + 0x34]
fmul dword [0x858f9c]
fstp dword [esp + 0x70]
fadd st(2)
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
fld dword [esp + 0x6c]
mov dword [esp + 0x30], ecx
fadd st(1)
lea ecx, [esp + 0x30]
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x34], edx
fstp st(0)
fstp st(0)
fld dword [esp + 0x70]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
call fcn.0059c910
fld dword [esp + 0x30]
fmul dword [0x858cb0]
mov al, byte [esi + 0x49]
test al, 1
mov eax, dword [esp + 0x20]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fmul dword [0x858cb0]
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fmul dword [0x858cb0]
fstp dword [esp + 0x38]
je 0x657d47
sub eax, 2
jmp 0x657d4a
sub eax, 3
fld dword [esp + 0x14]
mov dword [esp + 0x20], eax
fadd dword [esi + 0x20]
mov eax, dword [ebp + 0x14]
test eax, eax
fstp dword [esp + 0x24]
fld dword [esp + 0x18]
fadd dword [esi + 0x24]
fstp dword [esp + 0x28]
fld dword [esp + 0x1c]
fadd dword [esi + 0x28]
fsub dword [0x858b8c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x24]
fsub dword [esp + 0x30]
fstp dword [esp + 0x58]
fld dword [esp + 0x28]
fsub dword [esp + 0x34]
fstp dword [esp + 0x5c]
fld dword [esp + 0x2c]
fsub dword [esp + 0x38]
fstp dword [esp + 0x60]
je 0x657da5
add eax, 0x30
jmp 0x657da8
lea eax, [ebp + 4]
fld dword [eax + 8]
mov ecx, dword [eax]
fsub dword [0x858b8c]
push 0
fld dword [eax + 4]
push 0
push 0
fstp dword [esp + 0x84]
push 0
push 0
fstp dword [esp + 0x90]
push 0
push 1
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x98], ecx
call fcn.0056a490
add esp, 0x24
test al, al
je 0x657f96
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea edi, [esi + 0x14]
lea ecx, [esp + 0x40]
push edi
push ecx
call fcn.0056a490
add esp, 0x24
test al, al
jne 0x657fc6
fld dword [esp + 0x24]
push 0
fsub dword [esp + 0x50]
push 0
push 0
push 0
fstp dword [esp + 0x50]
push 0
fld dword [esp + 0x3c]
push 0
fsub dword [esp + 0x68]
push 1
lea edx, [esp + 0x5c]
push edx
fstp dword [esp + 0x64]
lea eax, [esp + 0x44]
fld dword [esp + 0x4c]
push eax
fsub dword [esp + 0x78]
fstp dword [esp + 0x6c]
fld dword [esp + 0x7c]
fsub dword [esp + 0x70]
fstp dword [esp + 0xb0]
fld dword [esp + 0x80]
fsub dword [esp + 0x74]
fstp dword [esp + 0xb4]
fld dword [esp + 0x84]
fsub dword [esp + 0x78]
fstp dword [esp + 0xb8]
call fcn.0056a490
add esp, 0x24
test al, al
je 0x657f9a
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.0056a490
add esp, 0x24
test al, al
je 0x657f9a
test byte [esi + 0x49], bl
jne 0x657f24
mov eax, dword [esi + 0x10]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
cmp ecx, ebx
jge 0x657efb
lea ecx, [ecx + ecx*2]
lea edx, [eax + ecx*4 + 4]
mov ecx, dword [esp + 0x24]
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 8], ecx
inc dword [eax]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
cmp ecx, ebx
jge 0x657f21
lea edx, [ecx + ecx*2]
lea ecx, [eax + edx*4 + 4]
mov edx, dword [esp + 0x40]
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x48]
mov dword [ecx + 8], edx
inc dword [eax]
or byte [esi + 0x49], bl
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [esp + 0x5c]
push edi
push eax
call fcn.0056a490
add esp, 0x24
test al, al
je 0x657f9a
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
cmp ecx, ebx
jge 0x657f6a
lea ecx, [ecx + ecx*2]
lea edx, [eax + ecx*4 + 4]
mov ecx, dword [esp + 0x24]
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 8], ecx
inc dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
cmp ecx, ebx
jge 0x657f90
lea edx, [ecx + ecx*2]
lea ecx, [eax + edx*4 + 4]
mov edx, dword [esp + 0x40]
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x48]
mov dword [ecx + 8], edx
inc dword [eax]
or byte [esi + 0x49], 2
jmp 0x657f9a
inc dword [esp + 0x3c]
cmp dword [esp + 0x20], 0xffffffff
jge 0x657c11
cmp byte [esi + 0x4a], 1
jne 0x658013
mov edx, dword [esp + 0x64]
cmp dword [esp + 0x3c], edx
jne 0x658013
pop edi
mov byte [esi + 0x4a], 0x14
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 4
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
cmp ecx, ebx
jge 0x65800f
lea ecx, [ecx + ecx*2]
lea edx, [eax + ecx*4 + 4]
mov ecx, dword [esp + 0x24]
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 8], ecx
inc dword [eax]
jmp 0x65800f
test byte [esi + 0x49], 8
jne 0x658003
mov eax, dword [esp + 0x9c]
push eax
mov ecx, esi
call fcn.00656f80
mov ecx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
call fcn.0063a040
or byte [esi + 0x49], 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 4