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

Disassembly:
sub esp, 0x54
push esi
mov esi, dword [esp + 0x5c]
test esi, esi
jne 0x100c9da3
xor eax, eax
pop esi
add esp, 0x54
ret
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x50]
push edx
push esi
call sym.leptonlib.dll_pixGetDimensions
mov eax, dword [esp + 0x48]
add esp, 0x10
cmp eax, 8
je 0x100c9dc9
cmp eax, 0x20
jne 0x100c9d9c
push ebx
mov ebx, dword [esp + 0x64]
cmp ebx, 1
je 0x100c9dd8
cmp ebx, 2
jne 0x100c9df4
mov eax, dword [esp + 0x68]
cmp eax, 1
je 0x100c9de6
cmp eax, 2
jne 0x100c9df4
mov eax, dword [esp + 0x70]
cmp eax, 1
je 0x100c9dfc
cmp eax, 2
je 0x100c9dfc
pop ebx
xor eax, eax
pop esi
add esp, 0x54
ret
push ebp
push edi
push esi
call sym.leptonlib.dll_pixCreateTemplate
push 1
push eax
mov dword [esp + 0x38], eax
call sym.leptonlib.dll_pixSetBlackOrWhite
push esi
call sym.leptonlib.dll_pixGetData
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
push eax
call sym.leptonlib.dll_pixGetData
mov edi, eax
push esi
mov dword [esp + 0x60], edi
call sym.leptonlib.dll_dpixGetRefcount
mov ecx, dword [esp + 0x44]
push ecx
mov dword [esp + 0x3c], eax
call sym.leptonlib.dll_dpixGetRefcount
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x70]
xor esi, esi
add esp, 0x1c
cmp eax, esi
lea ebp, [eax - 1]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x14], esi
jle 0x100ca1a4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x74]
mov edx, ebp
imul edx, edi
mov eax, edi
shl eax, 6
mov dword [esp + 0x60], eax
mov eax, edi
neg eax
shl eax, 6
shl edx, 6
mov dword [esp + 0x50], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x4c], edx
jmp 0x100c9ea8
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x74]
mov eax, 1
cmp ebx, eax
jne 0x100c9eca
cmp dword [esp + 0x70], eax
jne 0x100c9ec4
mov eax, edx
cdq
idiv ebp
sub esi, eax
mov dword [esp + 0x18], esi
jmp 0x100c9efb
mov eax, dword [esp + 0x3c]
jmp 0x100c9ee2
cmp ebx, 2
jne 0x100c9efb
cmp dword [esp + 0x70], eax
jne 0x100c9ede
mov eax, dword [esp + 0x40]
cdq
idiv ebp
jmp 0x100c9ef3
mov eax, dword [esp + 0x14]
imul eax, eax
imul eax, edi
mov edi, ebp
imul edi, ebp
shl eax, 6
cdq
idiv edi
mov edx, esi
sub edx, eax
mov dword [esp + 0x18], edx
mov ebx, dword [esp + 0x18]
mov eax, ebx
cdq
and edx, 0x3f
add eax, edx
mov edi, eax
sar edi, 6
xor edx, edx
and ebx, 0x3f
cmp edi, edx
jl 0x100ca169
cmp edi, ebp
jg 0x100ca169
mov eax, dword [esp + 0x44]
cmp eax, 8
je 0x100ca086
cmp eax, 0x20
jne 0x100ca1b0
cmp edi, ebp
jge 0x100ca04d
cmp ecx, edx
mov dword [esp + 0x68], edx
jle 0x100ca169
mov eax, dword [esp + 0x28]
lea ecx, [edi*4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
lea edx, [ecx + 4]
mov ebp, 0x3f
add eax, edx
sub ebp, ebx
sub ecx, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], ecx
jmp 0x100c9f88
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x58]
mov ecx, dword [ecx + eax]
mov esi, dword [eax]
mov edx, dword [esp + 0x34]
push edx
mov eax, ecx
shr eax, 8
and eax, 0xff
imul eax, ebp
mov edx, esi
shr edx, 8
and edx, 0xff
imul edx, ebx
lea edi, [eax + edx + 0x1f]
mov eax, 0x4104105
mul edi
sub edi, edx
shr edi, 1
add edi, edx
mov eax, ecx
shr eax, 0x10
mov edx, esi
shr edx, 0x10
and eax, 0xff
imul eax, ebp
and edx, 0xff
imul edx, ebx
shr edi, 5
push edi
lea edi, [eax + edx + 0x1f]
shr ecx, 0x18
mov eax, 0x4104105
imul ecx, ebp
mul edi
shr esi, 0x18
imul esi, ebx
sub edi, edx
lea ecx, [ecx + esi + 0x1f]
shr edi, 1
add edi, edx
mov eax, 0x4104105
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr edi, 5
shr ecx, 5
push edi
push ecx
call sym.leptonlib.dll_composeRGBPixel
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x78]
add ecx, ecx
add ecx, ecx
add dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x34]
add ecx, ecx
add ecx, ecx
add dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x20]
inc eax
add esp, 0x10
cmp eax, ecx
mov dword [esp + 0x68], eax
jl 0x100c9f80
jmp 0x100ca165
cmp ecx, edx
jle 0x100ca169
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
add esi, esi
add ebx, ebx
add esi, esi
add ebx, ebx
lea edi, [ecx + edi*4]
mov ecx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
inc edx
add edi, ebx
add eax, esi
cmp edx, ecx
jl 0x100ca070
jmp 0x100ca169
cmp edi, ebp
jge 0x100ca124
cmp ecx, edx
mov dword [esp + 0x68], edx
jle 0x100ca169
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x1c]
mov eax, 0x3f
sub eax, ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x34], edx
lea eax, [edi + 1]
push eax
push ebp
call sym.leptonlib.dll_l_getDataByte
mov esi, eax
push edi
imul esi, ebx
push ebp
call sym.leptonlib.dll_l_getDataByte
imul eax, dword [esp + 0x68]
lea esi, [eax + esi + 0x1f]
mov eax, 0x82082083
imul esi
add edx, esi
mov esi, dword [esp + 0x44]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
mov eax, dword [esp + 0x28]
push eax
push esi
call sym.leptonlib.dll_l_setDataByte
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x84]
add ecx, ecx
add ecx, ecx
add ebp, ecx
mov ecx, dword [esp + 0x40]
add ecx, ecx
add ecx, ecx
add esi, ecx
mov ecx, dword [esp + 0x2c]
inc eax
add esp, 0x1c
cmp eax, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x34], esi
jl 0x100ca0b1
jmp 0x100ca165
xor esi, esi
test ecx, ecx
jle 0x100ca169
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x1c]
push edi
push ebx
call sym.leptonlib.dll_l_getDataByte
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push ebp
call sym.leptonlib.dll_l_setDataByte
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
add eax, eax
add eax, eax
add ebx, eax
mov eax, dword [esp + 0x38]
add eax, eax
add eax, eax
inc esi
add esp, 0x14
add ebp, eax
cmp esi, ecx
jl 0x100ca132
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x60]
add dword [esp + 0x40], esi
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
add edx, dword [esp + 0x5c]
dec dword [esp + 0x3c]
add dword [esp + 0x28], 4
inc eax
add esi, 0x40
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], esi
jl 0x100c9ea0
mov eax, dword [esp + 0x2c]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x54
ret
lea edx, [esp + 0x2c]
push edx
call sym.leptonlib.dll_pixDestroy
add esp, 4
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x54
ret