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

Disassembly:
mov eax, dword [esp + 0x18]
sub esp, 0x40
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x10068101
mov dword [eax], ebp
mov ebx, dword [esp + 0x4c]
cmp ebx, ebp
jne 0x10068111
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call sym.leptonlib.dll_pixGetDimensions
add esp, 0x10
cmp dword [esp + 0x38], 1
jne 0x10068109
push esi
mov esi, dword [esp + 0x54]
cmp esi, ebp
jle 0x10068648
cmp esi, dword [esp + 0x18]
jge 0x10068648
push edi
mov edi, dword [esp + 0x5c]
cmp edi, ebp
jle 0x1006863e
cmp edi, dword [esp + 0x20]
jge 0x1006863e
lea eax, [esp + 0x10]
push eax
push edi
push esi
push ebx
call sym.leptonlib.dll_pixGetPixel
add esp, 0x10
cmp dword [esp + 0x10], ebp
jne 0x1006863e
push 5
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x68]
push edx
push ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x44], ebp
call fcn.10067270
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push 1
push eax
push ecx
call sym.leptonlib.dll_pixCreate
mov edx, dword [esp + 0x3c]
push 8
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
push edx
push eax
call sym.leptonlib.dll_pixCreate
push ebp
push ebx
mov dword [esp + 0x60], eax
call sym.leptonlib.dll_pixGetLinePtrs
mov ecx, dword [esp + 0x5c]
push ebp
push ecx
mov dword [esp + 0x5c], eax
call sym.leptonlib.dll_pixGetLinePtrs
mov edx, dword [esp + 0x68]
push ebp
push edx
mov ebx, eax
call sym.leptonlib.dll_pixGetLinePtrs
add esp, 0x40
mov ebp, eax
push 0
mov dword [esp + 0x1c], ebp
call sym.leptonlib.dll_lqueueCreate
push 0
push edi
push esi
mov dword [esp + 0x24], eax
call fcn.10067240
mov ecx, dword [esp + 0x3c]
push 1
mov esi, eax
mov eax, dword [esp + 0x6c]
push edi
push eax
push ecx
call sym.leptonlib.dll_pixSetPixel
mov edx, dword [esp + 0x34]
push esi
push edx
call sym.leptonlib.dll_lqueueAdd
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x64], 0
call sym.leptonlib.dll_lqueueGetCount
add esp, 0x2c
test eax, eax
jle 0x10068443
jmp 0x10068240
mov ecx, dword [esp + 0x14]
push ecx
call sym.leptonlib.dll_lqueueRemove
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
add esp, 4
mov dword [esp + 0x44], eax
cmp edi, dword [esp + 0x60]
jne 0x10068267
cmp esi, dword [esp + 0x64]
je 0x10068431
test edi, edi
jle 0x100682d1
mov edx, dword [ebx + esi*4]
lea ebp, [edi - 1]
push ebp
push edx
call sym.leptonlib.dll_l_getDataBit
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100682cd
mov eax, dword [ebx + esi*4]
push ebp
push eax
call sym.leptonlib.dll_l_setDataBit
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + esi*4]
push ebp
push edx
call sym.leptonlib.dll_l_getDataBit
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100682cd
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + esi*4]
push 4
push ebp
push ecx
call sym.leptonlib.dll_l_setDataByte
push 0
push esi
push ebp
call fcn.10067240
mov edx, dword [esp + 0x2c]
push eax
push edx
call sym.leptonlib.dll_lqueueAdd
add esp, 0x20
mov ebp, dword [esp + 0x18]
test esi, esi
jle 0x10068337
mov eax, dword [ebx + esi*4 - 4]
push edi
push eax
call sym.leptonlib.dll_l_getDataBit
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10068337
mov ecx, dword [ebx + esi*4 - 4]
push edi
push ecx
call sym.leptonlib.dll_l_setDataBit
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + esi*4 - 4]
push edi
push eax
call sym.leptonlib.dll_l_getDataBit
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10068337
mov ecx, dword [ebp + esi*4 - 4]
push 2
push edi
push ecx
call sym.leptonlib.dll_l_setDataByte
push 0
lea edx, [esi - 1]
push edx
push edi
call fcn.10067240
push eax
mov eax, dword [esp + 0x30]
push eax
call sym.leptonlib.dll_lqueueAdd
add esp, 0x20
mov ecx, dword [esp + 0x1c]
dec ecx
cmp edi, ecx
jge 0x100683a6
mov edx, dword [ebx + esi*4]
lea ebp, [edi + 1]
push ebp
push edx
call sym.leptonlib.dll_l_getDataBit
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100683a2
mov eax, dword [ebx + esi*4]
push ebp
push eax
call sym.leptonlib.dll_l_setDataBit
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + esi*4]
push ebp
push edx
call sym.leptonlib.dll_l_getDataBit
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100683a2
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + esi*4]
push 3
push ebp
push ecx
call sym.leptonlib.dll_l_setDataByte
push 0
push esi
push ebp
call fcn.10067240
mov edx, dword [esp + 0x2c]
push eax
push edx
call sym.leptonlib.dll_lqueueAdd
add esp, 0x20
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
dec eax
cmp esi, eax
jge 0x1006840f
mov ecx, dword [ebx + esi*4 + 4]
push edi
push ecx
call sym.leptonlib.dll_l_getDataBit
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1006840f
mov edx, dword [ebx + esi*4 + 4]
push edi
push edx
call sym.leptonlib.dll_l_setDataBit
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + esi*4 + 4]
push edi
push ecx
call sym.leptonlib.dll_l_getDataBit
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1006840f
mov edx, dword [ebp + esi*4 + 4]
push 1
push edi
push edx
call sym.leptonlib.dll_l_setDataByte
push 0
inc esi
push esi
push edi
call fcn.10067240
push eax
mov eax, dword [esp + 0x30]
push eax
call sym.leptonlib.dll_lqueueAdd
add esp, 0x20
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
mov edx, dword [esp + 0x18]
push edx
call sym.leptonlib.dll_lqueueGetCount
add esp, 8
test eax, eax
jg 0x10068240
jmp 0x10068443
push eax
mov dword [esp + 0x3c], 1
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea eax, [esp + 0x14]
push 1
push eax
call sym.leptonlib.dll_lqueueDestroy
lea ecx, [esp + 0x34]
push ecx
call sym.leptonlib.dll_pixDestroy
push ebx
call dword [sym.imp.MSVCR90.dll_free]
mov esi, dword [esp + 0x78]
add esp, 0x10
test esi, esi
je 0x10068482
mov edx, dword [esp + 0x54]
push 1
push 0x20
push edx
call sym.leptonlib.dll_pixUnpackBinary
add esp, 0xc
mov dword [esp + 0x28], eax
mov dword [esi], eax
lea eax, [esp + 0x48]
push eax
push 0
push 0
push 0xff
call sym.leptonlib.dll_composeRGBPixel
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0xff
push 0
call sym.leptonlib.dll_composeRGBPixel
lea edx, [esp + 0x6c]
push edx
push 0xff
push 0
push 0
call sym.leptonlib.dll_composeRGBPixel
add esp, 0x30
cmp dword [esp + 0x38], 0
jne 0x10068596
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1006856d
push 0
push eax
call sym.leptonlib.dll_pixGetLinePtrs
xor edi, edi
add esp, 8
cmp dword [esp + 0x20], edi
mov ebx, eax
jle 0x1006852e
mov eax, dword [esp + 0x1c]
mov edi, edi
xor esi, esi
test eax, eax
jle 0x10068527
mov eax, dword [ebp + edi*4]
push esi
push eax
call sym.leptonlib.dll_l_getDataByte
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x1006851e
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebx + edi*4]
push ecx
push esi
push edx
call sym.leptonlib.dll_l_setDataFourBytes
add esp, 0xc
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x100684f6
inc edi
cmp edi, dword [esp + 0x20]
jl 0x100684f0
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov esi, dword [esp + 0x28]
test esi, esi
je 0x1006856d
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
push edx
push eax
push esi
call sym.leptonlib.dll_pixSetPixel
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push ecx
push edx
push eax
push esi
call sym.leptonlib.dll_pixSetPixel
add esp, 0x20
lea ecx, [esp + 0x30]
push ecx
call sym.leptonlib.dll_pixDestroy
mov edx, dword [esp + 0x28]
mov esi, dword [sym.imp.MSVCR90.dll_free]
push edx
call esi
push ebp
call esi
mov eax, dword [esp + 0x40]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push 0
call sym.leptonlib.dll_ptaCreate
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x68], edi
fild dword [esp + 0x68]
mov eax, dword [esp + 0x34]
sub esp, 8
fstp dword [esp + 4]
fild dword [esp + 0x5c]
fstp dword [esp]
push eax
call sym.leptonlib.dll_ptaAddPt
add esp, 0xc
cmp esi, dword [esp + 0x58]
jne 0x100685e3
cmp edi, dword [esp + 0x5c]
je 0x10068538
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100685fb
mov ecx, dword [esp + 0x3c]
push ecx
push edi
push esi
push eax
call sym.leptonlib.dll_pixSetPixel
add esp, 0x10
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
push edi
push esi
push eax
call sym.leptonlib.dll_pixGetPixel
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, 1
jne 0x1006861b
dec edi
jmp 0x100685b0
cmp eax, 2
jne 0x10068623
inc edi
jmp 0x100685b0
cmp eax, 4
jne 0x1006862f
inc esi
mov dword [esp + 0x54], esi
jmp 0x100685b4
cmp eax, 3
jne 0x100685b4
dec esi
mov dword [esp + 0x54], esi
jmp 0x100685b4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret