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

Disassembly:
sub esp, 0x54
push esi
mov esi, dword [esp + 0x5c]
test esi, esi
jne 0x100b1ed3
xor eax, eax
pop esi
add esp, 0x54
ret
push esi
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 8
jne 0x100b1ecc
push ebp
push edi
push esi
call sym.leptonlib.dll_pixGetColormap
push 0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call sym.leptonlib.dll_pixGetDimensions
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x68]
lea edx, [eax*4]
add edi, edi
dec eax
add edi, edi
push esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x68], edx
mov dword [esp + 0x5c], eax
call sym.leptonlib.dll_pixGetData
push esi
mov dword [esp + 0x30], eax
call sym.leptonlib.dll_dpixGetRefcount
mov esi, dword [sym.imp.MSVCR90.dll_calloc]
mov dword [esp + 0x2c], eax
add eax, eax
push 4
push eax
call esi
mov ebp, eax
add esp, 0x24
test ebp, ebp
jne 0x100b1f4c
pop edi
pop ebp
pop esi
add esp, 0x54
ret
lea eax, [edi + 3]
cdq
and edx, 3
push ebx
add eax, edx
mov ebx, eax
sar ebx, 2
lea edi, [ebx*4]
push 4
push edi
mov dword [esp + 0x28], ebx
call esi
mov esi, eax
add esp, 8
test esi, esi
je 0x100b1fa6
push 4
push ebx
call dword [sym.imp.MSVCR90.dll_calloc]
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x100b1fa6
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
push 1
push ecx
push edx
call sym.leptonlib.dll_pixCreate
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x60], ebx
test ebx, ebx
jne 0x100b1fb0
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x54
ret
mov eax, dword [esp + 0x68]
push eax
push ebx
call sym.leptonlib.dll_pixCopyResolution
fld dword [0x10142db0]
fst dword [esp + 4]
fstp dword [esp]
push ebx
call sym.leptonlib.dll_pixScaleResolution
push ebx
call sym.leptonlib.dll_dpixGetRefcount
push ebx
mov dword [esp + 0x7c], eax
call sym.leptonlib.dll_pixGetData
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add ebx, ebx
add ebx, ebx
push ebx
push ecx
push ebp
mov dword [esp + 0x48], eax
call sub.MSVCR90.dll_memcpy
mov edx, dword [esp + 0x38]
lea eax, [ebx + edx]
push ebx
lea ecx, [ebx + ebp]
push eax
push ecx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push 0
push eax
push ecx
push ebp
push edx
push esi
call sym.leptonlib.dll_scaleGray4xLILineLow
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x78], eax
lea eax, [edi + esi]
add esp, 0x44
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], 3
mov edi, edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
push 0
push 0xa
push 0xa
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call sym.leptonlib.dll_ditherToBinaryLineLow
mov eax, dword [esp + 0x84]
add dword [esp + 0x48], edi
add dword [esp + 0x4c], edi
add eax, eax
add eax, eax
add dword [esp + 0x50], eax
add esp, 0x1c
sub dword [esp + 0x4c], 1
jne 0x100b2040
mov ecx, dword [esp + 0x48]
cmp ecx, 1
jle 0x100b21c5
mov eax, dword [esp + 0x20]
lea edx, [eax + eax*2]
lea eax, [esi + edx*4]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
shl eax, 4
add edx, eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x18]
add edx, ebx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x68]
add edx, edx
mov dword [esp + 0x5c], eax
add edx, edx
sub eax, edx
add eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
lea eax, [eax + edx*8]
dec ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x38]
push ebx
push ecx
push ebp
call sub.MSVCR90.dll_memcpy
mov edx, dword [esp + 0x48]
push ebx
push edx
lea eax, [ebx + ebp]
push eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x34]
push edi
push eax
push ecx
call sub.MSVCR90.dll_memcpy
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push 0
push edx
push eax
push ebp
push ecx
push esi
call sym.leptonlib.dll_scaleGray4xLILineLow
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x80]
push 0
push 0xa
push 0xa
push esi
push edx
push eax
push ecx
call sym.leptonlib.dll_ditherToBinaryLineLow
mov edx, dword [esp + 0x98]
lea eax, [edi + esi]
add esp, 0x58
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], 3
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push 0
push 0xa
push 0xa
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call sym.leptonlib.dll_ditherToBinaryLineLow
mov eax, dword [esp + 0x84]
add dword [esp + 0x50], edi
add dword [esp + 0x4c], edi
add eax, eax
add eax, eax
add dword [esp + 0x48], eax
add esp, 0x1c
sub dword [esp + 0x50], 1
jne 0x100b2162
mov eax, dword [esp + 0x5c]
add dword [esp + 0x38], ebx
add dword [esp + 0x3c], ebx
add dword [esp + 0x40], eax
add dword [esp + 0x44], eax
sub dword [esp + 0x54], 1
jne 0x100b20e0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
imul edx, ecx
push ebx
lea ecx, [eax + edx*4]
push ecx
push ebp
call sub.MSVCR90.dll_memcpy
mov ebx, dword [esp + 0x2c]
lea edx, [ebx + ebx*2]
lea eax, [esi + edx*4]
push edi
push eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x30]
push eax
call sub.MSVCR90.dll_memcpy
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
push 1
push ecx
push edx
push ebp
push ebx
push esi
call sym.leptonlib.dll_scaleGray4xLILineLow
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov ebx, eax
imul ebx, dword [esp + 0x78]
push 0
push 0xa
push 0xa
shl ebx, 4
add ebx, dword [esp + 0x64]
push esi
push ecx
add eax, eax
add eax, eax
mov ecx, ebx
push edx
sub ecx, eax
push ecx
call sym.leptonlib.dll_ditherToBinaryLineLow
lea eax, [edi + esi]
add esp, 0x4c
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], 3
jmp 0x100b2260
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x10]
push 0
push 0xa
push 0xa
push edx
mov edx, dword [esp + 0x50]
push eax
push ecx
push edx
call sym.leptonlib.dll_ditherToBinaryLineLow
mov eax, dword [esp + 0x84]
add dword [esp + 0x64], edi
add dword [esp + 0x60], edi
add eax, eax
add eax, eax
add dword [esp + 0x5c], eax
add esp, 0x1c
sub dword [esp + 0x54], 1
jne 0x100b2260
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
push 1
push 0xa
push 0xa
push 0
push eax
mov eax, dword [esp + 0x7c]
lea edx, [eax + eax*2]
push ecx
lea eax, [ebx + edx*4]
push eax
call sym.leptonlib.dll_ditherToBinaryLineLow
mov edi, dword [sym.imp.MSVCR90.dll_free]
push ebp
call edi
push esi
call edi
mov ecx, dword [esp + 0x40]
push ecx
call edi
mov eax, dword [esp + 0x88]
add esp, 0x28
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x54
ret