Function at 0x1007b650
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 0x1007b9c6
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 0x1007b6b7
fstp dword [esp]
call fcn.10074560
jmp 0x1007b6c1
fchs
fstp dword [esp]
call fcn.100745a0
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 0x1007b6ea
fadd dword [0x101a6418]
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 0x1007b70a
fadd dword [0x101a6418]
fdivp st(1)
push eax
fstp dword [esp + 0x4c]
call fcn.100768b0
fstp dword [esp + 0x48]
push edx
call fcn.100768b0
fstp dword [esp + 0x54]
xor eax, eax
add esp, 8
cmp dword [edi], ebx
mov dword [esp + 0x20], eax
jle 0x1007b9b2
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 0x1007b990
mov ecx, dword [edi + 4]
add ecx, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov ecx, dword [edi - 4]
cmp ecx, ebx
jne 0x1007b76e
mov ecx, dword [edi - 8]
add ecx, eax
jmp 0x1007b771
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x68]
call fcn.10072740
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.10074470
mov eax, dword [ebp + 0x1c]
test eax, eax
fild dword [ebp + 0x1c]
jge 0x1007b7b6
fadd dword [0x101a6418]
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 0x1007b7d4
fadd dword [0x101a6418]
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.1007b530
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 0x1007b823
fadd dword [0x101a6418]
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 0x1007b84d
fadd dword [0x101a6418]
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.1007b570
mov eax, dword [ebp + 0x18]
add esp, 0x1c
cmp eax, 1
jbe 0x1007b8bb
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.100763d0
add esp, 0xc
mov edi, dword [ebp + 0x1c]
cmp edi, 1
jbe 0x1007b8e8
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.10076620
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 0x1007b994
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 0x1007b74c
fstp st(0)
add edi, 0x18
sub dword [esp + 0x28], 1
mov dword [esp + 0x24], edi
jne 0x1007b690
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