Function at 0x401f00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440d1a
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x45510c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
cmp dword [esi + 0x30], eax
je 0x4022b7
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f62
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402b30
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test edx, edx
je 0x401feb
lea eax, [ebp - 0x28]
cmp ecx, 8
jb 0x401f90
mov eax, dword [ebp - 0x28]
cmp word [eax + edx*2 - 2], 0x5c
je 0x401feb
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x401fcd
lea ebx, [edx + 1]
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x28]
cmp ecx, 8
jb 0x401fb2
mov edi, dword [ebp - 0x28]
push 2
lea eax, [edi + edx*2]
push 0x44d5fc
push eax
call fcn.00426fe0
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2], ax
jmp 0x401fe5
push 1
push 0x44d5fc
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 1
call fcn.004028c0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x402068
cmp dword [esi + 0x14], 8
mov ebx, esi
jb 0x401ffc
mov ebx, dword [esi]
mov eax, ecx
sub eax, edx
cmp edi, eax
ja 0x40203d
lea eax, [edx + edi]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
cmp ecx, 8
jb 0x40201e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea eax, [edi + edi]
mov edi, dword [ebp - 0x5c]
push eax
push ebx
lea eax, [edi + edx*2]
push eax
call fcn.00426fe0
mov eax, dword [ebp - 0x6c]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x40204f
push edi
push ebx
mov byte [ebp - 0x6c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x6c]
push edi
call fcn.004028c0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x40205b
mov ecx, dword [ebp - 0x28]
call fcn.00402dc0
test eax, eax
je 0x4022b7
mov ebx, dword [ebp - 0x64]
test ebx, ebx
jne 0x402088
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x58]
call fcn.00402410
mov ecx, eax
mov byte [ebp - 4], 1
mov ebx, 1
jmp 0x4020c9
mov ecx, ebx
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4020a1
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x40]
call fcn.00402b30
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 2
mov ebx, 2
cmp dword [ecx + 0x14], 8
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x70], ebx
jb 0x4020d7
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
sub eax, edi
cmp edx, eax
ja 0x402120
cmp dword [ebp - 0x14], 8
lea eax, [edi + edx]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
jb 0x4020fe
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea eax, [edx + edx]
push eax
mov eax, dword [ebp - 0x5c]
push ecx
lea eax, [eax + edi*2]
push eax
call fcn.00426fe0
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov ecx, dword [ebp - 0x64]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x402132
push edx
push ecx
mov byte [ebp - 0x64], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x64]
push edx
call fcn.004028c0
test bl, 2
je 0x402174
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x402174
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40216a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40230f
push edx
push ecx
call fcn.0040ea0e
add esp, 8
test bl, 1
je 0x4021b3
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4021b3
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4021a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402314
push edx
push ecx
call fcn.0040ea0e
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edi, dword [esi + 0x38]
mov ebx, dword [esi + 0x30]
jb 0x4021c5
mov eax, dword [ebp - 0x28]
push 0x44d6b0
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 0x5d], 1
push eax
mov dword [ebp - 0x5c], 0
call fcn.0042c7db
mov eax, dword [ebp - 0x5c]
add esp, 0xc
test eax, eax
je 0x4022b7
push eax
push edi
push 1
push ebx
call fcn.0042cb2c
push dword [ebp - 0x5c]
cmp edi, eax
setne bl
dec bl
call fcn.0042c899
add esp, 0x14
and bl, byte [ebp - 0x5d]
je 0x4022b7
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jb 0x402227
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], eax
cmp ecx, 0xffffffff
jne 0x402236
cmp eax, ecx
je 0x40226c
push 0
push 0x80
push 3
push 0
push 3
push 0x100
push edi
call dword [0x455050]
mov esi, eax
cmp esi, 0xffffffff
je 0x40226c
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [0x45503c]
cmp ebx, 0xffffffff
je 0x4022b3
mov eax, ebx
and eax, 1
test bl, 2
je 0x40227e
or eax, 2
test bl, 4
je 0x402286
or eax, 4
test bl, 8
je 0x40228e
or eax, 0x10
test bl, 0x10
je 0x402298
or eax, 0x400
test bl, 0x20
je 0x4022a2
or eax, 0x80
test bl, bl
jns 0x4022ab
or eax, 0x200
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x4022b9
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4022ef
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4022e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402319
push edx
push ecx
call fcn.0040ea0e
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e9fd
mov esp, ebp
pop ebp
ret 0xc
call fcn.00429676
call fcn.00429676
call fcn.00429676
int3