Function at 0x10147700
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a5c7b
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push ebx
push esi
push edi
mov eax, dword [0x10290198]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x40], eax
push eax
lea ecx, [ebp - 0xd8]
call sym.tesseract41.dll_public:_void___thiscall_tesseract::GridSearch_class_BLOBNBOX__class_BLOBNBOX_CLIST__class_BLOBNBOX_C_IT_::constructor_class_tesseract::BBGrid_class_BLOBNBOX__class_BLOBNBOX_CLIST__class_BLOBNBOX_C_IT___
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
lea eax, [esi + 8]
mov edx, dword [eax]
mov ebx, edx
mov dword [ebp - 0x64], eax
mov eax, ecx
shrd ebx, eax, 0x10
mov dword [ebp - 0x38], edx
movzx eax, bx
mov dword [ebp - 0x18], ebx
mov ebx, ecx
shr ebx, 0x10
mov dword [ebp - 0x48], eax
movzx eax, bx
mov dword [ebp - 0x4c], eax
movzx eax, dx
movsx edx, word [esi + 0x30]
mov dword [ebp - 0x5c], edx
movsx edx, word [esi + 0x32]
movsx edi, ax
movsx esi, cx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x30], esi
movsx ebx, bx
cmp ax, cx
jge 0x101477a8
mov eax, dword [ebp - 0x24]
cmp ax, word [ebp - 0x18]
jle 0x101477a8
xor cl, cl
jmp 0x101477aa
mov cl, 1
mov eax, dword [ebp - 0x4c]
xor edx, edx
sub eax, dword [ebp - 0x48]
test cl, cl
movzx eax, ax
push ebx
cmovne eax, edx
cwde
push edi
push 3
mov dword [ebp - 0x28], eax
call sym.tesseract41.dll_public:_static_bool___cdecl_tesseract::AlignedBlob::WithinTestRegion_int__int__int_
add esp, 0xc
mov byte [ebp - 0xd], al
test al, al
je 0x101477ee
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x5c]
movsx eax, cx
push eax
push esi
push ebx
push edi
push str.Column_edges_for_blob_at___d__d_____d__d__are___d___d__n
call sym.tesseract41.dll_void___cdecl_tprintf_char_const__
add esp, 0x1c
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov ecx, dword [ecx + 4]
mov dword [ebp - 0xc0], 3
lea eax, [ecx + edx*4]
dec edx
add eax, edx
cdq
idiv ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xcc], eax
movsx eax, cx
lea ecx, [ebp - 0xd8]
add eax, ebx
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [esi + edi]
cdq
sub eax, edx
sar eax, 1
push eax
call sym.tesseract41.dll_private:_void___thiscall_tesseract::GridSearch_class_BLOBNBOX__class_BLOBNBOX_CLIST__class_BLOBNBOX_C_IT_::CommonStart_int__int_
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
vxorps xmm0, xmm0, xmm0
vcvtsi2sd xmm0, xmm0, dword [ebp - 0x28]
vmulsd xmm0, xmm0, qword [ebp + 0x10]
mov eax, dword [ebx + 4]
vcvttsd2si edx, xmm0
cmp ecx, edx
vxorps xmm0, xmm0, xmm0
cmovg edx, ecx
lea eax, [eax + eax*4]
cmp ecx, eax
vcvtsi2sd xmm0, xmm0, dword [ebx + 0x24]
cmovg eax, ecx
vmulsd xmm0, xmm0, qword [0x101e9c40]
mov dword [ebp - 0x4c], eax
mov eax, edi
sub eax, edx
mov edi, connect
mov dword [ebp - 0x60], eax
mov ecx, edi
lea eax, [edx + esi]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], eax
xor esi, esi
mov al, byte [edx + 0x72]
test al, al
mov al, byte [edx + 0x73]
cmove ecx, esi
sete byte [ebp + 0xf]
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
test al, al
sete al
cmove edi, ecx
mov byte [ebp + 0x17], al
lea ecx, [ebp - 0xd8]
vcvttsd2si eax, xmm0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], eax
call sym.tesseract41.dll_public:_class_BLOBNBOX____thiscall_tesseract::GridSearch_class_BLOBNBOX__class_BLOBNBOX_CLIST__class_BLOBNBOX_C_IT_::NextRadSearch_void_
mov dl, byte [ebp + 0xf]
mov esi, eax
mov dh, byte [ebp + 0x17]
mov al, dl
mov ecx, dword [ebp - 0x1c]
mov ebx, ecx
mov byte [ebp - 0xe], dh
test esi, esi
je 0x10147c2f
mov eax, edi
mov byte [ebp - 0xf], dl
mov byte [ebp - 0xe], dh
mov byte [ebp + 0xf], dl
mov dword [ebp - 0x1c], ecx
mov byte [ebp + 0x17], dh
mov dword [ebp - 0x20], eax
nop dword [eax]
cmp esi, dword [ebp + 8]
je 0x10147c11
cmp byte [ebp - 0xd], 0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x54], eax
cwde
movsx edx, cx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], edx
je 0x10147950
mov eax, ecx
shr eax, 0x10
cwde
push eax
mov eax, dword [ebp - 0x44]
shrd eax, ecx, 0x10
push edx
cwde
push eax
mov eax, dword [ebp - 0x14]
push eax
push str.Neighbour_at___d__d_____d__d__n
call sym.tesseract41.dll_void___cdecl_tprintf_char_const__
mov edx, dword [ebp - 0x2c]
add esp, 0x14
mov eax, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x58]
jg 0x10147c11
cmp eax, dword [ebp - 0x5c]
jl 0x10147c11
movsx eax, word [esi + 0x30]
cmp dword [ebp - 0x3c], eax
jl 0x10147c11
movsx eax, word [esi + 0x32]
cmp dword [ebp - 0x30], eax
jg 0x10147c11
mov eax, dword [ebp - 0x14]
movsx ecx, word [ebp - 0x52]
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x44], eax
mov ax, word [ebp - 0x4e]
cwde
add eax, ecx
mov ecx, dword [ebp - 0x2c]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebp - 0x3c]
sar esi, 1
cmp dword [ebp - 0x44], eax
jg 0x101479ef
cmp ecx, dword [ebp - 0x60]
jl 0x101479ef
cmp byte [ebp - 0xd], 0
je 0x101479be
push str.Not_a_left_tab_n
call sym.tesseract41.dll_void___cdecl_tprintf_char_const__
add esp, 4
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
movsx eax, cx
mov ecx, dword [ebp - 0x18]
cmp esi, eax
mov eax, connect
mov byte [ebp + 0xf], 0
cmovl ebx, eax
movsx eax, cx
cmp esi, eax
jle 0x10147a93
mov dword [ebp - 0x1c], connect
jmp 0x10147a93
mov edx, dword [ebp - 0x14]
sub eax, edx
cmp eax, dword [ebp - 0x28]
jg 0x10147a43
neg eax
cmp eax, dword [ebp - 0x28]
jg 0x10147a43
cmp byte [ebp - 0xd], 0
je 0x10147a16
push str.Maybe_a_left_tab_n
call sym.tesseract41.dll_void___cdecl_tprintf_char_const__
mov edx, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 0x24]
movsx eax, cx
cmp esi, eax
jle 0x10147a2e
mov eax, dword [ebp - 0x1c]
cmp eax, 0x80000001
jle 0x10147a2e
inc eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
movsx eax, cx
cmp esi, eax
jge 0x10147a93
cmp ebx, 0x80000001
jle 0x10147a93
inc ebx
jmp 0x10147a93
mov eax, dword [ebp - 0x3c]
cmp edx, eax
jge 0x10147acf
cmp ecx, eax
jl 0x10147a93
cmp byte [ebp - 0xd], 0
je 0x10147a68
push str.Maybe_Not_a_left_tab_n
call sym.tesseract41.dll_void___cdecl_tprintf_char_const__
mov edx, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 0x24]
movsx eax, cx
cmp esi, eax
jle 0x10147a80
mov eax, dword [ebp - 0x1c]
cmp eax, 0x80000001
jle 0x10147a80
dec eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
movsx eax, cx
cmp esi, eax
jge 0x10147a93
cmp ebx, 0x80000001
jle 0x10147a93
dec ebx
cmp edx, dword [ebp - 0x3c]
jge 0x10147acf
mov ax, word [ebp - 0x36]
cmp ax, word [ebp - 0x4e]
jg 0x10147acf
mov ax, word [ebp - 0x32]
cmp ax, word [ebp - 0x52]
jl 0x10147acf
mov ecx, dword [ebp - 0x2c]
mov al, byte [ebp - 0xd]
cmp ecx, dword [ebp - 0x60]
jl 0x10147ad2
mov byte [ebp - 0xf], 0
test al, al
je 0x10147ad2
push str.Not_a_ragged_left_n
call sym.tesseract41.dll_void___cdecl_tprintf_char_const__
mov edx, dword [ebp - 0x14]
add esp, 4
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x2c]
jl 0x10147b21
cmp edx, dword [ebp - 0x48]
jg 0x10147b21
test al, al
je 0x10147af3
push str.Not_a_right_tab_n
call sym.tesseract41.dll_void___cdecl_tprintf_char_const__
add esp, 4
mov ecx, dword [ebp - 0x24]
movsx eax, cx
mov ecx, dword [ebp - 0x18]
cmp esi, eax
mov eax, connect
mov byte [ebp + 0x17], 0
cmovl edi, eax
movsx eax, cx
cmp esi, eax
jle 0x10147bbe
mov dword [ebp - 0x20], connect
jmp 0x10147bbe
mov eax, dword [ebp - 0x30]
sub eax, ecx
cmp eax, dword [ebp - 0x28]
jg 0x10147b72
neg eax
cmp eax, dword [ebp - 0x28]
jg 0x10147b72
cmp byte [ebp - 0xd], 0
je 0x10147b45
push str.Maybe_a_right_tab_n
call sym.tesseract41.dll_void___cdecl_tprintf_char_const__
add esp, 4
mov ecx, dword [ebp - 0x24]
movsx eax, cx
cmp esi, eax
jle 0x10147b5d
mov eax, dword [ebp - 0x20]
cmp eax, 0x80000001
jle 0x10147b5d
inc eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
movsx eax, cx
cmp esi, eax
jge 0x10147bbe
cmp edi, 0x80000001
jle 0x10147bbe
inc edi
jmp 0x10147bbe
cmp ecx, dword [ebp - 0x30]
jle 0x10147bf9
cmp edx, dword [ebp - 0x30]
jg 0x10147bbe
cmp byte [ebp - 0xd], 0
je 0x10147b93
push str.Maybe_Not_a_right_tab_n
call sym.tesseract41.dll_void___cdecl_tprintf_char_const__
add esp, 4
mov ecx, dword [ebp - 0x24]
movsx eax, cx
cmp esi, eax
jle 0x10147bab
mov eax, dword [ebp - 0x20]
cmp eax, 0x80000001
jle 0x10147bab
dec eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
movsx eax, cx
cmp esi, eax
jge 0x10147bbe
cmp edi, 0x80000001
jle 0x10147bbe
dec edi
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x30]
jle 0x10147bf9
mov ax, word [ebp - 0x36]
cmp ax, word [ebp - 0x4e]
jg 0x10147bf9
mov ax, word [ebp - 0x32]
cmp ax, word [ebp - 0x52]
jl 0x10147bf9
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x48]
jg 0x10147bf9
cmp byte [ebp - 0xd], 0
mov byte [ebp - 0xe], 0
je 0x10147bf9
push str.Not_a_ragged_right_n
call sym.tesseract41.dll_void___cdecl_tprintf_char_const__
add esp, 4
cmp ebx, 0x80000001
jne 0x10147c11
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
jne 0x10147c11
cmp edi, ebx
jne 0x10147c11
cmp dword [ebp - 0x20], ebx
je 0x10147c29
lea ecx, [ebp - 0xd8]
call sym.tesseract41.dll_public:_class_BLOBNBOX____thiscall_tesseract::GridSearch_class_BLOBNBOX__class_BLOBNBOX_CLIST__class_BLOBNBOX_C_IT_::NextRadSearch_void_
mov esi, eax
test esi, esi
jne 0x10147900
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ebp + 0xf]
mov al, byte [ebp - 0xf]
test dl, dl
jne 0x10147c88
cmp ecx, 1
jg 0x10147c88
cmp ebx, 1
jg 0x10147c88
mov esi, dword [ebp - 0x64]
test al, al
je 0x10147c7c
mov eax, dword [esi]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
mov ax, word [ebp - 0x38]
mov word [ebp - 0x34], ax
sub ax, word [ebp - 0x4c]
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x38]
push esi
push eax
call sym.tesseract41.dll_private:_bool___thiscall_tesseract::TabFind::NothingYOverlapsInBox_class_TBOX_const___class_TBOX_const__
test al, al
je 0x10147c7c
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x20], 2
jmp 0x10147c95
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x20], 0
jmp 0x10147c95
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x20], 3
lea esi, [ebx + 8]
cmp byte [ebp + 0x17], 0
jne 0x10147ced
cmp dword [ebp - 0x20], 1
jg 0x10147ced
cmp edi, 1
jg 0x10147ced
cmp byte [ebp - 0xe], 0
je 0x10147ce2
mov eax, dword [esi]
mov ecx, dword [ebp - 0x40]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 4]
mov dword [ebp + 0x14], eax
mov word [ebp + 0x10], ax
add ax, word [ebp - 0x4c]
mov word [ebp + 0x14], ax
lea eax, [ebp + 0x10]
push esi
push eax
call sym.tesseract41.dll_private:_bool___thiscall_tesseract::TabFind::NothingYOverlapsInBox_class_TBOX_const___class_TBOX_const__
test al, al
je 0x10147ce2
mov dword [ebx + 0x24], 2
mov ecx, 2
jmp 0x10147cf9
mov dword [ebx + 0x24], 0
xor ecx, ecx
jmp 0x10147cf9
mov dword [ebx + 0x24], 3
mov ecx, 3
cmp byte [ebp - 0xd], 0
je 0x10147d41
mov eax, str.Ragged
mov esi, str.None
cmp ecx, 3
jne 0x10147d15
mov edx, str.Aligned
jmp 0x10147d1d
cmp ecx, 2
mov edx, eax
cmovne edx, esi
mov ecx, dword [ebx + 0x20]
cmp ecx, 3
jne 0x10147d2c
mov eax, str.Aligned
jmp 0x10147d32
cmp ecx, 2
cmovne eax, esi
push edx
push eax
push str.Left_result___s__Right_result_s_n
call sym.tesseract41.dll_void___cdecl_tprintf_char_const__
add esp, 0xc
cmp dword [ebx + 0x20], 0
jne 0x10147d51
cmp dword [ebx + 0x24], 0
jne 0x10147d51
xor bl, bl
jmp 0x10147d53
mov bl, 1
lea ecx, [ebp - 0x84]
call sym.tesseract41.dll_public:_void___thiscall_std::_Hash_class_std::_Uset_traits_class_BLOBNBOX___class_std::_Uhash_compare_class_BLOBNBOX___struct_tesseract::PtrHash_class_BLOBNBOX___struct_std::equal_to_class_BLOBNBOX_____class_std::allocator_class_BLOBNBOX____0__::destructor_void_
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10