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

Disassembly:
sub esp, 0x4c
push edi
mov edi, dword [esp + 0x5c]
test edi, edi
jne 0x100616c3
xor eax, eax
pop edi
add esp, 0x4c
ret
push esi
mov esi, dword [esp + 0x5c]
mov dword [edi], 0
test esi, esi
je 0x100616e0
mov eax, dword [esp + 0x58]
mov dword [esi], 0
test eax, eax
jne 0x100616e8
pop esi
xor eax, eax
pop edi
add esp, 0x4c
ret
push ebp
push eax
call sym.leptonlib.dll_boxaGetCount
mov ebp, eax
push ebp
mov dword [esp + 0x50], ebp
call sym.leptonlib.dll_ptaCreate
add esp, 8
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x1006170d
pop ebp
pop esi
pop edi
add esp, 0x4c
ret
push ebx
push ebp
mov dword [edi], eax
call sym.leptonlib.dll_pixaCreate
push ebp
mov dword [esp + 0x48], eax
call sym.leptonlib.dll_numaCreate
xor ebx, ebx
add esp, 8
mov dword [esp + 0x44], eax
mov dword [esi], eax
mov dword [esp + 0x3c], ebx
test ebp, ebp
jle 0x1006197f
mov eax, dword [esp + 0x60]
push 2
push ebx
push eax
call sym.leptonlib.dll_pixaaGetPixa
push eax
mov dword [esp + 0x24], eax
call sym.leptonlib.dll_boxaGetCount
mov ecx, dword [esp + 0x54]
mov edi, eax
mov dword [esp + 0x78], edi
fild dword [esp + 0x78]
add esp, 0xc
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp]
push ecx
call sym.leptonlib.dll_numaAddNumber
add esp, 8
test edi, edi
jne 0x10061789
lea edx, [esp + 0x14]
push edx
call sym.leptonlib.dll_pixaDestroy
add esp, 4
jmp 0x10061972
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x64]
push eax
push ecx
call sym.leptonlib.dll_pixaSizeRange
mov edx, dword [esp + 0x28]
push 2
push 0
push edx
call sym.leptonlib.dll_pixaGetPix
push eax
mov dword [esp + 0x6c], eax
call sym.leptonlib.dll_numaGetRefcount
mov esi, eax
lea eax, [esp + 0x6c]
push eax
call sym.leptonlib.dll_pixDestroy
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
push esi
push ecx
push edx
call sym.leptonlib.dll_pixCreate
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
push 0
push eax
push ecx
call sym.leptonlib.dll_pixInitAccumulate
mov edx, dword [esp + 0x54]
add esp, 0x40
push edx
mov dword [esp + 0x3c], eax
call sym.leptonlib.dll_pixaCentroids
fldz
add esp, 4
fst dword [esp + 0x68]
xor esi, esi
fstp dword [esp + 0x10]
mov dword [esp + 0x2c], eax
test edi, edi
jle 0x10061855
jmp 0x10061820
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
call sym.leptonlib.dll_ptaGetPt
fld dword [esp + 0x2c]
fadd dword [esp + 0x20]
inc esi
add esp, 0x10
cmp esi, edi
fstp dword [esp + 0x10]
fld dword [esp + 0x20]
fadd dword [esp + 0x68]
fstp dword [esp + 0x68]
jl 0x10061820
fld dword [esp + 0x10]
xor esi, esi
fld dword [esp + 0x30]
fld st(0)
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fdivr dword [esp + 0x68]
fstp dword [esp + 0x68]
test edi, edi
jle 0x10061924
lea esp, [esp]
mov eax, dword [esp + 0x14]
push 2
push esi
push eax
call sym.leptonlib.dll_pixaGetPix
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
push esi
push eax
call sym.leptonlib.dll_ptaGetPt
fld dword [esp + 0x38]
fsub dword [esp + 0x2c]
call fcn.10140710
fld dword [esp + 0x3c]
fsub dword [esp + 0x84]
mov ebx, eax
call fcn.10140710
mov ecx, dword [esp + 0x34]
push ecx
mov ebp, eax
call sym.leptonlib.dll_pixClearAll
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
push 0
push 0
push edx
mov edx, dword [esp + 0x44]
push 0x18
push eax
push ecx
push ebp
push ebx
push edx
call sym.leptonlib.dll_pixRasterop
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x7c]
add esp, 0x44
push 1
push eax
push ecx
call sym.leptonlib.dll_pixAccumulate
lea edx, [esp + 0x40]
push edx
call sym.leptonlib.dll_pixDestroy
inc esi
add esp, 0x10
cmp esi, edi
jl 0x10061880
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
push 0
push eax
push ecx
call sym.leptonlib.dll_pixaAddPix
fld dword [esp + 0x74]
mov edx, dword [esp + 0x5c]
fstp dword [esp + 8]
fld dword [esp + 0x1c]
add esp, 4
fstp dword [esp]
push edx
call sym.leptonlib.dll_ptaAddPt
lea eax, [esp + 0x20]
push eax
call sym.leptonlib.dll_pixaDestroy
lea ecx, [esp + 0x28]
push ecx
call sym.leptonlib.dll_pixDestroy
lea edx, [esp + 0x40]
push edx
call sym.leptonlib.dll_ptaDestroy
add esp, 0x18
inc ebx
cmp ebx, ebp
mov dword [esp + 0x3c], ebx
jl 0x10061737
mov eax, dword [esp + 0x40]
pop ebx
pop ebp
pop esi
pop edi
add esp, 0x4c
ret