Function at 0x40b260
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x508a8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push esi
push 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], 0
call fcn.0040ad80
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x7c], 1
call fcn.0040ad80
mov ebp, dword [esp + 0x88]
lea ecx, [esp + 0x30]
push ebp
call fcn.0040adc0
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x10]
push eax
call fcn.0040adc0
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7c], 4
call fcn.0040ad80
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 5
call fcn.0040ad80
mov bl, 6
mov byte [esp + 0x78], bl
push 0
lea ecx, [esp + 0x44]
call fcn.0040ad80
sub esp, 8
mov byte [esp + 0x80], 7
mov ecx, esp
mov dword [esp + 0x90], esp
push eax
call fcn.0040adc0
lea ecx, [esp + 0x18]
call fcn.0040aca0
xor ecx, ecx
mov byte [esp + 0x78], bl
test eax, eax
setne cl
mov esi, ecx
lea ecx, [esp + 0x40]
call fcn.0040ae30
test esi, esi
je 0x40b457
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.0040b0f0
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7c], 8
call fcn.0040ade0
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], bl
call fcn.0040ae30
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x5c]
push eax
push ecx
call fcn.0040b050
push eax
lea edx, [esp + 0x40]
lea eax, [esp + 0x60]
push edx
push eax
mov byte [esp + 0x90], 9
call fcn.0040afd0
add esp, 0x18
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 0xa
call fcn.0040ade0
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 9
call fcn.0040ae30
lea ecx, [esp + 0x58]
mov byte [esp + 0x78], bl
call fcn.0040ae30
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040ade0
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call fcn.0040ade0
lea eax, [esp + 0x38]
lea ecx, [esp + 0x20]
push eax
call fcn.0040ade0
lea ecx, [esp + 0x28]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x6c]
push edx
push eax
call fcn.0040b050
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x70]
push ecx
push edx
mov byte [esp + 0x90], 0xb
call fcn.0040afd0
add esp, 0x18
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 0xc
call fcn.0040ade0
lea ecx, [esp + 0x60]
mov byte [esp + 0x78], 0xb
call fcn.0040ae30
mov byte [esp + 0x78], bl
lea ecx, [esp + 0x68]
call fcn.0040ae30
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
call fcn.0040ade0
jmp 0x40b2e9
push 0
lea ecx, [esp + 0x6c]
call fcn.0040ad80
sub esp, 8
mov byte [esp + 0x80], 0xd
mov ecx, esp
mov dword [esp + 0x90], esp
push eax
call fcn.0040adc0
lea ecx, [esp + 0x20]
call fcn.0040aca0
xor ecx, ecx
mov byte [esp + 0x78], bl
test eax, eax
setl cl
mov esi, ecx
lea ecx, [esp + 0x68]
call fcn.0040ae30
test esi, esi
je 0x40b4a9
push ebp
lea ecx, [esp + 0x1c]
call fcn.0040ae60
mov esi, dword [esp + 0x80]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.0040adc0
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 5
call fcn.0040ae30
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 4
call fcn.0040ae30
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], 3
call fcn.0040ae30
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 2
call fcn.0040ae30
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 1
call fcn.0040ae30
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 0
call fcn.0040ae30
mov ecx, dword [esp + 0x70]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x70
ret