Function at 0x10073f70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x101585ab
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x101b0cd0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
mov esi, dword [esp + 0x440]
mov ebp, ecx
cmp dword [ebp + 4], 0
mov dword [esp + 0x30], esi
je 0x10074012
test esi, esi
je 0x10074019
mov ecx, esi
call fcn.1006bf20
test al, al
je 0x10074000
mov ecx, esi
call fcn.10074c10
test al, al
je 0x10074000
mov ecx, esi
call fcn.1006bd80
mov ecx, ebp
mov edi, eax
call fcn.1006bd80
cmp edi, eax
jne 0x10074000
mov ecx, esi
call fcn.1006bd70
mov ecx, ebp
mov esi, eax
call fcn.1006bd70
cmp esi, eax
je 0x10074019
lea edi, [ebp + 0x44]
mov ecx, 9
mov esi, str.AdaptiveThreshold_invalid_ContrastMask
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor al, al
jmp 0x100742d9
mov esi, dword [esp + 0x43c]
cmp esi, 8
jge 0x1007402a
mov esi, 8
fldz
fld dword [esp + 0x448]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x10074047
fstp st(0)
fstp dword [esp + 0x448]
jmp 0x10074061
fstp st(1)
fld1
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x1007405f
fstp dword [esp + 0x448]
jmp 0x10074061
fstp st(0)
mov eax, dword [ebp + 0xc]
lea eax, [eax + esi - 1]
cdq
idiv esi
mov ecx, dword [ebp + 0x10]
push 0
push 8
mov ebx, eax
lea eax, [esi + ecx - 1]
cdq
idiv esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x2c], ebx
mov edi, eax
push edi
push ebx
mov dword [esp + 0x44], edi
call fcn.1006ba20
lea ecx, [esp + 0x54]
mov dword [esp + 0x430], 0
call fcn.1006d5b0
test al, al
jne 0x100740d4
mov dword [esp + 0x430], 0xffffffff
mov dword [esp + 0x54], vtable.CxImage.0
lea ecx, [esp + 0x54]
call fcn.1006b180
lea ecx, [esp + 0x54]
call fcn.1006b0d0
xor al, al
jmp 0x100742d9
mov ecx, ebp
call fcn.1006d5b0
test al, al
je 0x100740a8
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x438]
push edx
push 0
push eax
mov ecx, ebp
call fcn.10073570
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x40], eax
jge 0x1007411a
lea ecx, [esp + 0x54]
mov dword [esp + 0x430], 0xffffffff
call sym.BXLLAPI.dll_public_virtual:_void___thiscall_CxImage::destructor_void_
xor al, al
jmp 0x100742d9
cmp edi, ecx
mov dword [esp + 0x20], ecx
jle 0x10074272
mov eax, ebx
imul eax, eax, 0x64
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x24]
xor ebx, ebx
test edx, edx
jle 0x10074255
mov ecx, edi
imul ecx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
xor edi, edi
mov dword [esp + 0x2c], edx
jmp 0x10074164
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
cdq
idiv ecx
cmp dword [ebp + 0x148], 0
mov dword [ebp + 0x144], eax
jne 0x1007424d
mov ecx, dword [esp + 0x30]
lea eax, [edi + esi]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
add eax, esi
push ecx
lea edx, [esp + 0x48]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x43c]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x50], edi
call fcn.10073570
mov dword [esp + 0x14], eax
test eax, eax
jl 0x100740a8
fld dword [esp + 0x448]
fld st(0)
fld1
fsubrp st(1)
fimul dword [esp + 0x14]
fild dword [esp + 0x40]
fmulp st(2)
faddp st(1)
fiadd dword [esp + 0x444]
fld qword [0x101a37f8]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x10074305
fld st(1)
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x10074303
fstp st(2)
fstp st(0)
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
fldcw word [esp + 0x28]
fistp dword [esp + 0x28]
mov cl, byte [esp + 0x28]
movzx edx, cl
push edx
fldcw word [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x60]
call fcn.10074810
add dword [esp + 0x2c], 0x64
inc ebx
add edi, esi
cmp ebx, dword [esp + 0x24]
jl 0x10074160
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
add dword [esp + 0x18], eax
add dword [esp + 0x1c], esi
inc ecx
cmp ecx, edi
mov dword [esp + 0x20], ecx
jl 0x10074137
mov ebx, dword [esp + 0x24]
imul edi, esi
imul ebx, esi
push 0
push 0
push edi
push ebx
lea ecx, [esp + 0x64]
call fcn.1006ee70
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push 0
push 0
push ecx
push edx
push 0
lea ecx, [esp + 0x68]
call fcn.10072770
lea eax, [esp + 0x54]
push eax
mov ecx, ebp
call fcn.10073330
mov dword [esp + 0x430], 0xffffffff
mov dword [esp + 0x54], vtable.CxImage.0
lea ecx, [esp + 0x54]
test al, al
je 0x100740bf
call fcn.1006b180
lea ecx, [esp + 0x54]
call fcn.1006b0d0
mov al, 1
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.1005392f
add esp, 0x420
ret 0x14
fstp st(0)
fcom st(1)
fnstsw ax
test ah, 5
jp 0x10074204
fstp st(1)
jmp 0x10074206