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

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, dword [esp + 0x94]
test ebx, ebx
jne 0x100633df
mov eax, 1
pop ebx
add esp, 0x8c
ret
cmp dword [esp + 0x98], 0
je 0x100633d2
push ebp
mov ebp, dword [esp + 0xa0]
test ebp, ebp
jne 0x10063401
lea eax, [ebp + 1]
pop ebp
pop ebx
add esp, 0x8c
ret
mov eax, dword [ebx + 0x14]
push esi
push edi
push ebp
mov dword [esp + 0x74], eax
call sym.leptonlib.dll_boxaGetCount
mov esi, eax
push esi
mov dword [esp + 0x64], esi
call sym.leptonlib.dll_pixaCreate
add esp, 8
xor edi, edi
mov dword [esp + 0x4c], eax
test esi, esi
jle 0x10063470
lea esp, [esp]
push 2
push edi
push ebp
call sym.leptonlib.dll_pixaGetPix
push 0
push 6
push 6
push 6
push 6
push eax
mov dword [esp + 0x40], eax
call sym.leptonlib.dll_pixAddBorderGeneral
mov ecx, dword [esp + 0x70]
push 0
push eax
push ecx
mov dword [esp + 0x5c], eax
call sym.leptonlib.dll_pixaAddPix
lea edx, [esp + 0x4c]
push edx
call sym.leptonlib.dll_pixDestroy
inc edi
add esp, 0x34
cmp edi, esi
jl 0x10063430
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x54]
mov dword [esp + 0x78], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x80], edx
call sym.leptonlib.dll_makePixelSumTab8
mov edi, dword [sym.imp.MSVCR90.dll_calloc]
push 4
push esi
mov dword [esp + 0x3c], eax
call edi
mov ebp, eax
push 4
push esi
mov dword [esp + 0x78], ebp
call edi
add esp, 0x10
mov dword [esp + 0x48], eax
call sym.leptonlib.dll_makePixelCentroidTab8
mov dword [esp + 0x50], eax
test ebp, ebp
je 0x10063bfa
cmp dword [esp + 0x48], 0
je 0x10063bfa
test eax, eax
je 0x10063bfa
push esi
call sym.leptonlib.dll_ptaCreate
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], 0
test esi, esi
jle 0x10063744
mov esi, dword [esp + 0x48]
sub esi, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x58], esi
jmp 0x1006350a
mov edi, dword [sym.imp.MSVCR90.dll_calloc]
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
push 2
push eax
push ecx
call sym.leptonlib.dll_pixaGetPix
add esp, 0xc
push 4
push eax
mov dword [esp + 0x24], eax
call sym.leptonlib.dll_pixGetHeight
add esp, 4
push eax
call edi
fldz
mov edx, dword [esp + 0x18]
fst dword [esp + 0x1c]
mov edi, eax
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x24]
push eax
mov dword [esi + edx], edi
call sym.leptonlib.dll_dpixGetRefcount
mov ecx, dword [esp + 0x28]
mov ebp, eax
push ecx
mov dword [esp + 0x30], ebp
call sym.leptonlib.dll_pixGetHeight
mov edx, dword [esp + 0x2c]
mov esi, eax
dec esi
imul esi, ebp
add esi, esi
push edx
add esi, esi
call sym.leptonlib.dll_pixGetData
add eax, esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
xor ebx, ebx
push eax
mov dword [esp + 0x54], ebx
call sym.leptonlib.dll_pixGetHeight
add esp, 0x18
sub eax, 1
mov dword [esp + 0x44], eax
js 0x100636ca
lea edi, [edi + eax*4]
mov dword [esp + 0x40], edi
mov edi, edi
mov dword [edi], ebx
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x1006368e
lea ebx, [esi + 0x10]
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + edi*4]
mov eax, dword [esp + 0x34]
movzx edx, cl
add edx, edx
add edx, edx
mov eax, dword [edx + eax]
add esi, eax
lea ebp, [ebx + 8]
imul ebp, eax
mov eax, dword [esp + 0x50]
add ebp, dword [edx + eax]
mov eax, ecx
shr eax, 8
movzx edx, al
mov eax, dword [esp + 0x34]
add edx, edx
add edx, edx
mov eax, dword [edx + eax]
mov dword [esp + 0x18], ebp
mov ebp, ebx
imul ebp, eax
fild dword [esp + 0x18]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
add esi, eax
mov eax, dword [esp + 0x50]
mov edx, dword [edx + eax]
add edx, ebp
mov eax, ecx
mov dword [esp + 0x18], edx
shr eax, 0x10
movzx edx, al
fild dword [esp + 0x18]
mov eax, dword [esp + 0x34]
fadd dword [esp + 0x14]
add edx, edx
add edx, edx
mov eax, dword [edx + eax]
lea ebp, [ebx - 8]
fstp dword [esp + 0x14]
imul ebp, eax
shr ecx, 0x18
add esi, eax
mov eax, dword [esp + 0x50]
add ebp, dword [edx + eax]
movzx edx, cl
mov ecx, dword [esp + 0x34]
add edx, edx
add edx, edx
mov ecx, dword [edx + ecx]
add esi, ecx
imul ecx, edi
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x20]
shl ecx, 5
fild dword [esp + 0x18]
add ecx, dword [edx + eax]
inc edi
mov dword [esp + 0x18], ecx
fadd dword [esp + 0x14]
add ebx, 0x20
cmp edi, ebp
fstp dword [esp + 0x14]
fild dword [esp + 0x18]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
jl 0x100635b1
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
add ebx, esi
imul esi, eax
mov dword [esp + 0x18], esi
dec eax
lea ecx, [ebp*4]
fild dword [esp + 0x18]
sub dword [esp + 0x24], ecx
sub edi, 4
mov dword [esp + 0x3c], ebx
fadd dword [esp + 0x38]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edi
fstp dword [esp + 0x38]
test eax, eax
jge 0x100635a0
fild dword [esp + 0x3c]
sub esp, 8
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x18]
fstp dword [esp + 0x28]
mov dword [esi], ebx
fld dword [esp + 0x40]
fld dword [esp + 0x28]
fld st(0)
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 4]
fdivr dword [esp + 0x1c]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp]
push edx
call sym.leptonlib.dll_ptaAddPt
lea eax, [esp + 0x28]
push eax
call sym.leptonlib.dll_pixDestroy
mov eax, dword [esp + 0x40]
inc eax
add esi, 4
add esp, 0x10
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], esi
jl 0x10063500
mov ebx, dword [esp + 0xa0]
mov esi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x68]
mov ecx, dword [esp + 0x54]
mov edx, dword [ebx + 0x58]
push 0
push 0
push ecx
push edx
call sym.leptonlib.dll_ptaJoin
fld dword [ebx + 0x28]
mov eax, dword [ebx + 0x5c]
fstp dword [esp + 0x54]
mov ecx, dword [ebx + 0x44]
fld dword [ebx + 0x2c]
mov edx, dword [ebx + 0x48]
fstp dword [esp + 0x50]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x50]
add esp, 0x10
xor edi, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x98], ecx
test esi, esi
jle 0x10063b90
mov eax, dword [esp + 0x48]
sub ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebp
jmp 0x100637b4
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x4c]
push 2
push edi
push edx
call sym.leptonlib.dll_pixaGetPix
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + ebp]
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x68]
push edi
push ecx
call sym.leptonlib.dll_ptaGetPt
mov edx, dword [esp + 0x40]
push edx
call sym.leptonlib.dll_boxaGetCount
mov ebp, dword [esp + 0x4c]
push 0x18
push 1
mov dword [esp + 0xb8], eax
mov dword [esp + 0x58], 0
call dword [sym.imp.MSVCR90.dll_calloc]
push ebp
mov esi, eax
call sym.leptonlib.dll_pixGetWidth
sub eax, 0xc
push ebp
mov dword [esi + 4], eax
call sym.leptonlib.dll_pixGetHeight
sub eax, 0xc
add esp, 0x30
mov dword [esi + 8], eax
mov dword [esi], ebx
call fcn.100625a0
mov ebp, eax
cmp ebp, 0xffffffff
jle 0x10063a0c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov dword [esp + 0x88], ecx
jmp 0x10063850
mov edx, dword [esp + 0x24]
push 2
push ebp
push edx
call sym.leptonlib.dll_pixaGetPix
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x88]
push eax
push ebp
push ecx
call sym.leptonlib.dll_numaGetIValue
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0xa8]
push eax
push ebp
push ecx
call sym.leptonlib.dll_ptaGetPt
fldz
fcomp dword [esp + 0x68]
add esp, 0x28
fnstsw ax
test ah, 5
jp 0x100638d2
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x60]
push edx
push ebp
push eax
call sym.leptonlib.dll_numaGetIValue
fld dword [esp + 0x50]
fld st(0)
add esp, 0xc
fld1
fsubrp st(1)
fmul dword [esp + 0x40]
fimul dword [esp + 0x7c]
fidiv dword [esp + 0x60]
faddp st(1)
jmp 0x100638d6
fld dword [esp + 0x44]
mov edx, dword [esp + 0x34]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x8c]
fstp dword [esp]
fld dword [esp + 0x68]
mov eax, dword [esp + 0x80]
fsub dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x90]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
push 2
push 2
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x90]
fsub dword [esp + 0xa8]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
call sym.leptonlib.dll_pixCorrelationScoreThresholded
lea ecx, [esp + 0xb0]
push ecx
mov dword [esp + 0x40], eax
call sym.leptonlib.dll_pixDestroy
add esp, 0x30
cmp dword [esp + 0x10], 0
jne 0x10063975
call fcn.100625a0
mov ebp, eax
cmp ebp, 0xffffffff
jg 0x10063850
jmp 0x10063a0c
mov edx, dword [esp + 0x78]
mov dword [esp + 0x10], ebp
fild dword [esp + 0x10]
push ecx
mov dword [esp + 0x34], 1
fstp dword [esp]
push edx
call sym.leptonlib.dll_numaAddNumber
fild dword [esp + 0x78]
mov eax, dword [esp + 0x74]
add esp, 4
fstp dword [esp]
push eax
call sym.leptonlib.dll_numaAddNumber
add esp, 8
cmp dword [ebx + 0x40], 0
je 0x10063a0c
mov ecx, dword [esp + 0x38]
push 2
push ebp
push ecx
call sym.leptonlib.dll_pixaaGetPixa
mov edx, dword [esp + 0xb4]
push 2
push edi
push edx
mov dword [esp + 0x40], eax
call sym.leptonlib.dll_pixaGetPix
push 0
push eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
push eax
call sym.leptonlib.dll_pixaAddPix
mov ecx, dword [esp + 0xc8]
push 2
push edi
push ecx
call sym.leptonlib.dll_boxaGetBox
mov edx, dword [esp + 0x58]
push 0
push eax
push edx
call sym.leptonlib.dll_pixaAddBox
lea eax, [esp + 0x64]
push eax
call sym.leptonlib.dll_pixaDestroy
add esp, 0x40
lea ecx, [esi + 0x10]
push ecx
call sym.leptonlib.dll_numaDestroy
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 8
cmp dword [esp + 0x30], 0
jne 0x10063b6b
fild dword [esp + 0x90]
mov edx, dword [esp + 0x78]
push ecx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
push edx
call sym.leptonlib.dll_numaAddNumber
fild dword [esp + 0x78]
mov eax, dword [esp + 0x74]
add esp, 4
fstp dword [esp]
push eax
call sym.leptonlib.dll_numaAddNumber
push 0
call sym.leptonlib.dll_pixaCreate
mov ecx, dword [esp + 0xb4]
push 2
push edi
push ecx
mov dword [esp + 0x40], eax
call sym.leptonlib.dll_pixaGetPix
mov edx, dword [esp + 0x40]
push 0
push eax
push edx
mov dword [esp + 0x40], eax
call sym.leptonlib.dll_pixaAddPix
mov eax, dword [esp + 0x40]
push eax
call sym.leptonlib.dll_pixGetWidth
mov ecx, dword [esp + 0x44]
push ecx
mov esi, eax
call sym.leptonlib.dll_pixGetHeight
fld dword [esp + 0x3c]
imul eax, esi
fstp dword [esp + 0x28]
mov edx, dword [esp + 0xc4]
add esp, 0x28
push eax
push edx
call sym.leptonlib.dll_numaHashAdd
mov eax, dword [esp + 0xb0]
push 2
push edi
push eax
call sym.leptonlib.dll_boxaGetBox
mov ecx, dword [esp + 0x40]
push 0
push eax
push ecx
call sym.leptonlib.dll_pixaAddBox
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
push 0
push edx
push eax
call sym.leptonlib.dll_pixaaAddPixa
fld dword [esp + 0x94]
mov ecx, dword [esp + 0x6c]
fstp dword [esp + 0x2c]
fld dword [esp + 0xa4]
add esp, 0x28
fstp dword [esp]
push ecx
call sym.leptonlib.dll_ptaAddPt
fild dword [esp + 0x24]
mov edx, dword [esp + 0x8c]
add esp, 8
fstp dword [esp]
push edx
call sym.leptonlib.dll_numaAddNumber
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
push 0
push eax
push ecx
call sym.leptonlib.dll_pixaAddPix
mov edx, dword [esp + 0x40]
push edx
call sym.leptonlib.dll_pixGetWidth
lea esi, [eax - 0xc]
mov eax, dword [esp + 0x44]
push eax
call sym.leptonlib.dll_pixGetHeight
mov ecx, dword [esp + 0x74]
sub eax, 0xc
imul eax, esi
mov dword [esp + 0x7c], eax
add esp, 0x18
fild dword [esp + 0x64]
fstp dword [esp]
push ecx
call sym.leptonlib.dll_numaAddNumber
add esp, 8
jmp 0x10063b78
lea edx, [esp + 0x2c]
push edx
call sym.leptonlib.dll_pixDestroy
add esp, 4
add dword [esp + 0x14], 4
inc edi
cmp edi, dword [esp + 0x5c]
jl 0x100637b0
mov esi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x68]
mov eax, dword [esp + 0x24]
push eax
call sym.leptonlib.dll_boxaGetCount
mov dword [ebx + 0x3c], eax
mov ebx, dword [sym.imp.MSVCR90.dll_free]
push ebp
call ebx
mov ecx, dword [esp + 0x58]
push ecx
call ebx
add esp, 0xc
xor edi, edi
test esi, esi
jle 0x10063bc8
mov edx, dword [esp + 0x48]
mov eax, dword [edx + edi*4]
push eax
call ebx
inc edi
add esp, 4
cmp edi, esi
jl 0x10063bb6
mov ecx, dword [esp + 0x48]
push ecx
call ebx
mov edx, dword [esp + 0x38]
push edx
call ebx
lea eax, [esp + 0x5c]
push eax
call sym.leptonlib.dll_ptaDestroy
lea ecx, [esp + 0x58]
push ecx
call sym.leptonlib.dll_pixaDestroy
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8c
ret