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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6c]
xor ebp, ebp
push edi
cmp esi, ebp
je 0x10061f8e
mov eax, dword [esi]
add eax, 0x128
mov edx, eax
and edx, 0xf
je 0x10061f81
mov ecx, 0x10
sub ecx, edx
movzx eax, word [ecx + eax + 0x16]
mov dword [esp + 0x14], eax
jmp 0x10061f92
xor ecx, ecx
movzx eax, word [ecx + eax + 0x16]
mov dword [esp + 0x14], eax
jmp 0x10061f92
mov dword [esp + 0x14], ebp
fld qword [esp + 0x78]
fmul qword [0x1023a7a8]
fdiv qword [0x1023abf0]
fst qword [esp + 0x50]
call fcn.1016f5e0
fstp qword [esp + 0x38]
fld qword [esp + 0x50]
fmul qword [0x1023a7b8]
call fcn.1016f990
fst qword [esp + 0x40]
cmp esi, ebp
je 0x1006200a
mov edi, dword [esi]
lea ecx, [edi + 0x128]
mov edx, ecx
and edx, 0xf
je 0x10061fde
mov eax, 0x10
sub eax, edx
jmp 0x10061fe0
xor eax, eax
mov edx, dword [eax + ecx + 0xc]
mov dword [esp + 0x20], edx
mov edx, ecx
and edx, 0xf
je 0x100620be
mov eax, 0x10
sub eax, edx
mov esi, dword [eax + ecx + 0x10]
mov eax, dword [edi]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
jmp 0x10062018
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov esi, ebp
mov ecx, esi
mov dword [esp + 0x78], ecx
fild dword [esp + 0x78]
test ecx, ecx
jge 0x1006202c
fadd qword [0x1023a920]
mov edx, dword [esp + 0x14]
fst qword [esp + 0x48]
fxch st(1)
push ebp
fnstcw word [esp + 0x7c]
push ebp
movzx eax, word [esp + 0x80]
fabs
fmulp st(1)
or eax, 0xc00
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
push ebp
fadd qword [0x1023a7b8]
push edx
fldcw word [esp + 0x38]
push esi
fistp qword [esp + 0x44]
mov ebx, dword [esp + 0x44]
add ebx, dword [esp + 0x34]
fldcw word [esp + 0x8c]
push ebx
push eax
push ebp
mov dword [esp + 0x48], ebx
call sym.FreeImage.dll__FreeImage_AllocateHeaderT_32
mov edi, eax
mov dword [esp + 0x78], edi
cmp edi, ebp
je 0x100621cf
test esi, esi
jbe 0x10062143
fldz
fld qword [esp + 0x40]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x100620d3
mov ecx, ebp
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
test ecx, ecx
jge 0x100620eb
fadd qword [0x1023a920]
jmp 0x100620eb
xor eax, eax
mov esi, dword [eax + ecx + 0x10]
mov eax, dword [edi]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
jmp 0x10062018
mov edx, ebp
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
test edx, edx
jge 0x100620e7
fadd qword [0x1023a920]
fsub qword [esp + 0x48]
fadd qword [0x1023a7b8]
sub esp, 8
fmulp st(1)
fst qword [esp + 0x38]
fstp qword [esp]
call fcn.10154cb0
call fcn.10153880
mov esi, dword [esp + 0x78]
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
mov ebx, eax
fsubr qword [esp + 0x38]
fstp qword [esp]
push ebp
push edi
mov edi, dword [esp + 0x84]
call fcn.10061100
mov edi, dword [esp + 0x88]
inc ebp
add esp, 0x10
cmp ebp, dword [esp + 0x1c]
jb 0x10062097
mov ebx, dword [esp + 0x28]
fld qword [esp + 0x50]
call fcn.1016f860
fst qword [esp + 0x58]
fld qword [esp + 0x38]
mov eax, dword [esp + 0x20]
fabs
fst qword [esp + 0x60]
fild dword [esp + 0x20]
test eax, eax
jge 0x1006216c
fadd qword [0x1023a920]
mov ecx, dword [esp + 0x14]
fst qword [esp + 0x30]
fmulp st(1)
mov edx, dword [esp + 0x18]
fxch st(1)
push 0
fmul qword [esp + 0x4c]
push 0
fnstcw word [esp + 0x78]
push 0
movzx eax, word [esp + 0x7c]
faddp st(1)
or eax, 0xc00
mov dword [esp + 0x38], eax
push ecx
fadd qword [0x1023a7b8]
fldcw word [esp + 0x3c]
fistp qword [esp + 0x60]
mov ebp, dword [esp + 0x60]
inc ebp
push ebp
fldcw word [esp + 0x84]
push ebx
push edx
push 0
call sym.FreeImage.dll__FreeImage_AllocateHeaderT_32
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x100621d9
push edi
call sym.FreeImage.dll__FreeImage_Unload_4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
fldz
fld qword [esp + 0x38]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x100621f8
fld qword [esp + 0x30]
fsub qword [0x1023a7a0]
fmulp st(1)
jmp 0x10062214
mov eax, ebx
mov dword [esp + 0x70], eax
fild dword [esp + 0x70]
test eax, eax
jge 0x1006220c
fadd qword [0x1023a920]
fsubr qword [esp + 0x30]
fmulp st(1)
fchs
fst qword [esp + 0x20]
mov dword [esp + 0x70], 0
test ebx, ebx
jbe 0x10062284
sub esp, 8
fstp qword [esp]
call fcn.10154cb0
call fcn.10153880
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
mov ebx, eax
fsubr qword [esp + 0x28]
fstp qword [esp]
push ecx
push esi
mov esi, dword [esp + 0x88]
call fcn.100611b0
fld qword [esp + 0x30]
mov eax, dword [esp + 0x80]
fsub qword [esp + 0x48]
mov esi, dword [esp + 0x2c]
inc eax
add esp, 0x10
fst qword [esp + 0x20]
mov dword [esp + 0x70], eax
cmp eax, dword [esp + 0x28]
jb 0x10062224
mov edi, dword [esp + 0x78]
push edi
fstp st(0)
call sym.FreeImage.dll__FreeImage_Unload_4
fld qword [esp + 0x30]
fmul qword [esp + 0x58]
mov edx, dword [esp + 0x14]
fld qword [esp + 0x60]
mov ecx, dword [esp + 0x18]
fmul qword [esp + 0x48]
push 0
fnstcw word [esp + 0x74]
push 0
movzx eax, word [esp + 0x78]
faddp st(1)
or eax, 0xc00
mov dword [esp + 0x80], eax
push 0
fadd qword [0x1023a7b8]
push edx
fldcw word [esp + 0x88]
push ebp
fistp qword [esp + 0x8c]
mov eax, dword [esp + 0x8c]
inc eax
push eax
fldcw word [esp + 0x88]
push ecx
push 0
call sym.FreeImage.dll__FreeImage_AllocateHeaderT_32
mov ebx, eax
mov dword [esp + 0x78], ebx
test ebx, ebx
jne 0x10062309
push esi
call sym.FreeImage.dll__FreeImage_Unload_4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
fldz
fld qword [esp + 0x38]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x1006232e
fld qword [esp + 0x30]
fsub qword [0x1023a7a0]
fmulp st(1)
fmul qword [esp + 0x40]
fchs
jmp 0x10062354
mov edx, ebp
mov dword [esp + 0x70], edx
fild dword [esp + 0x70]
test edx, edx
jge 0x10062342
fadd qword [0x1023a920]
fld1
fld st(0)
fsubrp st(2)
fsubr qword [esp + 0x30]
fmulp st(2)
fsubrp st(1)
fmul qword [esp + 0x40]
fst qword [esp + 0x20]
mov dword [esp + 0x70], 0
test ebp, ebp
jbe 0x100623be
sub esp, 8
fstp qword [esp]
call fcn.10154cb0
call fcn.10153880
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fsubr qword [esp + 0x28]
fstp qword [esp]
push ecx
push ebx
mov ebx, eax
call fcn.10061100
fld qword [esp + 0x30]
mov eax, dword [esp + 0x80]
fadd qword [esp + 0x50]
mov ebx, dword [esp + 0x88]
mov esi, dword [esp + 0x2c]
inc eax
fst qword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x70], eax
cmp eax, ebp
jb 0x10062364
push esi
fstp st(0)
call sym.FreeImage.dll__FreeImage_Unload_4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x5c
ret