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

Disassembly:
sub esp, 0x80
push edi
mov edi, dword [esp + 0x88]
test edi, edi
jne 0x10062adf
mov eax, 1
pop edi
add esp, 0x80
ret
cmp dword [esp + 0x8c], 0
je 0x10062ad2
push ebp
mov ebp, dword [esp + 0x94]
test ebp, ebp
jne 0x10062b01
lea eax, [ebp + 1]
pop ebp
pop edi
add esp, 0x80
ret
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x38], eax
push ebx
mov eax, ecx
cdq
push esi
sub eax, edx
push 1
sar eax, 1
push eax
push eax
push ecx
push ecx
call sym.leptonlib.dll_selCreateBrick
push ebp
mov dword [esp + 0x9c], eax
call sym.leptonlib.dll_boxaGetCount
mov esi, eax
push esi
mov dword [esp + 0x94], esi
call sym.leptonlib.dll_pixaCreate
push esi
mov dword [esp + 0x58], eax
call sym.leptonlib.dll_pixaCreate
add esp, 0x20
xor ebx, ebx
mov dword [esp + 0x54], eax
test esi, esi
jle 0x10062bc1
push 2
push ebx
push ebp
call sym.leptonlib.dll_pixaGetPix
push 0
push 6
push 6
push 6
push 6
push eax
mov dword [esp + 0x3c], eax
call sym.leptonlib.dll_pixAddBorderGeneral
mov ecx, dword [esp + 0xa8]
push ecx
push eax
push 0
mov dword [esp + 0x44], eax
call sym.leptonlib.dll_pixDilate
mov edx, dword [esp + 0x44]
push 0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x6c]
push edx
push eax
call sym.leptonlib.dll_pixaAddPix
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x90]
push 0
push ecx
push edx
call sym.leptonlib.dll_pixaAddPix
lea eax, [esp + 0x60]
add esp, 0x48
push eax
call sym.leptonlib.dll_pixDestroy
inc ebx
add esp, 4
cmp ebx, esi
jl 0x10062b52
mov ecx, dword [esp + 0x38]
push ecx
call sym.leptonlib.dll_pixaCentroids
mov edx, dword [edi + 0x58]
push 0
push 0
push eax
push edx
mov dword [esp + 0x78], eax
call sym.leptonlib.dll_ptaJoin
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 0x60]
mov edx, dword [edi + 0x64]
add esp, 0x14
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
call sym.leptonlib.dll_makePixelSumTab8
fld dword [edi + 0x24]
mov ecx, dword [edi + 0x4c]
fstp dword [esp + 0x68]
fld1
mov edx, dword [edi + 0x50]
fcomp dword [esp + 0x68]
mov ebp, dword [edi + 0x48]
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
fnstsw ax
mov dword [esp + 0x6c], edx
test ah, 0x44
jp 0x10062f75
xor ebx, ebx
test esi, esi
jle 0x1006336d
jmp 0x10062c40
mov eax, dword [esp + 0x38]
push 2
push ebx
push eax
call sym.leptonlib.dll_pixaGetPix
mov ecx, dword [esp + 0x60]
push 2
push ebx
push ecx
mov dword [esp + 0x2c], eax
call sym.leptonlib.dll_pixaGetPix
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x50]
push eax
push ebx
push ecx
call sym.leptonlib.dll_ptaGetPt
push ebp
call sym.leptonlib.dll_boxaGetCount
mov edx, dword [esp + 0x40]
push 0x18
push 1
mov dword [esp + 0x94], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x54], edx
call dword [sym.imp.MSVCR90.dll_calloc]
mov esi, eax
mov eax, dword [esp + 0x54]
push eax
call sym.leptonlib.dll_pixGetWidth
mov ecx, dword [esp + 0x58]
sub eax, 0xc
push ecx
mov dword [esi + 4], eax
call sym.leptonlib.dll_pixGetHeight
sub eax, 0xc
add esp, 0x3c
mov dword [esi + 8], eax
mov dword [esi], edi
call fcn.100625a0
mov edi, eax
cmp edi, 0xffffffff
jle 0x10062e30
push 2
push edi
push ebp
call sym.leptonlib.dll_pixaGetPix
mov edx, dword [esp + 0x5c]
push 2
push edi
push edx
mov dword [esp + 0x3c], eax
call sym.leptonlib.dll_pixaGetPix
mov edx, dword [esp + 0x64]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x78]
push ecx
push edi
push edx
call sym.leptonlib.dll_ptaGetPt
fld dword [esp + 0x58]
fsub dword [esp + 0x80]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
add esp, 0x28
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
push 2
push 2
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x44]
fsub dword [esp + 0x6c]
fstp dword [esp + 0x8c]
fld dword [esp + 0x8c]
fstp dword [esp]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
call sym.leptonlib.dll_pixHaustest
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x44], eax
call sym.leptonlib.dll_pixDestroy
lea edx, [esp + 0x4c]
push edx
call sym.leptonlib.dll_pixDestroy
mov eax, 1
add esp, 0x28
cmp dword [esp + 0x20], eax
je 0x10062d96
call fcn.100625a0
mov edi, eax
cmp edi, 0xffffffff
jg 0x10062cd5
jmp 0x10062e30
mov dword [esp + 0x20], edi
fild dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
fstp dword [esp]
push eax
call sym.leptonlib.dll_numaAddNumber
fild dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add esp, 4
fstp dword [esp]
push ecx
call sym.leptonlib.dll_numaAddNumber
mov edx, dword [esp + 0x9c]
add esp, 8
cmp dword [edx + 0x40], 0
je 0x10062e30
mov eax, dword [esp + 0x48]
push 2
push edi
push eax
call sym.leptonlib.dll_pixaaGetPixa
mov ecx, dword [esp + 0xa8]
push 2
push ebx
push ecx
mov dword [esp + 0x28], eax
call sym.leptonlib.dll_pixaGetPix
mov edx, dword [esp + 0x28]
push 0
push eax
push edx
mov dword [esp + 0x3c], eax
call sym.leptonlib.dll_pixaAddPix
mov eax, dword [esp + 0xbc]
push 2
push ebx
push eax
call sym.leptonlib.dll_boxaGetBox
mov ecx, dword [esp + 0x40]
push 0
push eax
push ecx
call sym.leptonlib.dll_pixaAddBox
lea edx, [esp + 0x4c]
push edx
call sym.leptonlib.dll_pixaDestroy
add esp, 0x40
lea eax, [esi + 0x10]
push eax
call sym.leptonlib.dll_numaDestroy
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 8
cmp dword [esp + 0x2c], 0
jne 0x10062f47
fild dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x40]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp]
push ecx
call sym.leptonlib.dll_numaAddNumber
fild dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
add esp, 4
fstp dword [esp]
push edx
call sym.leptonlib.dll_numaAddNumber
push 0
call sym.leptonlib.dll_pixaCreate
push 2
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xac]
push ebx
push eax
call sym.leptonlib.dll_pixaGetPix
mov ecx, dword [esp + 0x28]
push 0
push eax
push ecx
mov dword [esp + 0x3c], eax
call sym.leptonlib.dll_pixaAddPix
mov edx, dword [esp + 0x3c]
push edx
call sym.leptonlib.dll_pixGetWidth
mov esi, eax
mov eax, dword [esp + 0x40]
push eax
call sym.leptonlib.dll_pixGetHeight
fld dword [esp + 0x58]
imul eax, esi
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x98]
add esp, 0x28
push eax
push ecx
call sym.leptonlib.dll_numaHashAdd
mov edx, dword [esp + 0xa4]
push 2
push ebx
push edx
call sym.leptonlib.dll_boxaGetBox
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
call sym.leptonlib.dll_pixaAddBox
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x6c]
push 0
push ecx
push edx
call sym.leptonlib.dll_pixaaAddPixa
fld dword [esp + 0x60]
mov eax, dword [esp + 0x7c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x64]
add esp, 0x28
fstp dword [esp]
push eax
call sym.leptonlib.dll_ptaAddPt
mov ecx, dword [esp + 0x20]
push 0
push ecx
push ebp
call sym.leptonlib.dll_pixaAddPix
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x68]
push 0
push edx
push eax
call sym.leptonlib.dll_pixaAddPix
add esp, 0x24
jmp 0x10062f5e
lea ecx, [esp + 0x14]
push ecx
call sym.leptonlib.dll_pixDestroy
lea edx, [esp + 0x20]
push edx
call sym.leptonlib.dll_pixDestroy
add esp, 8
mov edi, dword [esp + 0x94]
inc ebx
cmp ebx, dword [esp + 0x78]
jl 0x10062c40
jmp 0x1006336d
mov eax, dword [esp + 0x9c]
push eax
call sym.leptonlib.dll_pixaCountPixels
add esp, 4
mov dword [esp + 0x80], eax
test eax, eax
jne 0x10062fa0
pop esi
pop ebx
pop ebp
mov eax, 1
pop edi
add esp, 0x80
ret
mov ecx, dword [edi + 0x54]
mov dword [esp + 0x74], ecx
call sym.leptonlib.dll_makePixelSumTab8
xor ebx, ebx
mov dword [esp + 0x7c], eax
test esi, esi
jle 0x10063352
lea ebx, [ebx]
mov edx, dword [esp + 0x38]
push 2
push ebx
push edx
call sym.leptonlib.dll_pixaGetPix
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x7c]
push eax
push ebx
push ecx
call sym.leptonlib.dll_numaGetIValue
mov edx, dword [esp + 0x6c]
push 2
push ebx
push edx
call sym.leptonlib.dll_pixaGetPix
mov edx, dword [esp + 0x88]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x5c]
push ecx
push ebx
push edx
call sym.leptonlib.dll_ptaGetPt
push ebp
call sym.leptonlib.dll_boxaGetCount
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x4c]
push 0x18
push 1
mov dword [esp + 0x6c], 0
mov dword [esp + 0x60], eax
call dword [sym.imp.MSVCR90.dll_calloc]
mov ecx, dword [esp + 0x60]
add esp, 0x40
push ecx
mov esi, eax
call sym.leptonlib.dll_pixGetWidth
mov edx, dword [esp + 0x24]
sub eax, 0xc
push edx
mov dword [esi + 4], eax
call sym.leptonlib.dll_pixGetHeight
sub eax, 0xc
add esp, 8
mov dword [esi + 8], eax
mov dword [esi], edi
call fcn.100625a0
mov edi, eax
cmp edi, 0xffffffff
jle 0x100631fe
mov edi, edi
push 2
push edi
push ebp
call sym.leptonlib.dll_pixaGetPix
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x94]
push eax
push edi
push ecx
call sym.leptonlib.dll_numaGetIValue
mov edx, dword [esp + 0x68]
push 2
push edi
push edx
call sym.leptonlib.dll_pixaGetPix
mov edx, dword [esp + 0x70]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x84]
push ecx
push edi
push edx
call sym.leptonlib.dll_ptaGetPt
fld dword [esp + 0x9c]
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xa4]
add esp, 0x34
push eax
push ecx
mov ecx, dword [esp + 0x90]
fstp dword [esp]
fld dword [esp + 0x38]
mov eax, dword [esp + 0x30]
fsub dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x2c]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
push 2
push 2
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x54]
fsub dword [esp + 0x7c]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [esp]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call sym.leptonlib.dll_pixRankHaustest
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x54], eax
call sym.leptonlib.dll_pixDestroy
lea edx, [esp + 0x5c]
push edx
call sym.leptonlib.dll_pixDestroy
mov eax, 1
add esp, 0x38
cmp dword [esp + 0x20], eax
je 0x10063164
call fcn.100625a0
mov edi, eax
cmp edi, 0xffffffff
jg 0x10063070
jmp 0x100631fe
mov dword [esp + 0x20], edi
fild dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
fstp dword [esp]
push eax
call sym.leptonlib.dll_numaAddNumber
fild dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add esp, 4
fstp dword [esp]
push ecx
call sym.leptonlib.dll_numaAddNumber
mov edx, dword [esp + 0x9c]
add esp, 8
cmp dword [edx + 0x40], 0
je 0x100631fe
mov eax, dword [esp + 0x48]
push 2
push edi
push eax
call sym.leptonlib.dll_pixaaGetPixa
mov ecx, dword [esp + 0xa8]
push 2
push ebx
push ecx
mov dword [esp + 0x28], eax
call sym.leptonlib.dll_pixaGetPix
mov edx, dword [esp + 0x28]
push 0
push eax
push edx
mov dword [esp + 0x3c], eax
call sym.leptonlib.dll_pixaAddPix
mov eax, dword [esp + 0xbc]
push 2
push ebx
push eax
call sym.leptonlib.dll_boxaGetBox
mov ecx, dword [esp + 0x40]
push 0
push eax
push ecx
call sym.leptonlib.dll_pixaAddBox
lea edx, [esp + 0x4c]
push edx
call sym.leptonlib.dll_pixaDestroy
add esp, 0x40
lea eax, [esi + 0x10]
push eax
call sym.leptonlib.dll_numaDestroy
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 8
cmp dword [esp + 0x2c], 0
jne 0x10063329
fild dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x40]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp]
push ecx
call sym.leptonlib.dll_numaAddNumber
fild dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
add esp, 4
fstp dword [esp]
push edx
call sym.leptonlib.dll_numaAddNumber
push 0
call sym.leptonlib.dll_pixaCreate
push 2
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xac]
push ebx
push eax
call sym.leptonlib.dll_pixaGetPix
mov ecx, dword [esp + 0x28]
push 0
push eax
push ecx
mov dword [esp + 0x3c], eax
call sym.leptonlib.dll_pixaAddPix
mov edx, dword [esp + 0x3c]
push edx
call sym.leptonlib.dll_pixGetWidth
mov esi, eax
mov eax, dword [esp + 0x40]
push eax
call sym.leptonlib.dll_pixGetHeight
fld dword [esp + 0x58]
imul eax, esi
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x98]
add esp, 0x28
push eax
push ecx
call sym.leptonlib.dll_numaHashAdd
mov edx, dword [esp + 0xa4]
push 2
push ebx
push edx
call sym.leptonlib.dll_boxaGetBox
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
call sym.leptonlib.dll_pixaAddBox
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x6c]
push 0
push ecx
push edx
call sym.leptonlib.dll_pixaaAddPixa
fld dword [esp + 0x60]
mov eax, dword [esp + 0x7c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x64]
add esp, 0x28
fstp dword [esp]
push eax
call sym.leptonlib.dll_ptaAddPt
mov ecx, dword [esp + 0x20]
push 0
push ecx
push ebp
call sym.leptonlib.dll_pixaAddPix
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x68]
push 0
push edx
push eax
call sym.leptonlib.dll_pixaAddPix
fild dword [esp + 0x94]
add esp, 0x20
fstp dword [esp]
mov ecx, dword [esp + 0x78]
push ecx
call sym.leptonlib.dll_numaAddNumber
jmp 0x1006333d
lea edx, [esp + 0x14]
push edx
call sym.leptonlib.dll_pixDestroy
lea eax, [esp + 0x20]
push eax
call sym.leptonlib.dll_pixDestroy
mov edi, dword [esp + 0x9c]
inc ebx
add esp, 8
cmp ebx, dword [esp + 0x78]
jl 0x10062fc0
mov ecx, dword [esp + 0x7c]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
lea edx, [esp + 0x84]
push edx
call sym.leptonlib.dll_numaDestroy
add esp, 8
push ebp
call sym.leptonlib.dll_boxaGetCount
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x90]
push eax
call dword [sym.imp.MSVCR90.dll_free]
lea ecx, [esp + 0x6c]
push ecx
call sym.leptonlib.dll_ptaDestroy
lea edx, [esp + 0x44]
push edx
call sym.leptonlib.dll_pixaDestroy
lea eax, [esp + 0x64]
push eax
call sym.leptonlib.dll_pixaDestroy
lea ecx, [esp + 0x98]
push ecx
call sym.leptonlib.dll_selDestroy
add esp, 0x18
pop esi
pop ebx
pop ebp
xor eax, eax
pop edi
add esp, 0x80
ret