Function at 0x405780
Capabilities:
Check os version
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x64aca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
push edi
mov esi, ecx
call fcn.005396f0
mov eax, dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [edi + 0x90], esi
mov dword [edi], 0x655b90
mov byte [edi + 0x41], bl
mov dword [edi + 0x94], 0xb4
mov dword [edi + 0x98], eax
mov ecx, dword [esi + 0x82c]
mov edx, dword [ecx + 0x24]
push 0x15
mov esi, 0xf
push str.DelayLoad_AwardScreen
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00404330
mov byte [esp + 0x38], 1
mov eax, dword [0x6a9f38]
mov ecx, dword [eax + 0x634]
lea eax, [esp + 0x14]
call fcn.00513140
mov ebp, 0x10
mov byte [esp + 0x38], bl
cmp dword [esp + 0x2c], ebp
jb 0x405834
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0061c19a
add esp, 4
mov eax, dword [edi + 0x98]
cmp eax, 1
jne 0x405903
push 0x15
push str.DelayLoad_Background6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00404330
mov byte [esp + 0x38], 2
mov edx, dword [0x6a9f38]
mov ecx, dword [edx + 0x634]
lea eax, [esp + 0x14]
call fcn.00513140
mov byte [esp + 0x38], bl
cmp dword [esp + 0x2c], ebp
jb 0x405890
mov eax, dword [esp + 0x18]
push eax
call fcn.0061c19a
add esp, 4
push 0x14
push str.DelayLoad_ZombieNote
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00404330
mov byte [esp + 0x38], 3
mov ecx, dword [0x6a9f38]
mov ecx, dword [ecx + 0x634]
lea eax, [esp + 0x14]
call fcn.00513140
mov byte [esp + 0x38], bl
cmp dword [esp + 0x2c], ebp
jb 0x4058dd
mov edx, dword [esp + 0x18]
push edx
call fcn.0061c19a
add esp, 4
push 0x11
push str.DelayLoad_Credits
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00404330
mov byte [esp + 0x38], 4
jmp 0x4059c7
cmp eax, 2
jne 0x4059fb
push 0x15
push str.DelayLoad_Background1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00404330
mov byte [esp + 0x38], 5
mov edx, dword [0x6a9f38]
mov ecx, dword [edx + 0x634]
lea eax, [esp + 0x14]
call fcn.00513140
mov byte [esp + 0x38], bl
cmp dword [esp + 0x2c], ebp
jb 0x405959
mov eax, dword [esp + 0x18]
push eax
call fcn.0061c19a
add esp, 4
push 0x14
push str.DelayLoad_ZombieNote
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00404330
mov byte [esp + 0x38], 6
mov ecx, dword [0x6a9f38]
mov ecx, dword [ecx + 0x634]
lea eax, [esp + 0x14]
call fcn.00513140
mov byte [esp + 0x38], bl
cmp dword [esp + 0x2c], ebp
jb 0x4059a6
mov edx, dword [esp + 0x18]
push edx
call fcn.0061c19a
add esp, 4
push 0x18
push str.DelayLoad_ZombieNoteHelp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00404330
mov byte [esp + 0x38], 7
mov eax, dword [0x6a9f38]
mov ecx, dword [eax + 0x634]
lea eax, [esp + 0x14]
call fcn.00513140
mov byte [esp + 0x38], bl
cmp dword [esp + 0x2c], ebp
jb 0x405ca2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0061c19a
add esp, 4
jmp 0x405ca2
mov edx, dword [edi + 0x90]
cmp dword [edx + 0x7f8], ebx
jne 0x405ca2
mov eax, dword [esp + 0x44]
cmp eax, 0xa
jne 0x405ab0
push str.DelayLoad_Background1
lea ecx, [esp + 0x18]
call fcn.00404450
mov byte [esp + 0x38], 8
mov eax, dword [0x6a9f38]
mov ecx, dword [eax + 0x634]
lea eax, [esp + 0x14]
call fcn.00513140
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00404420
push str.DelayLoad_ZombieNote
lea ecx, [esp + 0x18]
call fcn.00404450
mov byte [esp + 0x38], 9
mov ecx, dword [0x6a9f38]
mov ecx, dword [ecx + 0x634]
lea eax, [esp + 0x14]
call fcn.00513140
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00404420
push str.DelayLoad_ZombieNote1
lea ecx, [esp + 0x18]
call fcn.00404450
mov byte [esp + 0x38], 0xa
mov edx, dword [0x6a9f38]
mov ecx, dword [edx + 0x634]
lea eax, [esp + 0x14]
call fcn.00513140
jmp 0x405c95
cmp eax, 0x14
jne 0x405b27
push str.DelayLoad_Background2
lea ecx, [esp + 0x18]
call fcn.00404450
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x3c], 0xb
call fcn.00513120
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00404420
push str.DelayLoad_ZombieNote
lea ecx, [esp + 0x18]
call fcn.00404450
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x3c], 0xc
call fcn.00513120
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00404420
push str.DelayLoad_ZombieNote2
lea ecx, [esp + 0x18]
call fcn.00404450
mov byte [esp + 0x38], 0xd
jmp 0x405c88
cmp eax, 0x1e
jne 0x405b9e
push str.DelayLoad_Background1
lea ecx, [esp + 0x18]
call fcn.00404450
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x3c], 0xe
call fcn.00513120
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00404420
push str.DelayLoad_ZombieNote
lea ecx, [esp + 0x18]
call fcn.00404450
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x3c], 0xf
call fcn.00513120
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00404420
push str.DelayLoad_ZombieNote3
lea ecx, [esp + 0x18]
call fcn.00404450
mov byte [esp + 0x38], 0x10
jmp 0x405c88
cmp eax, 0x28
jne 0x405c12
push str.DelayLoad_Background2
lea ecx, [esp + 0x18]
call fcn.00404450
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x3c], 0x11
call fcn.00513120
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00404420
push str.DelayLoad_ZombieNote
lea ecx, [esp + 0x18]
call fcn.00404450
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x3c], 0x12
call fcn.00513120
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00404420
push str.DelayLoad_ZombieNote4
lea ecx, [esp + 0x18]
call fcn.00404450
mov byte [esp + 0x38], 0x13
jmp 0x405c88
cmp eax, 0x32
jne 0x405ca2
push str.DelayLoad_Background1
lea ecx, [esp + 0x18]
call fcn.00404450
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x3c], 0x14
call fcn.00513120
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00404420
push str.DelayLoad_ZombieNote
lea ecx, [esp + 0x18]
call fcn.00404450
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x3c], 0x15
call fcn.00513120
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00404420
push str.DelayLoad_ZombieFinalNote
lea ecx, [esp + 0x18]
call fcn.00404450
mov byte [esp + 0x38], 0x16
lea edx, [esp + 0x14]
push edx
call fcn.00513120
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00404420
push 0x130
call fcn.0061c130
add esp, 4
cmp eax, ebx
je 0x405cbe
push 0x64
mov esi, eax
call fcn.00447c60
jmp 0x405cc0
xor eax, eax
mov dword [edi + 0x88], eax
jmp 0x7bb404