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

Disassembly:
sub esp, 0x40
push ebp
mov ebp, dword [esp + 0x50]
test ebp, ebp
jne 0x10082733
xor eax, eax
pop ebp
add esp, 0x40
ret
push edi
mov edi, dword [esp + 0x4c]
test edi, edi
jne 0x10082745
lea eax, [edi + 1]
pop edi
pop ebp
add esp, 0x40
ret
push ebx
mov ebx, dword [esp + 0x54]
test ebx, ebx
je 0x100829e9
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
call sym.leptonlib.dll_pixGetDimensions
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x48]
push edx
push ebx
call sym.leptonlib.dll_pixGetDimensions
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x5c]
push edx
push ebp
call sym.leptonlib.dll_pixGetDimensions
mov eax, dword [esp + 0x40]
add esp, 0x30
cmp eax, dword [esp + 0x28]
jne 0x100829e9
cmp dword [esp + 0x2c], 1
jne 0x100829e9
cmp eax, 1
je 0x100827c0
cmp eax, 8
je 0x100827c0
cmp eax, 0x20
jne 0x100829e9
push edi
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
jne 0x100829e9
push ebx
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
jne 0x100829e9
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
cmp ecx, edx
mov eax, ecx
jl 0x100827f2
mov eax, edx
push esi
mov esi, dword [esp + 0x3c]
cmp esi, eax
jge 0x10082801
mov dword [esp + 0x10], esi
jmp 0x1008280d
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x1008280d
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
cmp ecx, edx
mov eax, ecx
jl 0x1008281d
mov eax, edx
mov esi, dword [esp + 0x48]
cmp esi, eax
jl 0x1008282d
cmp ecx, edx
mov esi, ecx
jl 0x1008282d
mov esi, edx
cmp dword [esp + 0x14], 1
jne 0x10082889
push ebp
push ebx
push 0
call sym.leptonlib.dll_pixAnd
mov ebx, dword [esp + 0x1c]
push 0
push 0
push ebp
push 4
push esi
push ebx
push 0
push 0
push edi
mov dword [esp + 0x54], eax
call sym.leptonlib.dll_pixRasterop
mov eax, dword [esp + 0x54]
push 0
push 0
push eax
push 0x1c
push esi
push ebx
push 0
push 0
push edi
call sym.leptonlib.dll_pixRasterop
lea ecx, [esp + 0x78]
add esp, 0x54
push ecx
call sym.leptonlib.dll_pixDestroy
add esp, 4
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x40
ret
push edi
call sym.leptonlib.dll_pixGetData
push ebx
mov edi, eax
call sym.leptonlib.dll_pixGetData
push ebp
mov ebx, eax
call sym.leptonlib.dll_pixGetData
mov edx, dword [esp + 0x60]
push edx
mov ebp, eax
call sym.leptonlib.dll_dpixGetRefcount
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
push eax
call sym.leptonlib.dll_dpixGetRefcount
mov ecx, dword [esp + 0x70]
push ecx
mov dword [esp + 0x38], eax
call sym.leptonlib.dll_dpixGetRefcount
add esp, 0x18
cmp dword [esp + 0x14], 8
jne 0x10082954
test esi, esi
jle 0x1008287f
lea edx, [eax*4]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
lea ecx, [eax*4]
lea eax, [edx*4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x20], esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x10082937
mov edi, edi
push esi
push ebp
call sym.leptonlib.dll_l_getDataBit
add esp, 8
test eax, eax
je 0x10082930
push esi
push ebx
call sym.leptonlib.dll_l_getDataByte
push eax
push esi
push edi
call sym.leptonlib.dll_l_setDataByte
add esp, 0x14
inc esi
cmp esi, dword [esp + 0x10]
jl 0x10082910
add edi, dword [esp + 0x5c]
add ebx, dword [esp + 0x18]
add ebp, dword [esp + 0x1c]
sub dword [esp + 0x20], 1
jne 0x10082906
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x40
ret
test esi, esi
jle 0x1008287f
mov edx, dword [esp + 0x20]
lea ecx, [eax*4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
lea eax, [edx*4]
lea edx, [ecx*4]
mov dword [esp + 0x20], ebp
mov ebp, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x5c], edx
mov ebx, edi
mov dword [esp + 0x28], esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x100829c8
mov eax, ebp
sub eax, ebx
mov edi, ebx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
push esi
push eax
call sym.leptonlib.dll_l_getDataBit
add esp, 8
test eax, eax
je 0x100829be
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + edi]
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, dword [esp + 0x10]
jl 0x100829a3
mov eax, dword [esp + 0x1c]
add ebx, dword [esp + 0x5c]
add ebp, dword [esp + 0x18]
add dword [esp + 0x20], eax
sub dword [esp + 0x28], 1
jne 0x10082991
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x40
ret
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x40
ret