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

Disassembly:
sub esp, 0x6c
push esi
mov esi, dword [esp + 0x74]
test esi, esi
jne 0x1003fab3
xor eax, eax
pop esi
add esp, 0x6c
ret
push ebp
mov ebp, dword [esp + 0x7c]
test ebp, ebp
je 0x1003fe69
push 0
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebp
call sym.leptonlib.dll_boxGetGeometry
mov eax, 3
add esp, 0x14
cmp dword [esp + 0x34], eax
jne 0x1003fe69
cmp dword [esp + 0x38], eax
jne 0x1003fe69
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call sym.leptonlib.dll_pixGetDimensions
push esi
call sym.leptonlib.dll_pixGetColormap
add esp, 0x14
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1003fb21
cmp dword [esp + 0x3c], 0x20
jne 0x1003fe69
push ebx
push edi
xor ebx, ebx
lea eax, [esp + 0x58]
jmp 0x1003fb34
mov eax, dword [esp + 0x34]
xor esi, esi
mov edi, eax
add eax, 0xc
mov dword [esp + 0x34], eax
nop
push edi
push esi
push ebx
push ebp
call sym.leptonlib.dll_kernelGetElement
inc esi
add esp, 0x10
add edi, 4
cmp esi, 3
jl 0x1003fb40
inc ebx
cmp ebx, 3
jl 0x1003fb30
cmp dword [esp + 0x30], 0
je 0x1003fc9f
mov edx, dword [esp + 0x80]
push edx
push 0
call sym.leptonlib.dll_pixCopy
mov edi, eax
add esp, 8
mov dword [esp + 0x24], edi
test edi, edi
je 0x1003fcb9
push edi
call sym.leptonlib.dll_pixGetColormap
mov ebp, eax
push ebp
call sym.leptonlib.dll_ccbaGetCount
add esp, 8
xor esi, esi
mov dword [esp + 0x34], eax
test eax, eax
jle 0x1003fc95
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push ebp
call sym.leptonlib.dll_pixcmapGetColor
fild dword [esp + 0x24]
add esp, 0x14
fstp dword [esp + 0x1c]
fild dword [esp + 0x14]
fstp dword [esp + 0x80]
fild dword [esp + 0x18]
fstp dword [esp + 0x20]
fld dword [esp + 0x80]
fld st(0)
fmul dword [esp + 0x58]
fld dword [esp + 0x1c]
fld st(0)
fmul dword [esp + 0x5c]
faddp st(2)
fld dword [esp + 0x20]
fld st(0)
fmul dword [esp + 0x60]
faddp st(3)
fxch st(2)
call fcn.10140710
fld st(2)
fmul dword [esp + 0x64]
mov edi, eax
fld st(1)
fmul dword [esp + 0x68]
faddp st(1)
fld st(2)
fmul dword [esp + 0x6c]
faddp st(1)
call fcn.10140710
fld dword [esp + 0x70]
fmulp st(3)
mov ebx, eax
fmul dword [esp + 0x74]
faddp st(2)
fmul dword [esp + 0x78]
faddp st(1)
call fcn.10140710
cmp edi, 0xff
jg 0x1003fc4b
test edi, edi
jge 0x1003fc50
xor edi, edi
jmp 0x1003fc50
mov edi, 0xff
cmp ebx, 0xff
jg 0x1003fc60
test ebx, ebx
jge 0x1003fc65
xor ebx, ebx
jmp 0x1003fc65
mov ebx, 0xff
cmp eax, 0xff
jg 0x1003fc74
test eax, eax
jge 0x1003fc79
xor eax, eax
jmp 0x1003fc79
mov eax, 0xff
push eax
push ebx
push edi
push esi
push ebp
call sym.leptonlib.dll_pixcmapResetColor
inc esi
add esp, 0x14
cmp esi, dword [esp + 0x34]
jl 0x1003fba5
mov edi, dword [esp + 0x24]
mov eax, edi
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x6c
ret
mov esi, dword [esp + 0x80]
push esi
call sym.leptonlib.dll_pixCreateTemplateNoInit
mov ebp, eax
add esp, 4
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x1003fcc3
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
add esp, 0x6c
ret
push esi
call sym.leptonlib.dll_pixGetData
push ebp
mov edi, eax
call sym.leptonlib.dll_pixGetData
push esi
mov ebx, eax
call sym.leptonlib.dll_dpixGetRefcount
push ebp
mov esi, eax
call sym.leptonlib.dll_dpixGetRefcount
add esp, 0x10
cmp dword [esp + 0x38], 0
mov dword [esp + 0x2c], 0
jle 0x1003fe5f
add eax, eax
add eax, eax
lea ecx, [esi*4]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
xor ebp, ebp
test eax, eax
jle 0x1003fe34
mov eax, edi
sub eax, ebx
mov dword [esp + 0x48], eax
jmp 0x1003fd34
mov eax, dword [esp + 0x48]
mov eax, dword [eax + ebx]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call sym.leptonlib.dll_extractRGBValues
fild dword [esp + 0x20]
add esp, 0x10
fstp dword [esp + 0x1c]
fild dword [esp + 0x14]
fstp dword [esp + 0x80]
fild dword [esp + 0x18]
fstp dword [esp + 0x20]
fld dword [esp + 0x80]
fld st(0)
fmul dword [esp + 0x58]
fld dword [esp + 0x1c]
fld st(0)
fmul dword [esp + 0x5c]
faddp st(2)
fld dword [esp + 0x20]
fld st(0)
fmul dword [esp + 0x60]
faddp st(3)
fxch st(2)
call fcn.10140710
fld st(2)
fmul dword [esp + 0x64]
mov esi, eax
fld st(1)
fmul dword [esp + 0x68]
faddp st(1)
fld st(2)
fmul dword [esp + 0x6c]
faddp st(1)
call fcn.10140710
fld dword [esp + 0x70]
fmulp st(3)
mov edi, eax
fmul dword [esp + 0x74]
faddp st(2)
fmul dword [esp + 0x78]
faddp st(1)
call fcn.10140710
cmp esi, 0xff
jg 0x1003fddc
test esi, esi
jge 0x1003fde1
xor esi, esi
jmp 0x1003fde1
mov esi, 0xff
cmp edi, 0xff
jg 0x1003fdf1
test edi, edi
jge 0x1003fdf6
xor edi, edi
jmp 0x1003fdf6
mov edi, 0xff
cmp eax, 0xff
jg 0x1003fe05
test eax, eax
jge 0x1003fe0a
xor eax, eax
jmp 0x1003fe0a
mov eax, 0xff
lea ecx, [esp + 0x4c]
push ecx
push eax
push edi
push esi
call sym.leptonlib.dll_composeRGBPixel
mov edx, dword [esp + 0x5c]
mov dword [ebx], edx
mov eax, dword [esp + 0x38]
inc ebp
add esp, 0x10
add ebx, 4
cmp ebp, eax
jl 0x1003fd30
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
add edi, dword [esp + 0x50]
add ebx, dword [esp + 0x54]
inc ecx
cmp ecx, dword [esp + 0x38]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
jl 0x1003fd16
mov ebp, dword [esp + 0x24]
pop edi
pop ebx
mov eax, ebp
pop ebp
pop esi
add esp, 0x6c
ret
pop ebp
xor eax, eax
pop esi
add esp, 0x6c
ret