Function at 0x418140
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call fcn.00402eb0
mov dword [esp + 0x54], 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
xor edx, edx
xor ebx, ebx
or ebx, ecx
or esi, edx
push 0x485768
mov ecx, ebp
mov dword [esp + 0x24], esi
call fcn.004095f0
cmp dword [edi + 0x6c], 0
jle 0x4181ec
push 0x48576c
mov esi, ebp
call fcn.00419030
mov esi, dword [esp + 0x20]
movzx eax, word [edi + 0xf6]
cmp word [esp + 0x2e], ax
jne 0x418216
mov cx, word [esp + 0x2a]
cmp cx, word [edi + 0xf2]
jne 0x418216
mov dx, word [esp + 0x28]
cmp dx, word [edi + 0xf0]
je 0x418257
movzx ecx, word [edi + 0xf4]
movzx edx, ax
movzx eax, word [edi + 0xf2]
add ecx, 1
push ecx
movzx ecx, word [edi + 0xf0]
push edx
push eax
push ecx
lea edx, [esp + 0x6c]
push 0x485770
push edx
call fcn.00403140
mov eax, dword [esp + 0x74]
mov ecx, dword [eax - 0xc]
add esp, 0x18
push ecx
push eax
mov ecx, ebp
call fcn.0040ae70
movzx eax, word [edi + 0xfc]
movzx ecx, word [edi + 0xfa]
movzx edx, word [edi + 0xf8]
push eax
push ecx
push edx
lea eax, [esp + 0x68]
push str._02d:_02d:_02d__
push eax
call fcn.00403140
mov eax, dword [esp + 0x70]
mov ecx, dword [eax - 0xc]
add esp, 0x14
push ecx
push eax
mov ecx, ebp
call fcn.0040ae70
sub ebx, dword [edi + 0x100]
lea edx, [esp + 0x28]
sbb esi, dword [edi + 0x104]
mov eax, ebx
mov dword [esp + 0x1c], eax
mov ebx, esi
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
sar ecx, 0x1f
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ax, word [esp + 0x28]
add ax, 0xf9c0
mov ecx, 1
cmp ax, cx
mov word [esp + 0x28], ax
jne 0x4182e8
cmp word [esp + 0x2a], cx
jne 0x4182e8
cmp word [esp + 0x2e], cx
je 0x41832d
mov esi, dword [esp + 0x1c]
push 0xc9
push 0x2a69c000
push ebx
push esi
call fcn.0045be70
push edx
push eax
push ebx
push esi
call fcn.0045be70
test eax, eax
je 0x41832d
push eax
lea ecx, [esp + 0x60]
push 0x4857c0
push ecx
call fcn.00403140
mov eax, dword [esp + 0x68]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, ebp
call fcn.0040ae70
movzx edx, word [esp + 0x34]
movzx eax, word [esp + 0x32]
movzx ecx, word [esp + 0x30]
push edx
push eax
push ecx
lea edx, [esp + 0x68]
push str._02d:_02d:_02d__
push edx
call fcn.00403140
mov eax, dword [esp + 0x70]
mov ecx, dword [eax - 0xc]
add esp, 0x14
push ecx
push eax
mov ecx, ebp
call fcn.0040ae70
mov eax, dword [edi + 0x98]
sub eax, dword [edi + 0x88]
push 0
cdq
push 0x6400
push edx
push eax
call fcn.00456390
mov ecx, eax
mov eax, dword [edi + 0x74]
sub eax, dword [edi + 0x70]
mov esi, edx
cdq
push edx
push eax
push esi
push ecx
call fcn.0045be70
mov esi, eax
shr eax, 8
push eax
lea edx, [esp + 0x60]
push 0x4857c8
push edx
mov dword [esp + 0x1c], eax
call fcn.00403140
mov eax, dword [esp + 0x68]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, ebp
call fcn.0040ae70
mov eax, 0x64
sub eax, dword [esp + 0x10]
lea ecx, [esp + 0x5c]
push eax
push str._d____
push ecx
call fcn.00403140
mov eax, dword [esp + 0x68]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, ebp
call fcn.0040ae70
test esi, esi
jne 0x4183f2
xor eax, eax
xor edx, edx
jmp 0x418414
mov edx, dword [esp + 0x1c]
push 0
push 0x6400
push ebx
push edx
call fcn.00456390
push 0
push esi
push edx
push eax
call fcn.0045be70
sub eax, dword [esp + 0x1c]
sbb edx, ebx
mov dword [esp + 0x14], eax
mov eax, edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], edx
push ecx
lea edx, [esp + 0x18]
push edx
sar eax, 0x1f
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
add word [esp + 0x28], 0xf9c0
mov eax, 1
cmp word [esp + 0x2e], ax
jne 0x418452
cmp word [esp + 0x2a], ax
jne 0x418452
cmp word [esp + 0x28], ax
je 0x418490
mov eax, dword [esp + 0x1c]
push 0xc9
push 0x2a69c000
push ebx
push eax
call fcn.0045be70
mov esi, eax
test esi, esi
je 0x418490
push esi
lea ecx, [esp + 0x60]
push 0x4857c0
push ecx
call fcn.00403140
mov eax, dword [esp + 0x68]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ecx, ebp
call fcn.0040ae70
movzx edx, word [esp + 0x34]
movzx eax, word [esp + 0x32]
movzx ecx, word [esp + 0x30]
push edx
push eax
push ecx
lea edx, [esp + 0x68]
push str._02d:_02d:_02d__
push edx
call fcn.00403140
mov eax, dword [esp + 0x70]
mov ecx, dword [eax - 0xc]
add esp, 0x14
push ecx
push eax
mov ecx, ebp
call fcn.0040ae70
test esi, esi
jne 0x4184dc
mov eax, dword [edi + 0x100]
add eax, dword [esp + 0x1c]
mov edx, dword [edi + 0x104]
adc edx, ebx
jmp 0x418504
mov eax, dword [esp + 0x1c]
push 0
push 0x6400
push ebx
push eax
call fcn.00456390
push 0
push esi
push edx
push eax
call fcn.0045be70
add eax, dword [edi + 0x100]
adc edx, dword [edi + 0x104]
mov ecx, edx
mov dword [esp + 0x18], edx
lea edx, [esp + 0x28]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x18]
push eax
sar ecx, 0x1f
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ax, word [esp + 0x28]
cmp ax, word [esp + 0x38]
je 0x41857c
mov dx, word [esp + 0x2a]
cmp dx, word [esp + 0x3a]
je 0x41857c
mov cx, word [esp + 0x2e]
cmp cx, word [esp + 0x3e]
je 0x41857c
movzx esi, word [esp + 0x2c]
movzx ecx, cx
add esi, 1
push esi
push ecx
movzx edx, dx
push edx
movzx eax, ax
push eax
lea ecx, [esp + 0x6c]
push 0x485770
push ecx
call fcn.00403140
mov eax, dword [esp + 0x74]
mov ecx, dword [eax - 0xc]
add esp, 0x18
push ecx
push eax
mov ecx, ebp
call fcn.0040ae70
movzx edx, word [esp + 0x34]
movzx eax, word [esp + 0x32]
movzx ecx, word [esp + 0x30]
push edx
push eax
push ecx
lea edx, [esp + 0x68]
push str._02d:_02d:_02d
push edx
call fcn.00403140
mov eax, dword [esp + 0x70]
mov ecx, dword [eax - 0xc]
add esp, 0x14
push ecx
push eax
mov ecx, ebp
call fcn.0040ae70
cmp dword [edi + 0x6c], 0
jle 0x4185c2
push 0x485808
mov esi, ebp
call fcn.00419030
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x5c]
call fcn.00406bc0
mov eax, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4