Function at 0x402b80
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427c92
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x43400c]
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 ebx, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
xor ecx, ecx
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 7
mov word [ebx + 0x10], cx
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x5c], 7
mov word [ebx + 0x48], ax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], 7
mov word [ebx + 0x60], ax
mov byte [ebp - 4], 2
lea edi, [ebx + 0x78]
mov dword [ebp - 0x30], edi
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.0040c454
mov dword [edi], eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
lea ecx, [edi + 0x14]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
push 2
push 0x430188
mov byte [ebp - 4], 5
call fcn.004094c0
mov byte [edi + 0x2c], 0
mov byte [ebp - 4], 6
lea esi, [ebx + 0x28]
mov dword [ebx + 8], 0
mov dword [ebx], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 4], 0
push 0x68
mov dword [esi], 0x64
mov byte [ebx + 0x2c], 0
mov dword [ebx + 0x30], 8
mov dword [ebx + 0x34], 3
mov byte [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0xffffffff
mov dword [ebx + 0x40], 0xc0
mov dword [ebx + 0x44], 2
call fcn.004102ca
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
push esi
call fcn.00401290
push 7
push str.max_fps
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004094c0
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.0040b8a4
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x402d0e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402d04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031e9
push edx
push ecx
call fcn.004103f8
add esp, 8
push 0x64
call fcn.004102ca
mov esi, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x2c], esi
lea eax, [ebx + 0x10]
mov dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xf
mov byte [esi + 0x10], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0xf
mov byte [esi + 0x2c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xf
mov byte [esi + 0x48], 0
push 0xb
push str.work_folder
mov dword [esi + 8], 0
mov word [esi + 0xc], 0
mov dword [esi + 0x44], 0
mov word [esi + 0x60], 0
mov dword [esi], vtable.ini_wstring.0
mov dword [esi + 4], eax
call fcn.004094c0
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
mov ecx, edi
call fcn.0040b8a4
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x402de9
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402ddf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031ee
push edx
push ecx
call fcn.004103f8
add esp, 8
push 0x68
call fcn.004102ca
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebx + 0x30]
push ecx
mov ecx, eax
call fcn.00401290
push 7
push str.palette
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004094c0
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
mov ecx, edi
call fcn.0040b8a4
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x402e6c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402e62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031f3
push edx
push ecx
call fcn.004103f8
add esp, 8
push 0x68
call fcn.004102ca
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebx + 0x2c]
push ecx
mov ecx, eax
call fcn.00401210
push 6
push str.dither
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004094c0
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push eax
mov ecx, edi
call fcn.0040b8a4
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x402eef
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402ee5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031f8
push edx
push ecx
call fcn.004103f8
add esp, 8
push 0x64
call fcn.004102ca
mov esi, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x2c], esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xf
mov byte [esi + 0x10], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0xf
mov byte [esi + 0x2c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xf
mov byte [esi + 0x48], 0
push 0xb
push str.window_rect
mov dword [esi + 8], 0
mov word [esi + 0xc], 0
mov dword [esi + 0x44], 0
mov word [esi + 0x60], 0
mov dword [esi], vtable.ini_rect.0
mov dword [esi + 4], ebx
call fcn.004094c0
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
mov ecx, edi
call fcn.0040b8a4
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x402fc7
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402fbd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031fd
push edx
push ecx
call fcn.004103f8
add esp, 8
push 0x68
call fcn.004102ca
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebx + 0x34]
push ecx
mov ecx, eax
call fcn.00401290
push 9
push str.countdown
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004094c0
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
push eax
mov ecx, edi
call fcn.0040b8a4
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40304a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403040
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403202
push edx
push ecx
call fcn.004103f8
add esp, 8
push 0x68
call fcn.004102ca
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebx + 0x38]
push ecx
mov ecx, eax
call fcn.00401210
push 0xc
push str.lazy_cleanup
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004094c0
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xd
push eax
mov ecx, edi
call fcn.0040b8a4
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4030cd
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4030c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403207
push edx
push ecx
call fcn.004103f8
add esp, 8
push 0x68
call fcn.004102ca
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebx + 0x40]
push ecx
mov ecx, eax
call fcn.00401290
push 0xb
push str.hotkey_vkey
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004094c0
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xe
push eax
mov ecx, edi
call fcn.0040b8a4
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x403150
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403146
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40320c
push edx
push ecx
call fcn.004103f8
add esp, 8
push 0x68
call fcn.004102ca
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebx + 0x44]
push ecx
mov ecx, eax
call fcn.00401290
push 0xb
push str.hotkey_mods
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004094c0
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xf
push eax
mov ecx, edi
call fcn.0040b8a4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4031cb
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4031c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403211
push edx
push ecx
call fcn.004103f8
add esp, 8
mov eax, ebx
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.004102b9
mov esp, ebp
pop ebp
ret
call fcn.00413f74
call fcn.00413f74
call fcn.00413f74
call fcn.00413f74
call fcn.00413f74
call fcn.00413f74
call fcn.00413f74
call fcn.00413f74
call fcn.00413f74
int3