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

Disassembly:
sub esp, 0x4c
push esi
mov esi, dword [esp + 0x58]
test esi, esi
jne 0x1000de75
mov eax, dword [esp + 0x54]
pop esi
add esp, 0x4c
ret
push edi
mov edi, dword [esp + 0x60]
test edi, edi
je 0x1000dea7
push esi
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 1
je 0x1000dea7
push edi
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 8
jne 0x1000dea7
push edi
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
je 0x1000deb1
mov eax, dword [esp + 0x58]
pop edi
pop esi
add esp, 0x4c
ret
push ebx
mov ebx, dword [esp + 0x5c]
cmp ebx, esi
jne 0x1000dec7
push esi
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
jne 0x1000decf
test ebx, ebx
je 0x1000ded8
cmp ebx, esi
je 0x1000ded8
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x4c
ret
fldz
fld dword [esp + 0x70]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x1000def6
fld1
fcompp
fnstsw ax
test ah, 5
jp 0x1000df02
jmp 0x1000def8
fstp st(0)
fld dword [0x10142f34]
fstp dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x78]
cmp ebp, 4
je 0x1000df16
cmp ebp, 5
je 0x1000df16
mov ebp, 4
test ebx, ebx
jne 0x1000df7c
push 3
push esi
call sym.leptonlib.dll_pixRemoveColormap
push eax
mov dword [esp + 0x44], eax
call sym.leptonlib.dll_numaGetRefcount
add esp, 0xc
cmp eax, 8
jge 0x1000df44
mov eax, dword [esp + 0x38]
push ebx
push eax
call sym.leptonlib.dll_pixConvertTo8
add esp, 8
jmp 0x1000df51
mov ecx, dword [esp + 0x38]
push ecx
call sym.leptonlib.dll_boxClone
add esp, 4
push eax
push 0
mov dword [esp + 0x50], eax
call sym.leptonlib.dll_pixCopy
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x6c], eax
call sym.leptonlib.dll_pixDestroy
lea eax, [esp + 0x54]
push eax
call sym.leptonlib.dll_pixDestroy
mov ebx, dword [esp + 0x70]
add esp, 0x10
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
call sym.leptonlib.dll_pixGetDimensions
push ebx
call sym.leptonlib.dll_dpixGetRefcount
push ebx
mov esi, eax
call sym.leptonlib.dll_pixGetData
push edi
mov ebx, eax
call sym.leptonlib.dll_boxClone
push 0
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x88]
push edx
push eax
mov dword [esp + 0x70], eax
call sym.leptonlib.dll_pixGetDimensions
mov eax, dword [esp + 0x70]
push eax
call sym.leptonlib.dll_pixGetData
mov ecx, dword [esp + 0x74]
push ecx
mov edi, eax
call sym.leptonlib.dll_dpixGetRefcount
add esp, 0x34
mov dword [esp + 0x20], 0
cmp ebp, 4
jne 0x1000e1cc
cmp dword [esp + 0x34], 0
jle 0x1000e458
mov ecx, dword [esp + 0x70]
add eax, eax
add eax, eax
mov dword [esp + 0x40], eax
lea eax, [esi*4]
imul esi, ecx
mov dword [esp + 0x24], edi
mov edx, ecx
lea edi, [ebx + esi*4]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], edi
test edx, edx
jl 0x1000e19b
cmp edx, dword [esp + 0x50]
jge 0x1000e19b
mov eax, dword [esp + 0x54]
cmp eax, 8
je 0x1000e12a
cmp eax, 0x20
jne 0x1000e19b
xor ebx, ebx
cmp dword [esp + 0x64], ebx
jle 0x1000e19b
mov ecx, dword [esp + 0x6c]
lea ebp, [edi + ecx*4]
jmp 0x1000e060
mov edx, dword [esp + 0x6c]
lea eax, [ebx + edx]
test eax, eax
jl 0x1000e11a
cmp eax, dword [esp + 0x28]
jge 0x1000e11a
mov eax, dword [esp + 0x24]
push ebx
push eax
call sym.leptonlib.dll_l_getDataByte
add esp, 8
cmp dword [esp + 0x7c], 0
mov dword [esp + 0x30], eax
je 0x1000e09b
cmp eax, dword [esp + 0x80]
je 0x1000e11a
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x2c], eax
call sym.leptonlib.dll_extractRGBValues
fld dword [esp + 0x84]
fld st(0)
fld1
fsubrp st(1)
fild dword [esp + 0x40]
fmulp st(2)
fild dword [esp + 0x20]
fmul st(1)
fadd st(2)
call fcn.10140710
fild dword [esp + 0x24]
mov esi, eax
mov dword [esp + 0x20], esi
fmul st(1)
fadd st(2)
call fcn.10140710
fimul dword [esp + 0x28]
mov edi, eax
mov dword [esp + 0x24], edi
faddp st(1)
call fcn.10140710
lea edx, [esp + 0x2c]
push edx
push eax
push edi
push esi
mov dword [esp + 0x38], eax
call sym.leptonlib.dll_composeRGBPixel
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x4c]
add esp, 0x20
mov dword [ebp], eax
inc ebx
add ebp, 4
cmp ebx, dword [esp + 0x64]
jl 0x1000e060
jmp 0x1000e19b
xor ebx, ebx
cmp dword [esp + 0x64], ebx
jle 0x1000e19b
mov esi, dword [esp + 0x6c]
test esi, esi
jl 0x1000e193
cmp esi, dword [esp + 0x28]
jge 0x1000e193
mov ecx, dword [esp + 0x24]
push ebx
push ecx
call sym.leptonlib.dll_l_getDataByte
add esp, 8
cmp dword [esp + 0x7c], 0
mov dword [esp + 0x30], eax
je 0x1000e162
cmp eax, dword [esp + 0x80]
je 0x1000e193
push esi
push edi
call sym.leptonlib.dll_l_getDataByte
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
fld dword [esp + 0x7c]
fld st(0)
fld1
fsubrp st(1)
fmulp st(2)
fimul dword [esp + 0x38]
faddp st(1)
call fcn.10140710
push eax
push esi
push edi
call sym.leptonlib.dll_l_setDataByte
add esp, 0x14
inc ebx
inc esi
cmp ebx, dword [esp + 0x64]
jl 0x1000e136
mov edx, dword [esp + 0x40]
add dword [esp + 0x24], edx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x4c]
add edi, dword [esp + 0x3c]
inc eax
inc edx
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x4c], edx
jl 0x1000e020
jmp 0x1000e458
cmp dword [esp + 0x34], 0
jle 0x1000e458
mov ecx, dword [esp + 0x70]
add eax, eax
add eax, eax
mov dword [esp + 0x40], eax
lea eax, [esi*4]
imul esi, ecx
mov edx, ecx
lea ebx, [ebx + esi*4]
mov dword [esp + 0x58], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
test edx, edx
jl 0x1000e428
cmp edx, dword [esp + 0x50]
jge 0x1000e428
mov eax, dword [esp + 0x54]
cmp eax, 8
je 0x1000e389
cmp eax, 0x20
jne 0x1000e428
xor esi, esi
cmp dword [esp + 0x64], esi
mov dword [esp + 0x4c], esi
jle 0x1000e428
mov ecx, dword [esp + 0x6c]
lea edx, [ebx + ecx*4]
mov dword [esp + 0x24], edx
jmp 0x1000e250
mov eax, dword [esp + 0x6c]
add eax, esi
js 0x1000e370
cmp eax, dword [esp + 0x28]
jge 0x1000e370
mov ecx, dword [esp + 0x30]
push esi
push ecx
call sym.leptonlib.dll_l_getDataByte
add esp, 8
cmp dword [esp + 0x7c], 0
mov edi, eax
je 0x1000e28a
cmp edi, dword [esp + 0x80]
je 0x1000e370
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x2c], eax
call sym.leptonlib.dll_extractRGBValues
mov esi, 0xff
sub esi, edi
mov edi, dword [esp + 0x20]
mov eax, 0x80
sub eax, edi
imul eax, esi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fld dword [esp + 0x84]
fld st(0)
fmulp st(2)
fld qword [0x10142230]
fadd st(2), st(0)
fxch st(2)
call fcn.10140710
mov ebx, dword [esp + 0x24]
add edi, eax
mov eax, 0x80
sub eax, ebx
imul eax, esi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
fild dword [esp + 0x24]
fmul st(1)
fadd st(2)
call fcn.10140710
mov ebp, dword [esp + 0x28]
add ebx, eax
mov eax, 0x80
sub eax, ebp
imul eax, esi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebx
fimul dword [esp + 0x28]
faddp st(1)
call fcn.10140710
lea edx, [esp + 0x2c]
push edx
add ebp, eax
push ebp
push ebx
push edi
mov dword [esp + 0x38], ebp
call sym.leptonlib.dll_composeRGBPixel
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x6c]
add esp, 0x20
mov dword [ecx], eax
add dword [esp + 0x24], 4
inc esi
cmp esi, dword [esp + 0x64]
mov dword [esp + 0x4c], esi
jl 0x1000e250
jmp 0x1000e428
xor ebp, ebp
cmp dword [esp + 0x64], ebp
jle 0x1000e428
mov edi, dword [esp + 0x6c]
lea esp, [esp]
test edi, edi
jl 0x1000e41c
cmp edi, dword [esp + 0x28]
jge 0x1000e41c
mov edx, dword [esp + 0x30]
push ebp
push edx
call sym.leptonlib.dll_l_getDataByte
add esp, 8
cmp dword [esp + 0x7c], 0
mov ebx, eax
je 0x1000e3ca
cmp ebx, dword [esp + 0x80]
je 0x1000e41c
mov eax, dword [esp + 0x2c]
push edi
push eax
call sym.leptonlib.dll_l_getDataByte
mov esi, eax
mov eax, 0x80
sub eax, esi
mov ecx, 0xff
sub ecx, ebx
imul eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fmul dword [esp + 0x7c]
fadd qword [0x10142230]
call fcn.10140710
mov edx, dword [esp + 0x34]
add eax, esi
push eax
push edi
push edx
call sym.leptonlib.dll_l_setDataByte
add esp, 0x14
inc ebp
inc edi
cmp ebp, dword [esp + 0x64]
jl 0x1000e3a0
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x58]
add ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
add dword [esp + 0x30], ecx
inc eax
inc edx
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x58], edx
jl 0x1000e202
lea edx, [esp + 0x44]
push edx
call sym.leptonlib.dll_pixDestroy
mov eax, dword [esp + 0x64]
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x4c
ret