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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4aba
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4fca20]
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 eax, dword [0x4fc7ec]
mov edx, dword [eax + 0xc]
mov ebx, ecx
mov ecx, 0x4fc7ec
call edx
add eax, 0x10
mov dword [ebp - 0x2c], eax
xor edi, edi
push edi
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebx + 0x30]
push 0x4d13d4
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0040f3d0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx - 0xc], edi
je 0x450ce0
push ecx
add ecx, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
push ecx
call fcn.004014d8
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 1
call fcn.0044e610
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.004549a0
xor edi, edi
mov edx, dword [0x4fc7ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc7ec
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
push edi
lea ecx, [ebp - 0x28]
push ecx
push 0x4d13b0
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040f3d0
mov eax, dword [ebp - 0x28]
cmp dword [eax - 0xc], edi
je 0x450d40
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
push eax
call fcn.004014d8
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 3
call fcn.0044e610
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00455b60
xor edi, edi
mov eax, dword [0x4fe848]
cmp eax, 8
ja 0x450de2
je 0x450db9
dec eax
je 0x450d8e
dec eax
je 0x450f1b
sub eax, 2
jne 0x450e03
push 0x190
call fcn.0047e06e
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 6
cmp eax, edi
je 0x450f3d
push 4
push esi
mov ecx, eax
call fcn.00468ae0
jmp 0x450f3f
push 0x16c
call fcn.0047e06e
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 5
cmp eax, edi
je 0x450f3d
push 1
push esi
mov ecx, eax
call fcn.00467400
jmp 0x450f3f
push 0x16c
call fcn.0047e06e
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 7
cmp eax, edi
je 0x450f3d
push esi
mov ecx, eax
call fcn.00467350
jmp 0x450f3f
cmp eax, 0x80
je 0x450f1b
cmp eax, 0x100
je 0x450ef9
cmp eax, 0x200
je 0x450eb5
mov edx, dword [0x4fc7ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc7ec
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov ecx, dword [0x4fe848]
push ecx
lea edx, [ebp - 0x30]
push str.type:_d_
push edx
mov byte [ebp - 4], 0xa
call fcn.00401a85
mov esi, dword [ebp - 0x30]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
lea ecx, [ebx + 0x5c]
push esi
call fcn.0040d010
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450e65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450e88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450eae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4511f5
push 0x19c
call fcn.0047e06e
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 9
cmp eax, edi
je 0x450ed7
push esi
mov ecx, eax
call fcn.00466130
jmp 0x450ed9
xor eax, eax
mov ecx, dword [ebx + 4]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [ebx + 0x40], eax
call fcn.00466b60
test eax, eax
jne 0x450f46
mov ecx, dword [ebx + 0x40]
call fcn.00466230
jmp 0x450f46
push 0x190
call fcn.0047e06e
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 8
cmp eax, edi
je 0x450f3d
push esi
mov ecx, eax
call fcn.004643c0
jmp 0x450f3f
push 0x170
call fcn.0047e06e
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
cmp eax, edi
je 0x450f3d
push esi
mov ecx, eax
call fcn.00463fc0
jmp 0x450f3f
xor eax, eax
mov byte [ebp - 4], 2
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x20]
push edx
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov dword [ebp - 0x44], 0x56
call fcn.004815cc
and eax, 0x80000003
jns 0x450f78
dec eax
or eax, 0xfffffffc
inc eax
lea ecx, [eax + eax + 0x16]
mov dword [ebp - 0x24], ecx
call fcn.004815cc
and eax, 0x80000003
jns 0x450f90
dec eax
or eax, 0xfffffffc
inc eax
mov esi, 4
sub esi, eax
call fcn.004815cc
cdq
mov ecx, 0x14
idiv ecx
lea edx, [edx + edx + 0x50]
mov dword [ebp - 0x30], edx
call fcn.004815cc
and eax, 0x80000003
jns 0x450fbc
dec eax
or eax, 0xfffffffc
inc eax
mov edi, 4
sub edi, eax
call fcn.004815cc
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0x14
jge 0x450fe1
xor edi, edi
lea eax, [ecx - 0xe]
xor esi, esi
lea ecx, [edi + 0x16]
jmp 0x451009
cmp edx, 0x28
jge 0x450ff1
mov eax, dword [ebp - 0x44]
xor edi, edi
xor esi, esi
xor ecx, ecx
jmp 0x451009
cmp edx, 0x46
jge 0x451003
xor edi, edi
xor esi, esi
mov eax, 0x88
xor ecx, ecx
jmp 0x451009
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
sub dword [ebp - 0x14], ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0x40]
add dword [ebp - 0x20], edi
sub dword [ebp - 0x18], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0xb4]
push 1
push eax
lea eax, [ebp - 0x20]
push eax
call edx
test eax, eax
jne 0x451093
push 0xd
lea ecx, [ebx + 0x5c]
push str.create_failed
call fcn.0040d010
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451062
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450eae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4511f5
mov edx, dword [0x4fc7ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc7ec
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x4cdb8c
lea ecx, [ebx + 0x30]
mov byte [ebp - 4], 0xb
call fcn.0040f3d0
test eax, eax
je 0x4510df
mov ecx, dword [ebx + 0x40]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x34]
mov edx, dword [edx + 0xb8]
push eax
call edx
mov dword [0x4fe84c], 0
mov eax, dword [0x4fc7ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc7ec
call edx
add eax, 0x10
mov dword [ebp - 0x38], eax
push 0
lea eax, [ebp - 0x38]
push eax
push 0x4d13c8
lea ecx, [ebx + 0x30]
mov byte [ebp - 4], 0xc
call fcn.0040f3d0
test eax, eax
je 0x451126
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0047e5eb
add esp, 4
imul eax, eax, 0x3e8
mov dword [0x4fe84c], eax
cmp dword [0x4fe848], 0x100
jne 0x451161
lea ecx, [ebx + 0x74]
call fcn.00457590
test eax, eax
js 0x451161
push 0x40006
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0xd0
call dword [sym.imp.WINMM.dll_PlaySoundW]
push 1
lea ecx, [ebx + 0x74]
call fcn.004575c0
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x451184
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4511a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4511ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4511f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.0047e4d2
mov esp, ebp
pop ebp
ret