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

Disassembly:
sub esp, 0x6c
push ebp
mov ebp, dword [esp + 0x74]
test ebp, ebp
jne 0x10033244
lea eax, [ebp + 1]
pop ebp
add esp, 0x6c
ret
push esi
mov esi, dword [esp + 0x7c]
push edi
mov edi, dword [ebp]
mov dword [esp + 0x74], edi
test esi, esi
je 0x1003327d
push 1
push str.pixs
push 0
push 0
push edi
call sym.leptonlib.dll_pixDisplayWithTitle
push 0
push 3
push edi
push str.pixs.png
push str._tmp
call sym.leptonlib.dll_pixWriteTempfile
add esp, 0x28
push 0
push edi
call sym.leptonlib.dll_pixGetTextlineCenters
add esp, 8
mov dword [esp + 0x64], eax
test esi, esi
je 0x100332d4
push edi
call sym.leptonlib.dll_pixConvertTo32
mov ecx, dword [esp + 0x68]
push ecx
push eax
mov dword [esp + 0x1c], eax
call sym.leptonlib.dll_pixDisplayPtaa
push 0
push 3
push eax
push 0x10143da4
push str._tmp
mov dword [esp + 0x40], eax
call sym.leptonlib.dll_pixWriteTempfile
lea edx, [esp + 0x30]
push edx
call sym.leptonlib.dll_pixDestroy
lea eax, [esp + 0x44]
push eax
call sym.leptonlib.dll_pixDestroy
add esp, 0x28
fld dword [0x10143da0]
push 0
push ecx
mov ecx, dword [esp + 0x6c]
fstp dword [esp]
push ecx
push edi
call sym.leptonlib.dll_ptaaRemoveShortLines
add esp, 0x10
mov dword [esp + 0x28], eax
test esi, esi
je 0x1003333a
push edi
call sym.leptonlib.dll_pixConvertTo32
mov edx, dword [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x1c], eax
call sym.leptonlib.dll_pixDisplayPtaa
push 0
push 3
push eax
push str.lines2.png
push str._tmp
mov dword [esp + 0x40], eax
call sym.leptonlib.dll_pixWriteTempfile
lea eax, [esp + 0x30]
push eax
call sym.leptonlib.dll_pixDestroy
lea ecx, [esp + 0x44]
push ecx
call sym.leptonlib.dll_pixDestroy
add esp, 0x28
mov edx, dword [esp + 0x28]
push edx
call sym.leptonlib.dll_boxaGetCount
mov edi, eax
add esp, 4
cmp edi, dword [ebp + 0x20]
jge 0x1003335a
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x6c
ret
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x2c]
push ebx
mov ebx, dword [ebp + 0x28]
push edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x44], ecx
call sym.leptonlib.dll_ptaaCreate
push edi
mov dword [esp + 0x4c], eax
call sym.leptonlib.dll_numaCreate
xor ebp, ebp
add esp, 8
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], ebp
test edi, edi
jle 0x10033475
mov edx, dword [esp + 0x2c]
push 2
push ebp
push edx
call sym.leptonlib.dll_ptaaGetPta
push 0
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x34]
push ecx
push eax
mov dword [esp + 0x30], eax
call sym.leptonlib.dll_ptaGetQuadraticLSF
fld dword [esp + 0x3c]
mov edx, dword [esp + 0x54]
fstp dword [esp + 0x1c]
add esp, 0x1c
push edx
call sym.leptonlib.dll_numaAddNumber
push ebx
call sym.leptonlib.dll_ptaCreate
add esp, 0xc
mov esi, eax
test ebx, ebx
jle 0x10033447
mov dword [esp + 0x54], 0
mov ebp, ebx
fild dword [esp + 0x54]
lea eax, [esp + 0x18]
push eax
sub esp, 0x10
fstp dword [esp + 0x50]
fld dword [esp + 0x50]
fstp dword [esp + 0xc]
fld dword [esp + 0x70]
fstp dword [esp + 8]
fld dword [esp + 0x74]
fstp dword [esp + 4]
fld dword [esp + 0x30]
fstp dword [esp]
call sym.leptonlib.dll_applyQuadraticFit
fld dword [esp + 0x2c]
add esp, 0xc
fstp dword [esp + 4]
fld dword [esp + 0x44]
fstp dword [esp]
push esi
call sym.leptonlib.dll_ptaAddPt
mov ecx, dword [esp + 0x70]
add dword [esp + 0x60], ecx
add esp, 0xc
sub ebp, 1
jne 0x100333e7
mov ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x44]
push 0
push esi
push edx
call sym.leptonlib.dll_ptaaAddPta
lea eax, [esp + 0x1c]
push eax
call sym.leptonlib.dll_ptaDestroy
inc ebp
add esp, 0x10
cmp ebp, edi
mov dword [esp + 0x6c], ebp
jl 0x10033391
mov esi, dword [esp + 0x84]
test esi, esi
je 0x1003356e
push edi
call sym.leptonlib.dll_ptaaCreate
add esp, 4
xor esi, esi
mov dword [esp + 0x20], eax
test edi, edi
jle 0x1003351c
mov ecx, dword [esp + 0x2c]
push 2
push esi
push ecx
call sym.leptonlib.dll_ptaaGetPta
push 0
lea edx, [esp + 0x80]
push edx
push eax
mov dword [esp + 0x28], eax
call sym.leptonlib.dll_ptaGetArrays
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x8c]
push eax
push 0
push 0
push 0
push ecx
call sym.leptonlib.dll_ptaGetQuadraticLSF
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
push edx
push eax
call sym.leptonlib.dll_ptaCreateFromNuma
mov ecx, dword [esp + 0x54]
push 0
push eax
push ecx
call sym.leptonlib.dll_ptaaAddPta
lea edx, [esp + 0x50]
add esp, 0x40
push edx
call sym.leptonlib.dll_ptaDestroy
lea eax, [esp + 0x74]
push eax
call sym.leptonlib.dll_numaDestroy
lea ecx, [esp + 0x7c]
push ecx
call sym.leptonlib.dll_numaDestroy
inc esi
add esp, 0xc
cmp esi, edi
jl 0x10033494
mov edx, dword [esp + 0x78]
push edx
call sym.leptonlib.dll_pixConvertTo32
mov ecx, dword [esp + 0x24]
push ecx
push eax
mov dword [esp + 0x20], eax
call sym.leptonlib.dll_pixDisplayPtaa
push 0
push 3
push eax
push str.lines3.png
push str._tmp
mov dword [esp + 0x44], eax
call sym.leptonlib.dll_pixWriteTempfile
lea edx, [esp + 0x34]
push edx
call sym.leptonlib.dll_pixDestroy
lea eax, [esp + 0x48]
push eax
call sym.leptonlib.dll_pixDestroy
lea ecx, [esp + 0x48]
push ecx
call sym.leptonlib.dll_ptaaDestroy
add esp, 0x2c
push edi
call sym.leptonlib.dll_numaCreate
add esp, 4
xor esi, esi
mov dword [esp + 0x30], eax
test edi, edi
jle 0x10033604
mov edx, dword [esp + 0x44]
push 2
push esi
push edx
call sym.leptonlib.dll_ptaaGetPta
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
push eax
push esi
push ecx
call sym.leptonlib.dll_numaGetFValue
fldz
fcomp dword [esp + 0x34]
add esp, 0x18
fnstsw ax
test ah, 1
jne 0x100335c8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0
push eax
jmp 0x100335d8
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0
push edx
call sym.leptonlib.dll_ptaGetRange
fld dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
add esp, 0x14
push ecx
fstp dword [esp]
push eax
call sym.leptonlib.dll_numaAddNumber
lea ecx, [esp + 0x18]
push ecx
call sym.leptonlib.dll_ptaDestroy
inc esi
add esp, 0xc
cmp esi, edi
jl 0x10033585
mov edx, dword [esp + 0x30]
push 1
push edx
call sym.leptonlib.dll_numaGetSortIndex
push eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
push eax
call sym.leptonlib.dll_numaSortByIndex
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x44]
push ecx
mov esi, eax
push edx
mov dword [esp + 0x6c], esi
call sym.leptonlib.dll_numaSortByIndex
mov ecx, dword [esp + 0x98]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x70]
mov dword [ecx + 0x14], esi
mov ecx, dword [esp + 0x5c]
push eax
push ecx
call sym.leptonlib.dll_ptaaSortByIndex
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x44], eax
call sym.leptonlib.dll_numaDestroy
lea eax, [esp + 0x58]
push eax
call sym.leptonlib.dll_numaDestroy
lea ecx, [esp + 0x80]
push ecx
call sym.leptonlib.dll_numaDestroy
add esp, 0x2c
cmp dword [esp + 0x84], 0
je 0x100336a6
push 0
push str.naflats.na
push str._tmp
call sym.leptonlib.dll_genTempFilename
mov ebp, eax
push esi
push ebp
call sym.leptonlib.dll_numaWrite
push ebp
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x18
push edi
call sym.leptonlib.dll_ptaaCreate
add esp, 4
xor ebp, ebp
mov dword [esp + 0x48], eax
test edi, edi
jle 0x10033766
lea ecx, [ecx]
mov edx, dword [esp + 0x20]
push 2
push ebp
push edx
call sym.leptonlib.dll_ptaaGetPta
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x44]
push eax
push ebp
push esi
call sym.leptonlib.dll_numaGetFValue
push ebx
call sym.leptonlib.dll_ptaCreate
add esp, 0x1c
xor esi, esi
mov dword [esp + 0x6c], eax
test ebx, ebx
jle 0x1003373b
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x40]
push edx
push esi
push eax
call sym.leptonlib.dll_ptaGetPt
fld dword [esp + 0x48]
fsub dword [esp + 0x28]
mov ecx, dword [esp + 0x7c]
add esp, 8
fstp dword [esp + 0x80]
fld dword [esp + 0x80]
fstp dword [esp + 4]
fld dword [esp + 0x44]
fstp dword [esp]
push ecx
call sym.leptonlib.dll_ptaAddPt
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x100336f0
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x48]
push 0
push edx
push eax
call sym.leptonlib.dll_ptaaAddPta
lea ecx, [esp + 0x1c]
push ecx
call sym.leptonlib.dll_ptaDestroy
mov esi, dword [esp + 0x64]
inc ebp
add esp, 0x10
cmp ebp, edi
jl 0x100336c0
cmp dword [esp + 0x84], 0
je 0x1003379a
push 0
push str.ptaa5.ptaa
push str._tmp
call sym.leptonlib.dll_genTempFilename
mov edx, dword [esp + 0x54]
push 0
mov ebp, eax
push edx
push ebp
call sym.leptonlib.dll_ptaaWrite
push ebp
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x1c
push ebx
call sym.leptonlib.dll_ptaaCreate
push 0
push esi
mov dword [esp + 0x58], eax
call sym.leptonlib.dll_numaGetFArray
add esp, 0xc
xor ebp, ebp
mov dword [esp + 0x78], eax
test ebx, ebx
jle 0x1003382e
lea esp, [esp]
push edi
call sym.leptonlib.dll_ptaCreate
add esp, 4
xor esi, esi
mov dword [esp + 0x10], eax
test edi, edi
jle 0x10033815
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x48]
fld dword [eax + esi*4]
lea ecx, [esp + 0x28]
fstp dword [esp + 0x18]
push ecx
push 0
push ebp
push esi
push edx
call sym.leptonlib.dll_ptaaGetPt
fld dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
fstp dword [esp + 0x10]
fld dword [esp + 0x2c]
add esp, 0xc
fstp dword [esp]
push eax
call sym.leptonlib.dll_ptaAddPt
inc esi
add esp, 0xc
cmp esi, edi
jl 0x100337d3
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x4c]
push 0
push ecx
push edx
call sym.leptonlib.dll_ptaaAddPta
inc ebp
add esp, 0xc
cmp ebp, ebx
jl 0x100337c0
cmp dword [esp + 0x84], 0
je 0x10033862
push 0
push str.ptaa6.ptaa
push str._tmp
call sym.leptonlib.dll_genTempFilename
mov esi, eax
mov eax, dword [esp + 0x58]
push 0
push eax
push esi
call sym.leptonlib.dll_ptaaWrite
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x1c
push ebx
call sym.leptonlib.dll_ptaaCreate
xor edi, edi
add esp, 4
mov dword [esp + 0x50], eax
mov dword [esp + 0x6c], edi
test ebx, ebx
jle 0x1003394e
lea ecx, [ecx]
mov ecx, dword [esp + 0x4c]
push 2
push edi
push ecx
call sym.leptonlib.dll_ptaaGetPta
push 0
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x30], eax
call sym.leptonlib.dll_ptaGetQuadraticLSF
mov ebp, dword [esp + 0x60]
push ebp
call sym.leptonlib.dll_ptaCreate
add esp, 0x24
mov esi, eax
test ebp, ebp
jle 0x10033925
mov dword [esp + 0x54], 0
mov edi, ebp
fild dword [esp + 0x54]
lea eax, [esp + 0x28]
push eax
sub esp, 0x10
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp + 0xc]
fld dword [esp + 0x70]
fstp dword [esp + 8]
fld dword [esp + 0x74]
fstp dword [esp + 4]
fld dword [esp + 0x30]
fstp dword [esp]
call sym.leptonlib.dll_applyQuadraticFit
fld dword [esp + 0x3c]
add esp, 0xc
fstp dword [esp + 4]
fld dword [esp + 0x20]
fstp dword [esp]
push esi
call sym.leptonlib.dll_ptaAddPt
mov ecx, dword [esp + 0x70]
add dword [esp + 0x60], ecx
add esp, 0xc
sub edi, 1
jne 0x100338c5
mov edi, dword [esp + 0x6c]
mov edx, dword [esp + 0x50]
push 0
push esi
push edx
call sym.leptonlib.dll_ptaaAddPta
lea eax, [esp + 0x1c]
push eax
call sym.leptonlib.dll_ptaDestroy
inc edi
add esp, 0x10
cmp edi, ebx
mov dword [esp + 0x6c], edi
jl 0x10033880
jmp 0x10033952
mov ebp, dword [esp + 0x40]
cmp dword [esp + 0x84], 0
je 0x10033986
push 0
push 0x10143d58
push str._tmp
call sym.leptonlib.dll_genTempFilename
mov ecx, dword [esp + 0x5c]
push 0
mov esi, eax
push ecx
push esi
call sym.leptonlib.dll_ptaaWrite
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x1c
push ebp
push ebx
call sym.leptonlib.dll_fpixCreate
xor edi, edi
add esp, 8
cmp dword [esp + 0x40], edi
mov ebp, eax
jle 0x100339da
lea ebx, [ebx]
xor esi, esi
test ebx, ebx
jle 0x100339d3
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x28]
push edx
push 0
push edi
push esi
push eax
call sym.leptonlib.dll_ptaaGetPt
fld dword [esp + 0x3c]
add esp, 0x10
fstp dword [esp]
push edi
push esi
push ebp
call sym.leptonlib.dll_fpixSetPixel
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x100339a6
inc edi
cmp edi, dword [esp + 0x40]
jl 0x100339a0
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x80]
push ecx
push ebp
mov dword [edi + 8], ebp
call sym.leptonlib.dll_fpixScaleByInteger
mov ebx, dword [esp + 0x8c]
add esp, 8
mov esi, eax
mov dword [edi + 0xc], esi
test ebx, ebx
je 0x10033a5e
fld dword [0x10143d54]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [0x10143d50]
fstp dword [esp + 4]
fld dword [0x10143d4c]
fstp dword [esp]
push esi
call sym.leptonlib.dll_fpixRenderContours
push 0
push 3
push eax
push str.vert_contours.png
push str._tmp
mov dword [esp + 0x38], eax
call sym.leptonlib.dll_pixWriteTempfile
mov edx, dword [esp + 0x38]
push 0
push 0x3e8
push edx
call sym.leptonlib.dll_pixDisplay
lea eax, [esp + 0x44]
push eax
call sym.leptonlib.dll_pixDestroy
add esp, 0x34
cmp dword [edi + 0x24], 0
je 0x10033a7c
fldz
lea ecx, [edi + 0x30]
push ecx
push ecx
fstp dword [esp]
push esi
call sym.leptonlib.dll_fpixBuildHorizontalDisparity
add esp, 0xc
mov dword [edi + 0x10], eax
jmp 0x10033a83
mov eax, dword [esp + 0x80]
test ebx, ebx
pop ebx
je 0x10033ae4
fld dword [0x10143d54]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [0x10143d50]
fstp dword [esp + 4]
fld dword [0x10143d4c]
fstp dword [esp]
push eax
call sym.leptonlib.dll_fpixRenderContours
push 0
push 3
push eax
push str.horiz_contours.png
push str._tmp
mov dword [esp + 0x34], eax
call sym.leptonlib.dll_pixWriteTempfile
mov edx, dword [esp + 0x34]
push 0
push 0x3e8
push edx
call sym.leptonlib.dll_pixDisplay
lea eax, [esp + 0x40]
push eax
call sym.leptonlib.dll_pixDestroy
add esp, 0x34
lea ecx, [esp + 0x64]
push ecx
mov dword [edi + 0x34], 1
call sym.leptonlib.dll_ptaaDestroy
lea edx, [esp + 0x2c]
push edx
call sym.leptonlib.dll_ptaaDestroy
lea eax, [esp + 0x48]
push eax
call sym.leptonlib.dll_ptaaDestroy
lea ecx, [esp + 0x28]
push ecx
call sym.leptonlib.dll_ptaaDestroy
lea edx, [esp + 0x54]
push edx
call sym.leptonlib.dll_ptaaDestroy
lea eax, [esp + 0x5c]
push eax
call sym.leptonlib.dll_ptaaDestroy
lea ecx, [esp + 0x64]
push ecx
call sym.leptonlib.dll_ptaaDestroy
add esp, 0x1c
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x6c
ret