Function at 0x40d050
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x459b3d
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x46e0b0]
xor eax, esp
mov dword [esp + 0x5a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e0b0]
xor eax, esp
push eax
lea eax, [esp + 0x5b8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5c8]
mov ecx, 0x94
lea esi, [esp + 0x5cc]
lea edi, [esp + 0x50]
push 0x64
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
lea ecx, [esp + 0x34c]
push ebx
push ecx
mov dword [esp + 0x28], eax
call fcn.0042a800
xor eax, eax
push str.SystemDrive
mov dword [esp + 0x2b0], eax
mov dword [esp + 0x2b4], eax
mov word [esp + 0x2b8], ax
call fcn.0042cde3
add esp, 0x10
push eax
lea ecx, [esp + 0x34]
call fcn.00408530
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x2e0]
mov dword [esp + 0x5c0], ebx
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40d100
lea edx, [esp + 0x314]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40d115
lea eax, [esp + 0x2e0]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40d127
mov edx, dword [str.ProgramData]
mov ecx, dword [0x45dba8]
mov dword [eax], edx
mov edx, dword [0x45dbac]
mov dword [eax + 4], ecx
mov cl, byte [0x45dbb0]
lea edi, [esp + 0x314]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40d160
mov ecx, 6
mov esi, str.Program_FilesMessenger
rep movsd dword es:[edi], dword [esi]
sub esp, 0x1c
movsb byte es:[edi], byte [esi]
mov ecx, esp
lea eax, [esp + 0x2fc]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x50], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40d195
sub eax, esi
push eax
lea edx, [esp + 0x300]
push edx
call fcn.004016a0
call fcn.00404c90
add esp, 0x1c
cmp al, 1
jne 0x40d1f3
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x2e0]
mov byte [esp + eax + 0x2ac], cl
inc eax
cmp cl, bl
jne 0x40d1c0
lea edi, [esp + 0x2ac]
dec edi
jmp 0x40d1e0
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40d1e0
mov ax, word [0x45dcac]
mov word [edi], ax
jmp 0x40d232
xor eax, eax
jmp 0x40d200
mov cl, byte [esp + eax + 0x314]
mov byte [esp + eax + 0x2ac], cl
inc eax
cmp cl, bl
jne 0x40d200
lea edi, [esp + 0x2ac]
dec edi
jmp 0x40d220
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40d220
mov cx, word [0x45dcac]
mov word [edi], cx
lea eax, [esp + 0x2ac]
mov edx, eax
jmp 0x40d240
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d240
lea edi, [esp + 0x348]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40d251
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x46fe6c]
push 0xa
lea edx, [esp + 0x2a4]
push edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0045809d
lea eax, [esp + 0x2ac]
add esp, 0xc
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40d290
mov ecx, dword [str..txt]
mov dl, byte [0x45ded4]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x2a0]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d2b2
lea edi, [esp + 0x348]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40d2c3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0041cf22
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40d2f5
push 0x80004005
call fcn.00401df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x5c0], 1
call fcn.0041cf22
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40d327
push 0x80004005
call fcn.00401df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x5c0], 2
call fcn.0041cf22
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40d359
push 0x80004005
call fcn.00401df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x5c0], 3
call fcn.0041cf22
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40d38b
push 0x80004005
call fcn.00401df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x5c0], 4
cmp dword [0x46fe68], ebx
jne 0x40d400
push 0x22
push str._directory_name_
mov ecx, 0x46fe98
call fcn.0041d1cb
mov edx, dword [0x46fe64]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d3c7
sub eax, esi
sar eax, 1
lea ecx, [eax + eax]
push ecx
push edx
mov ecx, 0x46fe98
call fcn.0041d1cb
push 4
push 0x45dea4
mov ecx, 0x46fe98
call fcn.0041d1cb
mov dword [0x46fe68], 1
test byte [esp + 0x50], 0x10
je 0x40d669
mov ecx, 0x45dea0
lea eax, [esp + 0x7c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d43a
cmp dx, bx
je 0x40d436
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d43a
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40d414
xor eax, eax
jmp 0x40d43f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40d8f9
mov ecx, 0x45de98
lea eax, [esp + 0x7c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d476
cmp dx, bx
je 0x40d472
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d476
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40d450
xor eax, eax
jmp 0x40d47b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40d8f9
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x24]
call fcn.00406cb0
push 0x22
push str._directory_name_
mov ecx, 0x46fe98
call fcn.0041d1cb
lea eax, [esp + 0x7c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d4b0
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x80]
push ecx
mov ecx, 0x46fe98
call fcn.0041d1cb
push 4
push 0x45dea4
mov ecx, 0x46fe98
call fcn.0041d1cb
push 0x206
lea eax, [esp + 0x3b2]
xor edx, edx
push ebx
push eax
mov word [esp + 0x3b8], dx
call fcn.0042a800
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x3b8]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x40d512
lea eax, [esp + 0x3ac]
lea edx, [eax + 2]
jmp 0x40d530
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d530
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x3aa], 0x5c
je 0x40d568
lea edi, [esp + 0x3ac]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40d554
mov ecx, dword [0x45de94]
mov dword [edi], ecx
mov edx, dword [esp + 0x64]
fldz
mov eax, dword [esp + 0x68]
fstp qword [esp + 0x24]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], ebx
call fcn.00403010
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], edx
push str._d__m__Y
lea edx, [esp + 0x20]
mov dword [esp + 0x4c], ecx
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], eax
call fcn.0040bad0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c4], 5
call fcn.00405040
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x5c0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d5f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x70]
push ecx
lea edx, [esp + 0x1c]
push 0x45de80
push edx
call fcn.004058f0
lea eax, [esp + 0x88]
add esp, 0xc
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d617
lea edi, [esp + 0x3ac]
sub eax, edx
add edi, 0xfffffffe
mov edi, edi
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x40d630
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x3ac]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040ea70
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
add esp, 4
jmp 0x40d8f9
push 0x206
lea edx, [esp + 0x3b2]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x3b8], cx
call fcn.0042a800
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d690
lea edi, [esp + 0x3ac]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40d6b0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x40d6b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x3ac]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d6d6
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x3aa], 0x5c
je 0x40d713
lea edi, [esp + 0x3ac]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40d700
mov eax, dword [0x45de94]
mov dword [edi], eax
lea eax, [esp + 0x7c]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d720
lea edi, [esp + 0x3ac]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40d740
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x40d740
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x7c]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d763
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x28]
call fcn.00404690
fldz
mov edx, dword [esp + 0x64]
fstp qword [esp + 0x24]
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x70]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], ebx
call fcn.00403010
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], edx
push str._d__m__Y
lea edx, [esp + 0x50]
mov dword [esp + 0x4c], ecx
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], eax
call fcn.0040bad0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c4], 6
call fcn.00405040
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x5c0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d817
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x1c]
push 0x45de80
push ecx
call fcn.004058f0
add esp, 0xc
push 0x18
push str._file_name_
mov ecx, 0x46fe98
call fcn.0041d1cb
lea eax, [esp + 0x7c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d842
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x80]
push eax
mov ecx, 0x46fe98
call fcn.0041d1cb
push 4
push 0x45de5c
mov ecx, 0x46fe98
call fcn.0041d1cb
push 0xc
push str.size_
mov ecx, 0x46fe98
call fcn.0041d1cb
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + eax]
push ecx
push ebp
mov ecx, 0x46fe98
call fcn.0041d1cb
push 4
push 0x45de5c
mov ecx, 0x46fe98
call fcn.0041d1cb
push 0xe
push str.mdate_
mov ecx, 0x46fe98
call fcn.0041d1cb
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
lea edx, [eax + eax]
push edx
push edi
mov ecx, 0x46fe98
call fcn.0041d1cb
push 4
push 0x45de5c
mov ecx, 0x46fe98
call fcn.0041d1cb
push 6
push 0x45de34
mov ecx, 0x46fe98
call fcn.0041d1cb
lea eax, [edi - 0x10]
mov byte [esp + 0x5c0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d91d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x5c0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d941
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x5c0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d969
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x5c0], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d990
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x5c0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d9bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x5b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5a0]
xor ecx, esp
call fcn.0042ae19
add esp, 0x5b0
ret