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

Disassembly:
sub esp, 0x54
push ebp
mov ebp, dword [esp + 0x5c]
test ebp, ebp
je 0x100b9ee5
push ebp
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 8
jne 0x100b9ee5
push esi
mov esi, dword [esp + 0x64]
test esi, esi
je 0x100b9eda
push esi
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 1
jne 0x100b9eda
cmp dword [esp + 0x68], 0
jg 0x100b9c20
mov dword [esp + 0x68], 0xfe
push ebx
push 0
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x5c]
push ecx
push ebp
call sym.leptonlib.dll_pixGetDimensions
push ebp
call sym.leptonlib.dll_pixGetData
push ebp
mov dword [esp + 0x64], eax
call sym.leptonlib.dll_dpixGetRefcount
push 8
lea edx, [esp + 0x4c]
push edx
push esi
mov dword [esp + 0x60], eax
call sym.leptonlib.dll_pixConnComp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x54]
push eax
call sym.leptonlib.dll_boxaGetCount
xor ebx, ebx
add esp, 0x28
mov dword [esp + 0x5c], eax
mov dword [esp + 0x2c], ebx
test eax, eax
jle 0x100b9eba
push edi
jmp 0x100b9c80
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push edx
call sym.leptonlib.dll_boxaGetBoxGeometry
mov eax, dword [esp + 0x4c]
push 1
push ebx
push eax
call sym.leptonlib.dll_pixaGetPix
push 0
push 1
push eax
mov dword [esp + 0x40], eax
call sym.leptonlib.dll_pixAddBorder
push 3
push 3
push eax
push 0
mov dword [esp + 0x6c], eax
call sym.leptonlib.dll_pixDilateBrick
mov ecx, dword [esp + 0x6c]
add esp, 0x40
push ecx
push eax
push eax
mov dword [esp + 0x30], eax
call sym.leptonlib.dll_pixXor
mov edx, dword [esp + 0x30]
push edx
call sym.leptonlib.dll_pixGetData
mov esi, eax
mov eax, dword [esp + 0x34]
push eax
call sym.leptonlib.dll_dpixGetRefcount
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x64]
push edx
push 0
mov edi, eax
mov eax, dword [esp + 0x30]
push 0
push eax
call sym.leptonlib.dll_nextOnPixelInRaster
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x4c]
add eax, edx
mov edx, dword [esp + 0x78]
push eax
add edx, ecx
push edx
push ebp
call sym.leptonlib.dll_pixGetPixel
mov eax, dword [esp + 0xa8]
add esp, 0x38
cmp dword [esp + 0x38], eax
jbe 0x100b9d90
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x28]
push 0xc
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x84]
push ecx
push edx
push eax
call sym.leptonlib.dll_pixRasterop
lea ecx, [esp + 0x34]
push ecx
call sym.leptonlib.dll_pixDestroy
lea edx, [esp + 0x54]
push edx
call sym.leptonlib.dll_pixDestroy
lea eax, [esp + 0x50]
push eax
call sym.leptonlib.dll_pixDestroy
add esp, 0x30
jmp 0x100b9eaa
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
add ecx, 2
dec ebp
mov dword [esp + 0x3c], 0
test ecx, ecx
jle 0x100b9e85
mov ecx, dword [esp + 0x50]
mov eax, ebp
imul eax, dword [esp + 0x40]
lea edx, [edi*4]
lea ebx, [ecx + eax*4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x28], esi
lea ecx, [ecx]
test ebp, ebp
jl 0x100b9e81
cmp ebp, dword [esp + 0x54]
jge 0x100b9e81
mov esi, dword [esp + 0x20]
lea edx, [eax + 2]
xor edi, edi
dec esi
test edx, edx
jle 0x100b9e29
test esi, esi
jl 0x100b9e29
cmp esi, dword [esp + 0x58]
jge 0x100b9e29
mov eax, dword [esp + 0x28]
push edi
push eax
call sym.leptonlib.dll_l_getDataBit
add esp, 8
test eax, eax
je 0x100b9e1c
push esi
push ebx
call sym.leptonlib.dll_l_getDataByte
add esp, 8
cmp eax, dword [esp + 0x38]
jbe 0x100b9e52
mov eax, dword [esp + 0x18]
inc edi
lea ecx, [eax + 2]
inc esi
cmp edi, ecx
jl 0x100b9df0
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
add ecx, ecx
add ecx, ecx
add ebx, ecx
mov ecx, dword [esp + 0x14]
inc edx
add ecx, 2
inc ebp
cmp edx, ecx
mov dword [esp + 0x3c], edx
jl 0x100b9dd0
jmp 0x100b9e81
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push 0
push edx
mov edx, dword [esp + 0x28]
push 0xc
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x84]
push edx
push eax
push ecx
call sym.leptonlib.dll_pixRasterop
add esp, 0x24
mov ebx, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
call sym.leptonlib.dll_pixDestroy
lea eax, [esp + 0x30]
push eax
call sym.leptonlib.dll_pixDestroy
lea ecx, [esp + 0x2c]
push ecx
call sym.leptonlib.dll_pixDestroy
mov ebp, dword [esp + 0x74]
add esp, 0xc
inc ebx
cmp ebx, dword [esp + 0x60]
mov dword [esp + 0x30], ebx
jl 0x100b9c80
pop edi
lea edx, [esp + 0x40]
push edx
call sym.leptonlib.dll_boxaDestroy
lea eax, [esp + 0x34]
push eax
call sym.leptonlib.dll_pixaDestroy
add esp, 8
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x54
ret
pop esi
mov eax, 1
pop ebp
add esp, 0x54
ret
mov eax, 1
pop ebp
add esp, 0x54
ret