Function at 0x1001b140
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1011dad8
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x10157de0]
xor eax, esp
mov dword [esp + 0xfc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10157de0]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov eax, dword [esp + 0x124]
sub esp, 0x1c
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x5c], esp
mov dword [esp + 0x3c], eax
mov eax, esp
push 0x1012b9e4
push 0x1012c0e0
push str.__line:
sub esp, 0x1c
mov dword [esp + 0x5c], esp
mov dword [esp + 0x60], ecx
mov ecx, esp
push 0x1c
mov ebp, 0xf
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.._adaptor_cflashtool_api.cpp
lea edi, [ebx + 1]
mov byte [ecx + 4], bl
mov dword [esp + 0x64], eax
call fcn.10007180
lea esi, [esp + 0xa4]
call fcn.1001a7c0
add esp, 0x1c
mov esi, eax
mov dword [esp + 0x144], ebx
push 3
push 0x1012ba0c
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.10007180
push esi
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0xc8]
push eax
mov byte [esp + 0x150], 1
call fcn.1000a2c0
add esp, 0xc
push eax
lea ecx, [esp + 0xfc]
push ecx
mov byte [esp + 0x14c], 2
call fcn.1000a370
add esp, 0xc
push eax
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0x148], 3
call fcn.1000a370
add esp, 0xc
push eax
mov eax, dword [esp + 0x3c]
push eax
mov byte [esp + 0x144], 4
call fcn.1000a370
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x50], esp
mov byte [esp + 0x154], 5
push 0x26
mov esi, ebp
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.cflashtool_api::FlashTool_ChangeCOM_Ex
mov byte [ecx + 4], bl
call fcn.10007180
mov ecx, edi
lea ebx, [esp + 0x124]
mov byte [esp + 0x154], 4
call fcn.10054c90
mov ebp, 0x10
cmp dword [esp + 0x5c], ebp
jb 0x1001b2bc
mov eax, dword [esp + 0x48]
push eax
call fcn.100d41da
add esp, 4
xor ebx, ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0xe8], ebp
jb 0x1001b2e3
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.100d41da
add esp, 4
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
cmp dword [esp + 0xb0], ebp
jb 0x1001b311
mov edx, dword [esp + 0x9c]
push edx
call fcn.100d41da
add esp, 4
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
cmp dword [esp + 0x3c], ebp
jb 0x1001b339
mov eax, dword [esp + 0x28]
push eax
call fcn.100d41da
add esp, 4
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov byte [esp + 0x11c], 0xb
cmp dword [esp + 0x78], ebp
jb 0x1001b360
mov ecx, dword [esp + 0x64]
push ecx
call fcn.100d41da
add esp, 4
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.100d4594
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
lea esp, [esp]
cmp dword [edi], ebx
jne 0x1001b3ce
movzx eax, word [edi + 4]
cdq
push edx
push eax
lea esi, [esp + 0xbc]
call fcn.10055680
push eax
lea edx, [esp + 0x88]
push 0x1012c10c
mov byte [esp + 0x12c], 0xc
or dword [esp + 0x24], 1
push edx
call fcn.1003d610
or dword [esp + 0x28], 2
add esp, 0x14
cmp dword [eax + 0x18], ebp
jb 0x1001b3c9
mov eax, dword [eax + 4]
jmp 0x1001b3d1
add eax, 4
jmp 0x1001b3d1
mov eax, dword [edi + 4]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.FlashtoollibEx.dll_flashtool_reconnect_com]
test byte [esp + 0x14], 2
mov esi, eax
je 0x1001b41f
and dword [esp + 0x14], 0xfffffffd
cmp dword [esp + 0x94], ebp
jb 0x1001b406
mov edx, dword [esp + 0x80]
push edx
call fcn.100d41da
add esp, 4
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
mov dword [esp + 0x11c], 0xb
test byte [esp + 0x14], 1
je 0x1001b468
and dword [esp + 0x14], 0xfffffffe
cmp dword [esp + 0xcc], ebp
jb 0x1001b44f
mov eax, dword [esp + 0xb8]
push eax
call fcn.100d41da
add esp, 4
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
cmp esi, ebx
je 0x1001b49b
push 0x64
call sub.KERNEL32.dll_Sleep
call fcn.100d4594
sub eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fdiv qword [0x10131348]
fcomp qword [0x10131378]
fnstsw ax
test ah, 5
jnp 0x1001b380
lea ecx, [esp + 0xec]
push ecx
mov dword [esp + 0x120], 0xffffffff
call fcn.10054f30
mov eax, esi
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xfc]
xor ecx, esp
call fcn.100d3301
add esp, 0x10c
ret 4