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

Disassembly:
sub esp, 0x48
push esi
mov esi, dword [esp + 0x50]
test esi, esi
jne 0x1005e613
xor eax, eax
pop esi
add esp, 0x48
ret
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x58]
push edx
push esi
call sym.leptonlib.dll_pixGetDimensions
add esp, 0x10
cmp dword [esp + 0x40], 0x20
jne 0x1005e60c
push ebp
mov ebp, dword [esp + 0x60]
cmp ebp, 1
je 0x1005e649
cmp ebp, 2
je 0x1005e649
pop ebp
xor eax, eax
pop esi
add esp, 0x48
ret
push ebx
push edi
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call sym.leptonlib.dll_extractRGBValues
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x4c]
push eax
push ecx
call sym.leptonlib.dll_extractRGBValues
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x7c]
push 1
push edx
push eax
call sym.leptonlib.dll_pixCreate
mov ebx, eax
push esi
push ebx
mov dword [esp + 0x7c], ebx
call sym.leptonlib.dll_pixCopyResolution
push esi
call sym.leptonlib.dll_pixGetData
push esi
mov edi, eax
call sym.leptonlib.dll_dpixGetRefcount
push ebx
mov esi, eax
call sym.leptonlib.dll_pixGetData
mov ecx, dword [esp + 0x88]
add esp, 0x40
push ecx
mov ebx, eax
call sym.leptonlib.dll_dpixGetRefcount
add esp, 4
cmp dword [esp + 0x18], 0
mov dword [esp + 0x44], 0
jle 0x1005e846
lea edx, [eax*4]
lea eax, [esi*4]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x54], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
jmp 0x1005e700
xor ebx, ebx
mov dword [esp + 0x40], ebx
test eax, eax
jle 0x1005e823
mov edi, edi
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [ecx + ebx*4]
lea eax, [esp + 0x28]
push eax
push edx
call sym.leptonlib.dll_extractRGBValues
add esp, 0x10
cmp ebp, 1
jne 0x1005e7a6
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, edx
sub eax, ecx
jns 0x1005e746
mov eax, ecx
sub eax, edx
mov esi, dword [esp + 0x34]
mov edx, esi
sub edx, ecx
jns 0x1005e754
sub ecx, esi
jmp 0x1005e756
mov ecx, edx
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov esi, edi
sub esi, edx
jns 0x1005e768
mov esi, edx
sub esi, edi
mov edi, dword [esp + 0x38]
add eax, esi
mov esi, edi
sub esi, edx
jns 0x1005e778
sub edx, edi
jmp 0x1005e77a
mov edx, esi
mov edi, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [esp + 0x30]
mov esi, edi
sub esi, edx
jns 0x1005e78e
mov esi, edx
sub esi, edi
mov edi, dword [esp + 0x3c]
add eax, esi
mov esi, edi
sub esi, edx
jns 0x1005e7a0
sub edx, edi
add ecx, edx
jmp 0x1005e800
mov edx, esi
add ecx, edx
jmp 0x1005e800
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
sub edx, ebx
sub ecx, edi
sub eax, esi
mov ebp, edx
imul eax, eax
imul ebp, edx
mov edx, ecx
imul edx, ecx
mov ecx, dword [esp + 0x34]
sub ecx, esi
mov esi, dword [esp + 0x3c]
imul ecx, ecx
add eax, ebp
mov ebp, dword [esp + 0x68]
sub esi, ebx
mov ebx, dword [esp + 0x40]
add eax, edx
mov edx, dword [esp + 0x38]
sub edx, edi
mov edi, esi
imul edi, esi
mov esi, edx
imul esi, edx
add ecx, edi
add ecx, esi
cmp eax, ecx
jae 0x1005e812
mov eax, dword [esp + 0x14]
push ebx
push eax
call sym.leptonlib.dll_l_setDataBit
add esp, 8
mov eax, dword [esp + 0x5c]
inc ebx
cmp ebx, eax
mov dword [esp + 0x40], ebx
jl 0x1005e710
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
add dword [esp + 0x10], edx
mov edx, dword [esp + 0x54]
add dword [esp + 0x14], edx
inc ecx
cmp ecx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
jl 0x1005e700
mov eax, dword [esp + 0x48]
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x48
ret