Function at 0x41d9ba
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x487731
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4b2068]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
mov eax, dword [0x4b2068]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
or dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x3c], eax
mov eax, dword [0x4b457c]
mov esi, 0x4b457c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
and dword [esp + 0x148], 0
lea eax, [esp + 0x50]
push eax
call fcn.00412e4a
mov byte [esp + 0x148], 1
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x148], 2
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x148], 3
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
push edi
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x150], 4
call fcn.00402357
push edi
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x150], 5
call fcn.00402357
mov byte [esp + 0x148], 6
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
push ebx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x150], 7
call fcn.00402357
lea esi, [esp + 0x10]
mov byte [esp + 0x148], 8
call fcn.00420b9e
lea edi, [esp + 0x2c]
mov byte [esp + 0x148], 9
call fcn.004024a3
mov byte [esp + 0x148], 8
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040214e
push 0x5c
push 0x2f
lea eax, [esp + 0x38]
call fcn.0040f1f5
push 0x2f
push 0x5c
lea eax, [esp + 0x24]
call fcn.0040f1f5
push ebx
lea eax, [esp + 0x2c]
push eax
call fcn.00402394
lea ecx, [esp + 0x28]
call fcn.0040813c
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
je 0x41db4b
push str..old.txt
lea eax, [esp + 0x1c]
push eax
call fcn.004021d8
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR80.dll__waccess]
test eax, eax
pop ecx
pop ecx
jne 0x41dd81
push dword [esp + 0x18]
lea esi, [esp + 0x54]
call fcn.00412ed6
cmp eax, ebx
je 0x41dd85
push ebx
push 0x497cec
mov edi, 0x497c30
push edi
mov ecx, esi
call fcn.00412f48
cmp eax, ebx
mov dword [esp + 0x38], eax
jne 0x41dc16
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00402441
lea edi, [eax + 0x10]
mov dword [esp + 0x38], edi
push 0x14
mov byte [esp + 0x14c], 0xa
call fcn.0047f87e
pop ecx
mov dword [esp + 0x40], eax
cmp eax, ebx
mov byte [esp + 0x148], 0xb
je 0x41dbd1
push eax
call fcn.0041de1f
mov esi, eax
jmp 0x41dbd3
xor esi, esi
mov byte [esp + 0x148], 0xa
push dword [esp + 0x1c]
lea eax, [esi + 4]
push eax
mov dword [esp + 0x1c], esi
call fcn.00402394
push edi
push esi
call fcn.0042487e
cmp eax, ebx
jne 0x41dc05
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x14]
push eax
call fcn.0041fe89
lea eax, [edi - 0x10]
mov dword [esp + 0x14], ebx
call fcn.0040214e
jmp 0x41dd85
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x41dd81
mov esi, dword [sym.imp.MSVCR80.dll_wcslen]
push dword [esp + 0x10]
lea eax, [esp + 0x38]
push 0x497cf0
push eax
call fcn.00404e7f
add esp, 0xc
push 0x64
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x3c]
lea ecx, [esp + 0x5c]
push edi
call fcn.0041305c
cmp eax, ebx
je 0x41dd81
lea eax, [esp + 0x6c]
push 0x497cf8
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x41dd6f
lea eax, [esp + 0x6c]
push eax
call esi
pop ecx
lea ecx, [esp + 0x6c]
mov ebx, eax
push ecx
lea eax, [esp + 0x28]
call fcn.004023bb
lea eax, [esp + 0x6c]
push eax
call esi
pop ecx
lea ecx, [esp + 0x6c]
mov ebx, eax
push ecx
lea eax, [esp + 0x24]
call fcn.004023bb
push 0x5c
push 0x2f
lea eax, [esp + 0x28]
call fcn.0040f1f5
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x24]
call fcn.0040c38f
mov ebx, eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x158], 0xc
call fcn.0040c38f
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x60]
push ecx
mov ecx, eax
mov byte [esp + 0x160], 0xd
call fcn.0040c38f
lea ecx, [esp + 0x5c]
push str.index.txt
push ecx
mov ecx, eax
mov byte [esp + 0x168], 0xe
call fcn.0040400d
push dword [ebp + 0x14]
mov byte [esp + 0x16c], 0xf
push dword [esp + 0x60]
mov ebx, dword [ebx]
mov eax, dword [eax]
push ebx
push eax
call fcn.0041d9ba
mov ebx, eax
mov eax, dword [esp + 0x74]
add esp, 0x30
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
call fcn.0040214e
mov byte [esp + 0x148], 8
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.0040214e
test ebx, ebx
jne 0x41dd85
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x38]
jl 0x41dc28
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x14c], 0
call fcn.00412e91
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0047f7b2
mov esp, ebp
pop ebp
ret