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

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x24], 1
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 8], ebx
jle 0x1007c186
push esi
push edi
mov edi, dword [esp + 0x6c]
add edi, 0xc
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
mov edi, edi
fld dword [edi - 0xc]
push ecx
fstp dword [esp + 0x68]
fldz
fld dword [esp + 0x68]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
mov eax, dword [esp + 0x6c]
jne 0x1007be77
fstp dword [esp]
call fcn.10074d20
jmp 0x1007be81
fchs
fstp dword [esp]
call fcn.10074d60
movzx eax, byte [edi + 8]
fstp dword [esp + 0x68]
mov dword [ebp + 0x18], eax
movzx edx, byte [edi + 9]
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [esp + 0x4c], ecx
mov dword [ebp + 0x1c], edx
fild dword [esp + 0x4c]
jge 0x1007beaa
fadd dword [0x101a65b8]
fld1
mov ecx, edx
test ecx, ecx
fld st(0)
fdivrp st(2)
mov dword [esp + 0x4c], ecx
fxch st(1)
fstp dword [esp + 0x40]
fild dword [esp + 0x4c]
jge 0x1007beca
fadd dword [0x101a65b8]
fdivp st(1)
push eax
fstp dword [esp + 0x4c]
call fcn.10077070
fstp dword [esp + 0x48]
push edx
call fcn.10077070
fstp dword [esp + 0x54]
xor eax, eax
add esp, 8
cmp dword [edi], ebx
mov dword [esp + 0x20], eax
jle 0x1007c172
mov edx, dword [esp + 0x10]
fld dword [esp + 0x64]
mov ecx, dword [esp + 0x70]
shl edx, 4
mov dword [esp + 0x14], ebx
lea esi, [edx + ecx + 8]
cmp dword [esi + 4], ebx
je 0x1007c150
mov ecx, dword [edi + 4]
add ecx, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov ecx, dword [edi - 4]
cmp ecx, ebx
jne 0x1007bf2e
mov ecx, dword [edi - 8]
add ecx, eax
jmp 0x1007bf31
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x68]
call fcn.10072f00
mov edi, eax
movzx eax, word [ebp + 0x14]
add word [esi], ax
add word [esi + 2], ax
sub word [esi - 4], ax
sub word [esi - 2], ax
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x6c]
push edi
lea ebx, [esp + 0x44]
mov dword [esp + 0x3c], edi
call fcn.10074c30
mov eax, dword [ebp + 0x1c]
test eax, eax
fild dword [ebp + 0x1c]
jge 0x1007bf76
fadd dword [0x101a65b8]
mov ecx, dword [ebp + 0x18]
fmul st(1)
test ecx, ecx
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fild dword [ebp + 0x18]
jge 0x1007bf94
fadd dword [0x101a65b8]
mov edx, dword [esp + 0x70]
fmulp st(1)
lea eax, [esp + 0x60]
lea ecx, [esp + 0x64]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esp]
push edi
push edx
lea edx, [esp + 0x2c]
lea edi, [esp + 0x28]
call fcn.1007bcf0
fldz
mov eax, dword [ebp + 0x1c]
fst dword [esp + 0xc]
mov ecx, dword [ebp + 0x18]
fstp dword [esp + 8]
mov edx, dword [ebp + 0x10]
mov edi, eax
test edi, edi
mov dword [esp + 0x6c], edi
fild dword [esp + 0x6c]
jge 0x1007bfe3
fadd dword [0x101a65b8]
fld dword [esp + 0x74]
mov edi, ecx
test edi, edi
fld st(0)
fmulp st(2)
mov dword [esp + 0x6c], edi
fxch st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [esp + 4]
fild dword [esp + 0x6c]
jge 0x1007c00d
fadd dword [0x101a65b8]
movzx edi, word [esi - 2]
fmulp st(1)
movzx ebx, word [esi - 4]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
sub edi, eax
movzx eax, word [esi + 2]
fstp dword [esp]
imul eax, edx
sub ebx, ecx
movzx ecx, word [esi]
add eax, ecx
add eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x78]
push edx
add edi, 1
push edi
push eax
mov eax, dword [esp + 0x50]
add ebx, 1
call fcn.1007bd30
mov eax, dword [ebp + 0x18]
add esp, 0x1c
cmp eax, 1
jbe 0x1007c07b
mov edi, dword [ebp + 0x10]
movzx edx, word [esi - 4]
movzx ecx, word [esi - 2]
push eax
movzx eax, word [esi]
push edi
push edx
movzx edx, word [esi + 2]
imul edx, edi
add edx, eax
add edx, dword [ebp + 0x20]
call fcn.10076b90
add esp, 0xc
mov edi, dword [ebp + 0x1c]
cmp edi, 1
jbe 0x1007c0a8
mov eax, dword [ebp + 0x10]
movzx edx, word [esi + 2]
movzx ecx, word [esi - 2]
imul edx, eax
push eax
movzx eax, word [esi]
add edx, eax
add edx, dword [ebp + 0x20]
push ecx
movzx ecx, word [esi - 4]
push edx
call fcn.10076de0
add esp, 0xc
movzx ecx, word [esi]
fild dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
fld dword [esp + 0x64]
fld st(0)
mov word [eax], cx
movzx edx, word [esi + 2]
fmulp st(2)
fxch st(1)
mov word [eax + 2], dx
movzx ecx, word [esi - 4]
add cx, word [esi]
mov edi, dword [esp + 0x24]
mov word [eax + 4], cx
movzx edx, word [esi - 2]
add dx, word [esi + 2]
fstp dword [eax + 0x10]
fild dword [esp + 0x18]
fld dword [esp + 0x40]
mov word [eax + 6], dx
fld st(0)
fmulp st(2)
fld dword [esp + 0x44]
fld st(0)
faddp st(3)
fxch st(2)
fstp dword [eax + 8]
fild dword [esp + 0x1c]
fld dword [esp + 0x48]
fld st(0)
fmulp st(2)
fld dword [esp + 0x4c]
fld st(0)
faddp st(3)
fxch st(2)
fstp dword [eax + 0xc]
movzx ecx, word [esi - 4]
add ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
fmulp st(3)
fxch st(2)
faddp st(3)
fxch st(2)
fstp dword [eax + 0x14]
movzx edx, word [esi - 2]
add edx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x38], edx
fimul dword [esp + 0x38]
faddp st(1)
fstp dword [eax + 0x18]
mov eax, dword [esp + 0x20]
jmp 0x1007c154
mov dword [esp + 0x2c], ebx
add dword [esp + 0x10], 1
add dword [esp + 0x14], 0x1c
add eax, 1
add esi, 0x10
cmp eax, dword [edi]
mov dword [esp + 0x20], eax
jl 0x1007bf0c
fstp st(0)
add edi, 0x18
sub dword [esp + 0x28], 1
mov dword [esp + 0x24], edi
jne 0x1007be50
pop edi
pop esi
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x1c], ecx
pop ebp
pop ebx
add esp, 0x50
ret