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

Disassembly:
sub esp, 0x74
push edi
mov edi, dword [esp + 0x7c]
test edi, edi
jne 0x100c36d6
mov eax, 1
pop edi
add esp, 0x74
ret
push edi
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 1
jne 0x100c36cc
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x100c36cc
mov eax, dword [esp + 0x84]
test eax, eax
je 0x100c36cc
push ebx
mov ebx, dword [esp + 0x90]
cmp ebx, 1
je 0x100c3721
cmp ebx, 2
je 0x100c3721
cmp ebx, 4
je 0x100c3721
cmp ebx, 8
je 0x100c3721
pop ebx
mov eax, 1
pop edi
add esp, 0x74
ret
push esi
mov esi, dword [esp + 0x98]
cmp esi, 1
je 0x100c373d
cmp esi, 2
je 0x100c373d
cmp esi, 4
je 0x100c373d
cmp esi, 8
jne 0x100c3741
cmp esi, ebx
jle 0x100c374d
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x74
ret
push ebp
mov ebp, dword [esp + 0xb0]
cmp ebp, 1
je 0x100c375f
cmp ebp, 2
jne 0x100c37c8
fldz
mov dword [esp + 0x3c], 0
fst dword [ecx]
fstp dword [eax]
cmp esi, 1
jne 0x100c377d
push edi
call sym.leptonlib.dll_boxClone
add esp, 4
jmp 0x100c37a2
push 0
cmp esi, 2
jne 0x100c378a
push 0
push 0
jmp 0x100c3797
cmp esi, 4
jne 0x100c3793
push 0
jmp 0x100c3795
push 2
push 1
push 1
push edi
call sym.leptonlib.dll_pixReduceRankBinaryCascade
add esp, 0x14
lea ecx, [esp + 0x48]
push ecx
push eax
mov dword [esp + 0x18], eax
call sym.leptonlib.dll_pixZero
add esp, 8
cmp dword [esp + 0x48], 0
je 0x100c37d5
lea edx, [esp + 0x10]
push edx
call sym.leptonlib.dll_pixDestroy
add esp, 4
pop ebp
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x74
ret
mov eax, ebx
cdq
idiv esi
mov ebx, 1
mov esi, eax
cmp esi, ebx
jne 0x100c37f4
mov eax, dword [esp + 0x10]
push eax
call sym.leptonlib.dll_boxClone
add esp, 4
jmp 0x100c382a
push 0
cmp esi, 2
jne 0x100c3807
mov ecx, dword [esp + 0x14]
push 0
push 0
push ebx
push ecx
jmp 0x100c3822
cmp esi, 4
jne 0x100c3818
mov edx, dword [esp + 0x14]
push 0
push 2
push ebx
push edx
jmp 0x100c3822
mov eax, dword [esp + 0x14]
push 2
push 2
push ebx
push eax
call sym.leptonlib.dll_pixReduceRankBinaryCascade
add esp, 0x14
push eax
mov dword [esp + 0x2c], eax
call sym.leptonlib.dll_pixCreateTemplate
add esp, 4
mov dword [esp + 0x38], eax
cmp esi, ebx
jne 0x100c3847
push eax
call sym.leptonlib.dll_boxClone
jmp 0x100c3851
mov ecx, dword [esp + 0x10]
push ecx
call sym.leptonlib.dll_pixCreateTemplate
fld dword [esp + 0xa8]
add esp, 4
fadd st(0), st(0)
mov dword [esp + 0x14], eax
fst qword [esp + 0x68]
fdiv dword [esp + 0xa8]
fadd qword [0x10142240]
call fcn.10140710
mov edi, eax
push edi
call sym.leptonlib.dll_numaCreate
push edi
mov dword [esp + 0x24], eax
call sym.leptonlib.dll_numaCreate
add esp, 8
cmp dword [esp + 0x10], 0
mov dword [esp + 0x20], eax
je 0x100c3f17
mov edx, dword [esp + 0x28]
test edx, edx
je 0x100c3f17
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x100c3f17
cmp dword [esp + 0x14], 0
je 0x100c3f17
cmp dword [esp + 0x1c], 0
je 0x100c3f17
test eax, eax
je 0x100c3f17
fld dword [esp + 0xa0]
xor esi, esi
fsub dword [esp + 0xa4]
mov dword [esp + 0x40], esi
fstp dword [esp + 0x44]
fld qword [0x10142e38]
test edi, edi
jg 0x100c3a2e
fstp st(0)
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
call sym.leptonlib.dll_numaGetMax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x58]
push eax
push ecx
push edx
call sym.leptonlib.dll_numaGetFValue
mov eax, dword [esp + 0x34]
push eax
call sym.leptonlib.dll_lheapGetCount
mov ecx, dword [esp + 0x48]
add esp, 0x1c
test ecx, ecx
je 0x100c3f1b
dec eax
cmp ecx, eax
je 0x100c3f1b
mov ecx, dword [esp + 0x20]
push ecx
call sym.leptonlib.dll_numaEmpty
mov edx, dword [esp + 0x20]
push edx
call sym.leptonlib.dll_numaEmpty
fld dword [esp + 0x54]
mov eax, dword [esp + 0x18]
fst dword [esp + 0x20]
fmul qword [0x10142e38]
add esp, 8
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
cmp ebp, ebx
jne 0x100c3ac7
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp]
push eax
push ecx
call sym.leptonlib.dll_pixVShearCorner
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x88]
push edx
push eax
call sym.leptonlib.dll_pixFindDifferentialSquareSum
fld dword [esp + 0x30]
fsub dword [esp + 0xc0]
mov edx, dword [esp + 0x2c]
add esp, 0x18
push ebx
fst qword [esp + 0x54]
push ecx
fmul qword [0x10142e38]
mov ecx, dword [esp + 0x18]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp]
push ecx
push edx
call sym.leptonlib.dll_pixVShearCorner
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x80]
push eax
push ecx
call sym.leptonlib.dll_pixFindDifferentialSquareSum
fld dword [esp + 0x30]
fadd dword [esp + 0xc0]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add esp, 0x18
fst qword [esp + 0x30]
push ebx
fmul qword [0x10142e38]
push ecx
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp]
push edx
push eax
call sym.leptonlib.dll_pixVShearCorner
jmp 0x100c3b65
mov edx, dword [esp + 0x28]
fld qword [0x10142e38]
mov ecx, dword [esp + 0x38]
fild dword [esp + 0x40]
push ebx
push ecx
fmul dword [esp + 0xb0]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x38]
fmul dword [esp + 0x38]
cmp ebp, ebx
jne 0x100c3a5f
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp]
push edx
push ecx
call sym.leptonlib.dll_pixVShearCorner
jmp 0x100c3a71
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp]
push edx
push ecx
call sym.leptonlib.dll_pixVShearCenter
mov eax, dword [esp + 0x48]
add esp, 0x10
lea edx, [esp + 0x18]
push edx
push eax
call sym.leptonlib.dll_pixFindDifferentialSquareSum
fld dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
fstp dword [esp + 4]
add esp, 4
push ecx
call sym.leptonlib.dll_numaAddNumber
fld dword [esp + 0x38]
mov edx, dword [esp + 0x24]
fstp dword [esp + 4]
add esp, 4
push edx
call sym.leptonlib.dll_numaAddNumber
add esi, ebx
add esp, 8
cmp esi, edi
mov dword [esp + 0x40], esi
jl 0x100c3a20
mov eax, dword [esp + 0x20]
jmp 0x100c38f9
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp]
push eax
push ecx
call sym.leptonlib.dll_pixVShearCenter
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x88]
push edx
push eax
call sym.leptonlib.dll_pixFindDifferentialSquareSum
fld dword [esp + 0x30]
fsub dword [esp + 0xc0]
mov edx, dword [esp + 0x2c]
add esp, 0x18
push ebx
fst qword [esp + 0x54]
push ecx
fmul qword [0x10142e38]
mov ecx, dword [esp + 0x18]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp]
push ecx
push edx
call sym.leptonlib.dll_pixVShearCenter
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x80]
push eax
push ecx
call sym.leptonlib.dll_pixFindDifferentialSquareSum
fld dword [esp + 0x30]
fadd dword [esp + 0xc0]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add esp, 0x18
fst qword [esp + 0x30]
push ebx
fmul qword [0x10142e38]
push ecx
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp]
push edx
push eax
call sym.leptonlib.dll_pixVShearCenter
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x90]
push ecx
push edx
call sym.leptonlib.dll_pixFindDifferentialSquareSum
fld dword [esp + 0x90]
mov eax, dword [esp + 0x38]
add esp, 0x18
push ecx
fstp dword [esp]
push eax
call sym.leptonlib.dll_numaAddNumber
fld dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
fstp dword [esp + 4]
add esp, 4
push ecx
call sym.leptonlib.dll_numaAddNumber
fld dword [esp + 0x78]
mov edx, dword [esp + 0x28]
fstp dword [esp + 4]
add esp, 4
push edx
call sym.leptonlib.dll_numaAddNumber
fld qword [esp + 0x58]
mov eax, dword [esp + 0x24]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
add esp, 4
fstp dword [esp]
push eax
call sym.leptonlib.dll_numaAddNumber
fld dword [esp + 0x88]
mov ecx, dword [esp + 0x28]
fstp dword [esp + 4]
add esp, 4
push ecx
call sym.leptonlib.dll_numaAddNumber
fld qword [esp + 0x38]
mov edx, dword [esp + 0x24]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
add esp, 4
fstp dword [esp]
push edx
call sym.leptonlib.dll_numaAddNumber
fld dword [esp + 0xb0]
fmul qword [0x10142230]
add esp, 8
fstp dword [esp + 0x30]
fld dword [esp + 0xac]
fst qword [esp + 0x60]
fld dword [esp + 0x30]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x100c3e13
fsubr dword [esp + 0x18]
push ebx
push ecx
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fmul qword [0x10142e38]
cmp ebp, ebx
jne 0x100c3c6f
mov eax, dword [esp + 0x18]
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
mov ecx, dword [esp + 0x1c]
fstp dword [esp]
push eax
push ecx
call sym.leptonlib.dll_pixVShearCorner
jmp 0x100c3c89
mov edx, dword [esp + 0x18]
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
mov eax, dword [esp + 0x1c]
fstp dword [esp]
push edx
push eax
call sym.leptonlib.dll_pixVShearCenter
mov edx, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x74]
push ecx
push edx
call sym.leptonlib.dll_pixFindDifferentialSquareSum
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x28]
fstp dword [esp + 4]
add esp, 4
push eax
call sym.leptonlib.dll_numaAddNumber
fld dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
fstp dword [esp + 4]
add esp, 4
push ecx
call sym.leptonlib.dll_numaAddNumber
fld dword [esp + 0x38]
fadd dword [esp + 0x20]
add esp, 8
push ebx
push ecx
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fmul qword [0x10142e38]
cmp ebp, ebx
jne 0x100c3d00
mov edx, dword [esp + 0x18]
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
mov eax, dword [esp + 0x1c]
fstp dword [esp]
push edx
push eax
call sym.leptonlib.dll_pixVShearCorner
jmp 0x100c3d1a
mov ecx, dword [esp + 0x18]
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
mov edx, dword [esp + 0x1c]
fstp dword [esp]
push ecx
push edx
call sym.leptonlib.dll_pixVShearCenter
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea eax, [esp + 0x7c]
push eax
push ecx
call sym.leptonlib.dll_pixFindDifferentialSquareSum
fld dword [esp + 0x84]
mov edx, dword [esp + 0x28]
fstp dword [esp + 4]
add esp, 4
push edx
call sym.leptonlib.dll_numaAddNumber
fld dword [esp + 0x48]
mov eax, dword [esp + 0x24]
fstp dword [esp + 4]
add esp, 4
push eax
call sym.leptonlib.dll_numaAddNumber
fld dword [esp + 0x7c]
fst dword [esp + 0x2c]
add esp, 8
fld dword [esp + 0x78]
mov ecx, ebx
fcom st(1)
mov dword [esp + 0x2c], ecx
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x100c3d88
mov ecx, 2
fstp dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
jmp 0x100c3d8a
fstp st(0)
fld dword [esp + 0x7c]
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x100c3daa
mov ecx, 3
fstp dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
jmp 0x100c3dac
fstp st(0)
fld dword [esp + ecx*4 + 0x6c]
add ecx, 0xfffffffe
fstp dword [esp + 0x50]
fld dword [esp + ecx*4 + 0x7c]
fstp dword [esp + 0x40]
fld dword [esp + 0x24]
fstp dword [esp + 0x78]
fld dword [esp + 0x50]
mov dword [esp + 0x50], ecx
fstp dword [esp + 0x70]
fld dword [esp + 0x40]
fstp dword [esp + 0x80]
fild dword [esp + 0x50]
fld dword [esp + 0x30]
fld st(0)
fmulp st(2)
fld dword [esp + 0x18]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x18]
fmul qword [0x10142230]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fcom qword [esp + 0x60]
fnstsw ax
test ah, 1
je 0x100c3c3b
mov eax, dword [esp + 0x94]
fstp st(0)
fld dword [esp + 0x18]
mov ecx, dword [esp + 0x8c]
fstp dword [ecx]
test eax, eax
je 0x100c3e33
fld dword [esp + 0x78]
fstp dword [eax]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x5c]
push eax
push ecx
call sym.leptonlib.dll_numaGetMin
mov edx, dword [esp + 0x1c]
push edx
call sym.leptonlib.dll_pixGetWidth
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
mov eax, dword [esp + 0x20]
push eax
fstp dword [esp + 0x54]
call sym.leptonlib.dll_pixGetHeight
mov dword [esp + 0x64], eax
fild dword [esp + 0x64]
add esp, 0x14
fld dword [esp + 0x40]
fld qword [0x10149da8]
fmul st(1)
fmulp st(1)
fmulp st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x58]
fld dword [esp + 0x50]
fcomp st(1)
fnstsw ax
fld dword [esp + 0x24]
test ah, 5
jp 0x100c3eac
fld st(0)
mov ecx, dword [esp + 0x90]
fdivrp st(2)
fxch st(1)
fstp dword [ecx]
jmp 0x100c3eb9
mov edx, dword [esp + 0x90]
fstp st(1)
fldz
fstp dword [edx]
fld dword [esp + 0x18]
fld dword [esp + 0x44]
fld qword [esp + 0x68]
fadd st(1)
fld dword [esp + 0xa8]
fld st(0)
fsubp st(2)
fxch st(1)
fcomp st(3)
fnstsw ax
test ah, 5
jnp 0x100c3f02
faddp st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x100c3f08
fcomp dword [0x10149da0]
fnstsw ax
test ah, 5
jp 0x100c3f1b
fldz
mov eax, dword [esp + 0x90]
fstp dword [eax]
jmp 0x100c3f1b
fstp st(2)
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x90]
fstp st(0)
fldz
fstp dword [eax]
jmp 0x100c3f1b
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x28]
push ecx
call sym.leptonlib.dll_pixDestroy
lea edx, [esp + 0x14]
push edx
call sym.leptonlib.dll_pixDestroy
lea eax, [esp + 0x40]
push eax
call sym.leptonlib.dll_pixDestroy
lea ecx, [esp + 0x20]
push ecx
call sym.leptonlib.dll_pixDestroy
lea edx, [esp + 0x30]
push edx
call sym.leptonlib.dll_numaDestroy
lea eax, [esp + 0x30]
push eax
call sym.leptonlib.dll_numaDestroy
mov eax, dword [esp + 0x54]
add esp, 0x18
pop ebp
pop esi
pop ebx
pop edi
add esp, 0x74
ret