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

Disassembly:
sub esp, 0x54
push esi
mov esi, dword [esp + 0x60]
test esi, esi
jne 0x10010795
mov eax, dword [esp + 0x5c]
pop esi
add esp, 0x54
ret
push edi
mov edi, dword [esp + 0x68]
test edi, edi
je 0x100107e0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x4c]
push edx
push esi
call sym.leptonlib.dll_pixGetDimensions
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
call sym.leptonlib.dll_pixGetDimensions
add esp, 0x20
cmp dword [esp + 0x10], 1
je 0x100107e0
mov eax, dword [esp + 0xc]
cmp eax, 8
je 0x100107ea
cmp eax, 0x20
je 0x100107ea
mov eax, dword [esp + 0x60]
pop edi
pop esi
add esp, 0x54
ret
push ebx
mov ebx, dword [esp + 0x64]
test ebx, ebx
je 0x1001081e
cmp ebx, esi
jne 0x1001093a
push esi
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
jne 0x1001093a
mov eax, dword [esp + 0x14]
cmp eax, 8
je 0x1001081e
cmp eax, 0x20
jne 0x1001093a
fldz
fld dword [esp + 0x78]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x1001083c
fld1
fcompp
fnstsw ax
test ah, 5
jp 0x10010848
jmp 0x1001083e
fstp st(0)
fld dword [0x10142f34]
fstp dword [esp + 0x78]
push edi
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
je 0x10010862
push 3
push edi
call sym.leptonlib.dll_pixRemoveColormap
add esp, 8
jmp 0x1001086b
push edi
call sym.leptonlib.dll_boxClone
add esp, 4
push eax
mov dword [esp + 0x24], eax
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
mov dword [esp + 0x10], eax
push esi
cmp eax, 0x20
jne 0x100108eb
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
je 0x100108ac
push 2
push esi
call sym.leptonlib.dll_pixRemoveColormap
add esp, 8
mov dword [esp + 0x64], eax
mov ebx, eax
mov dword [esp + 0x14], 0x20
jmp 0x10010948
push esi
call sym.leptonlib.dll_pixConvertTo32
test ebx, ebx
jne 0x100108c9
add esp, 4
mov dword [esp + 0x64], eax
mov ebx, eax
mov dword [esp + 0x14], 0x20
jmp 0x10010948
push eax
push ebx
mov dword [esp + 0x4c], eax
call sym.leptonlib.dll_pixCopy
lea eax, [esp + 0x4c]
push eax
call sym.leptonlib.dll_pixDestroy
add esp, 0x10
mov dword [esp + 0x14], 0x20
jmp 0x10010948
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
je 0x10010901
push 3
push esi
call sym.leptonlib.dll_pixRemoveColormap
jmp 0x10010908
push esi
push ebx
call sym.leptonlib.dll_pixCopy
mov ecx, eax
add esp, 8
push ecx
mov dword [esp + 0x68], eax
call sym.leptonlib.dll_numaGetRefcount
mov ebx, dword [esp + 0x68]
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 8
jne 0x10010943
cmp dword [esp + 0x10], eax
je 0x10010956
lea eax, [esp + 0x20]
push eax
call sym.leptonlib.dll_pixDestroy
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x54
ret
cmp eax, 0x20
jne 0x1001092d
mov eax, dword [esp + 0x10]
cmp eax, 8
je 0x10010956
cmp eax, 0x20
jne 0x1001092d
push ebp
push ebx
call sym.leptonlib.dll_dpixGetRefcount
push ebx
mov esi, eax
call sym.leptonlib.dll_pixGetData
mov edx, dword [esp + 0x2c]
push edx
mov ebp, eax
call sym.leptonlib.dll_pixGetData
mov edi, eax
mov eax, dword [esp + 0x30]
push eax
call sym.leptonlib.dll_dpixGetRefcount
add esp, 0x10
cmp dword [esp + 0x40], 0
mov dword [esp + 0x34], 0
jle 0x10010bf8
mov ecx, dword [esp + 0x78]
add eax, eax
add eax, eax
mov dword [esp + 0x60], eax
lea eax, [esi*4]
imul esi, ecx
mov edx, ecx
lea esi, [ebp + esi*4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], esi
nop
test edx, edx
jl 0x10010bcc
cmp edx, dword [esp + 0x48]
jge 0x10010bcc
xor ebp, ebp
cmp dword [esp + 0x30], ebp
jle 0x10010bcc
mov eax, dword [esp + 0x74]
mov ecx, eax
mov dword [esp + 0x2c], ecx
lea ebx, [esi + eax*4]
jmp 0x100109f0
test ecx, ecx
jl 0x10010bad
cmp ecx, dword [esp + 0x4c]
jge 0x10010bad
mov eax, dword [esp + 0x18]
cmp eax, 8
jne 0x10010a53
cmp dword [esp + 0x14], eax
jne 0x10010bad
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
call sym.leptonlib.dll_l_getDataByte
push ebp
push edi
mov esi, eax
call sym.leptonlib.dll_l_getDataByte
fld dword [esp + 0x8c]
add esp, 0xc
fstp dword [esp]
call fcn.1000efd0
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push edx
push eax
call sym.leptonlib.dll_l_setDataByte
add esp, 0x10
jmp 0x10010bad
cmp eax, 0x20
jne 0x10010bad
mov eax, dword [esp + 0x14]
cmp eax, 8
jne 0x10010afe
mov eax, dword [ebx]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x30], eax
call sym.leptonlib.dll_extractRGBValues
push ebp
push edi
call sym.leptonlib.dll_l_getDataByte
fld dword [esp + 0x94]
mov esi, dword [esp + 0x28]
fstp dword [esp + 0x14]
add esp, 0x14
mov edi, eax
call fcn.1000efd0
fld dword [esp + 0x80]
mov esi, dword [esp + 0x70]
fstp dword [esp]
mov dword [esp + 0x14], eax
mov eax, edi
call fcn.1000efd0
fld dword [esp + 0x80]
mov esi, dword [esp + 0x20]
fstp dword [esp]
mov dword [esp + 0x70], eax
mov eax, edi
call fcn.1000efd0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
push eax
push ecx
call sym.leptonlib.dll_composeRGBPixel
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x4c]
mov dword [ebx], edx
jmp 0x10010baa
cmp eax, 0x20
jne 0x10010bad
mov eax, dword [ebx]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x30], eax
call sym.leptonlib.dll_extractRGBValues
lea edx, [esp + 0x68]
push edx
mov edx, dword [edi + ebp*4]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x68]
push ecx
push edx
call sym.leptonlib.dll_extractRGBValues
fld dword [esp + 0x9c]
mov eax, dword [esp + 0x70]
fstp dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
add esp, 0x1c
call fcn.1000efd0
fld dword [esp + 0x80]
mov esi, dword [esp + 0x70]
fstp dword [esp]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
call fcn.1000efd0
fld dword [esp + 0x80]
mov esi, dword [esp + 0x20]
fstp dword [esp]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x5c]
call fcn.1000efd0
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call sym.leptonlib.dll_composeRGBPixel
mov ecx, dword [esp + 0x34]
mov dword [ebx], ecx
add esp, 0x14
mov ecx, dword [esp + 0x2c]
inc ebp
inc ecx
add ebx, 4
cmp ebp, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
jl 0x100109f0
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
add esi, dword [esp + 0x5c]
add edi, dword [esp + 0x60]
inc eax
inc edx
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edx
jl 0x100109c0
lea edx, [esp + 0x24]
push edx
call sym.leptonlib.dll_pixDestroy
add esp, 4
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x54
ret