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

Disassembly:
sub esp, 0x58
push edi
mov edi, dword [esp + 0x60]
test edi, edi
je 0x100ba358
push edi
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 8
jne 0x100ba358
push esi
mov esi, dword [esp + 0x68]
test esi, esi
je 0x100ba350
push esi
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 1
jne 0x100ba350
push ebx
push ebp
push 0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x64]
push ecx
push edi
call sym.leptonlib.dll_pixGetDimensions
push 0
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x7c]
push eax
push esi
call sym.leptonlib.dll_pixGetDimensions
push 8
lea ecx, [esp + 0x68]
push ecx
push esi
call sym.leptonlib.dll_pixConnComp
push eax
mov dword [esp + 0x70], eax
call sym.leptonlib.dll_boxaGetCount
mov ebx, eax
push ebx
mov dword [esp + 0x88], ebx
call sym.leptonlib.dll_ptaCreate
mov ebp, eax
push ebx
mov dword [esp + 0x70], ebp
call sym.leptonlib.dll_numaCreate
push edi
mov dword [esp + 0x4c], eax
call sym.leptonlib.dll_pixGetData
mov esi, eax
push edi
mov dword [esp + 0x8c], esi
call sym.leptonlib.dll_dpixGetRefcount
xor edi, edi
add esp, 0x40
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], edi
test ebx, ebx
jle 0x100ba30a
mov edx, dword [esp + 0x44]
push 2
push edi
push edx
call sym.leptonlib.dll_pixaGetPix
mov dword [esp + 0x78], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
push edi
push ecx
call sym.leptonlib.dll_boxaGetBoxGeometry
mov eax, 1
add esp, 0x24
cmp dword [esp + 0x1c], eax
jne 0x100ba1d1
cmp dword [esp + 0x24], eax
jne 0x100ba1d1
fild dword [esp + 0x14]
sub esp, 8
fstp dword [esp + 4]
fild dword [esp + 0x20]
fstp dword [esp]
push ebp
call sym.leptonlib.dll_ptaAddPt
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esi + eax*4]
push ecx
call sym.leptonlib.dll_l_getDataByte
mov edx, dword [esp + 0x24]
mov dword [esp + 0x50], eax
add esp, 0x10
fild dword [esp + 0x40]
fstp dword [esp]
push edx
call sym.leptonlib.dll_numaAddNumber
lea eax, [esp + 0x74]
push eax
call sym.leptonlib.dll_pixDestroy
jmp 0x100ba2fa
mov ecx, dword [esp + 0x6c]
push ecx
call sym.leptonlib.dll_pixGetData
mov edx, dword [esp + 0x70]
push edx
mov edi, eax
call sym.leptonlib.dll_dpixGetRefcount
xor ecx, ecx
mov ebx, 0xf4240
add esp, 8
cmp dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov ebp, 0x100
mov dword [esp + 0x34], ecx
jle 0x100ba29d
add eax, eax
add eax, eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], edi
lea esp, [esp]
mov edx, dword [esp + 0x14]
lea ebx, [ecx + edx]
mov edx, ebx
imul edx, dword [esp + 0x30]
lea edx, [esi + edx*4]
xor edi, edi
mov dword [esp + 0x48], edx
test eax, eax
jle 0x100ba286
jmp 0x100ba240
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push edi
push ecx
lea esi, [edi + eax]
call sym.leptonlib.dll_l_getDataBit
add esp, 8
test eax, eax
je 0x100ba275
mov edx, dword [esp + 0x48]
push esi
push edx
call sym.leptonlib.dll_l_getDataByte
add esp, 8
cmp eax, ebp
jge 0x100ba275
mov ebp, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x100ba240
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
add dword [esp + 0x20], edx
inc ecx
cmp ecx, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
jl 0x100ba220
mov ebx, dword [esp + 0x28]
fild dword [esp + 0x28]
mov eax, dword [esp + 0x38]
sub esp, 8
fstp dword [esp + 4]
fild dword [esp + 0x34]
fstp dword [esp]
push eax
call sym.leptonlib.dll_ptaAddPt
imul ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esi + ebx*4]
push edx
call sym.leptonlib.dll_l_getDataByte
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x24]
fild dword [esp + 0x64]
add esp, 0x10
fstp dword [esp]
push eax
call sym.leptonlib.dll_numaAddNumber
lea ecx, [esp + 0x74]
push ecx
call sym.leptonlib.dll_pixDestroy
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x48]
inc edi
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x3c], edi
jl 0x100ba137
lea edx, [esp + 0x40]
push edx
call sym.leptonlib.dll_boxaDestroy
lea eax, [esp + 0x48]
push eax
call sym.leptonlib.dll_pixaDestroy
mov eax, dword [esp + 0x7c]
add esp, 8
test eax, eax
je 0x100ba339
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, ebp
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x58
ret
lea edx, [esp + 0x10]
push edx
call sym.leptonlib.dll_numaDestroy
add esp, 4
mov eax, ebp
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x58
ret
pop esi
xor eax, eax
pop edi
add esp, 0x58
ret
xor eax, eax
pop edi
add esp, 0x58
ret