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

Disassembly:
push 0xffffffffffffffff
push 0x521300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push 6
push 0x549e78
lea ecx, [esp + 0x24]
call fcn.0048a680
push 6
push 0x549e70
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.0048a680
push 6
push 0x549dc4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.0048a680
push 6
push 0x549e68
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.0048a680
lea ecx, [esp + 8]
mov byte [esp + 0x30], 3
call fcn.0048a5e0
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 4
call fcn.0048a5e0
mov ebx, 5
mov byte [esp + 0x30], bl
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x549e60
call fcn.0048a680
mov ecx, dword [0x55b3dc]
call fcn.004a0490
push 0
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0048a5f0
mov ecx, dword [0x55b3dc]
call fcn.004a0610
push 0
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0048a5f0
mov ecx, dword [0x55b3dc]
call fcn.004a0610
sub esp, 0x10
lea eax, [esp + 0x20]
mov esi, esp
mov dword [esp + 0x30], esp
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.0048a5f0
push esi
call fcn.0049de10
add esp, 4
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x48], 6
call fcn.0048a5f0
mov ecx, dword [0x55b3dc]
mov byte [esp + 0x44], bl
call fcn.004a0690
mov ecx, dword [0x55b3dc]
call fcn.004a0a70
push 0xc8
mov esi, eax
call fcn.00430630
add esp, 4
test si, si
jne 0x40ce58
push 0
push 4
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x549ad8
call fcn.0048a680
push ecx
mov byte [esp + 0x40], 7
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x549e58
call fcn.0048a680
mov ecx, 0x55b3d0
mov byte [esp + 0x40], bl
call fcn.00499670
cmp ax, 4
je 0x40ce62
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x549e50
call fcn.0048a680
push ecx
mov byte [esp + 0x3c], 8
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x549e48
call fcn.0048a680
mov ecx, 0x55b3d0
mov byte [esp + 0x3c], bl
call fcn.0049a060
mov eax, dword [0x549510]
movsx cx, byte [eax]
inc eax
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.0048ac30
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0048a5f0
call fcn.0040e7e0
add esp, 8
test ax, ax
jg 0x40cc7e
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x549ad8
call fcn.0048a680
push ecx
mov byte [esp + 0x40], 9
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x549e40
jmp 0x40ce40
xor esi, esi
movsx eax, si
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x1b4e81b5
shl ecx, 1
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x549e48
call fcn.0048a680
push ecx
mov byte [esp + 0x3c], 0xa
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x549e50
call fcn.0048a680
mov ecx, 0x55b3d0
mov byte [esp + 0x3c], bl
call fcn.0049a060
cmp ax, 2
je 0x40cad1
push 1
call fcn.00430630
add esp, 4
inc esi
cmp si, 0x258
jl 0x40cc80
mov eax, dword [0x549514]
lea ecx, [esp + 8]
movsx dx, byte [eax]
inc eax
push edx
push eax
call fcn.0048ac30
lea eax, [esp + 0xc]
lea edx, [esp + 8]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0048a5f0
call fcn.0040e7e0
add esp, 8
mov esi, 0x258
movsx eax, si
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x1b4e81b5
shl ecx, 1
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x549e48
call fcn.0048a680
push ecx
mov byte [esp + 0x3c], 0xb
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x549e50
call fcn.0048a680
mov ecx, 0x55b3d0
mov byte [esp + 0x3c], bl
call fcn.0049a060
cmp ax, 2
je 0x40cad1
push 1
call fcn.00430630
add esp, 4
inc esi
cmp si, 0x4b0
jl 0x40cd2a
mov eax, dword [0x549518]
movsx cx, byte [eax]
inc eax
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.0048ac30
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0048a5f0
call fcn.0040e7e0
add esp, 8
push 0x64
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x549e48
call fcn.0048a680
push ecx
mov byte [esp + 0x3c], 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x549e50
call fcn.0048a680
mov ecx, 0x55b3d0
mov byte [esp + 0x3c], bl
call fcn.0049a060
push 6
push ebx
lea ecx, [esp + 0x18]
call fcn.0048a9f0
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x549ad8
call fcn.0048a680
push ecx
mov byte [esp + 0x40], 0xd
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x549e38
call fcn.0048a680
mov ecx, 0x55b3d0
mov byte [esp + 0x40], bl
call fcn.00499670
jmp 0x40cad1
cmp si, 1
jne 0x40cad1
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 4
call fcn.0048a720
lea ecx, [esp + 8]
mov byte [esp + 0x30], 3
call fcn.0048a720
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.0048a720
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.0048a720
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call fcn.0048a720
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.0048a720
mov ecx, dword [esp + 0x28]
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret