Function at 0x5b1ea4
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x5b1eac
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404e1c
xor eax, eax
push ebp
push 0x5b2548
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5b2511
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x437ec8]
call fcn.00437f78
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x5b2560
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
add eax, 8
call fcn.004049b0
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x5b2580
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.004049b0
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x5b2594
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.004049b0
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x5b25a8
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.004049b0
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x5b25c4
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
add eax, 0x1c
call fcn.004049b0
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x5b25e0
mov edx, 0x5b25fc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.004049b0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
setne al
push eax
mov ecx, 0x5b260c
mov edx, 0x5b25fc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov ebx, eax
push 0
mov ecx, 0x5b262c
mov edx, 0x5b25fc
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x10]
mov byte [ebp - 0x19], al
test bl, bl
je 0x5b203b
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x5b2654
mov edx, 0x5b25fc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
add eax, 0x24
mov ecx, 0x5b2670
call fcn.00404c78
jmp 0x5b209d
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x5b2654
mov edx, 0x5b25fc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.004049b0
cmp byte [ebp - 0x19], 0
je 0x5b209d
mov eax, dword [ebp - 4]
push dword [eax + 0x24]
push 0x5b2684
call fcn.0040c8c8
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x40]
mov eax, 0x5b2690
call fcn.004e1150
push dword [ebp - 0x40]
mov eax, dword [ebp - 4]
add eax, 0x24
mov edx, 3
call fcn.00404cec
lea edx, [ebp - 0x48]
mov eax, 3
call fcn.00409ee4
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x5b26a4
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x44]
call fcn.0040a020
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
lea edx, [ebp - 0x50]
mov eax, 0x1e
call fcn.00409ee4
mov eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x5b26c4
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x4c]
call fcn.0040a020
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
push 0x5b26e4
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x5b26f0
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
lea edx, [ebp - 0x58]
mov eax, 0x668a0
call fcn.00409ee4
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x5b2700
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x54]
call fcn.0040a020
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
push 0
mov ecx, 0x5b2714
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 4]
mov byte [edx + 0x79], al
push 0x5b272c
lea eax, [ebp - 0x5c]
push eax
mov ecx, 0x5b2738
mov edx, 0x5b2750
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x5c]
mov edx, 0x5b272c
call fcn.00404d78
mov eax, dword [0x5c3988]
sete byte [eax]
xor eax, eax
push ebp
push 0x5b21c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.0040a020
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b21d6
push 0
mov ecx, 0x5b2768
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
push 0xea60
mov ecx, 0x5b2780
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
push 0
mov ecx, 0x5b2798
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
push 1
mov ecx, 0x5b27b4
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 4]
mov byte [edx + 0x31], al
push 0
mov ecx, 0x5b27c8
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
push 0
mov ecx, 0x5b27dc
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 4]
mov byte [edx + 0x44], al
push 0
lea eax, [ebp - 0x60]
push eax
mov ecx, 0x5b27f4
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.004049b0
push 0
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x5b280c
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 4]
add eax, 0x4c
call fcn.004049b0
push 0
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x5b2820
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
add eax, 0x54
call fcn.004049b0
push 0
lea eax, [ebp - 0x6c]
push eax
mov ecx, 0x5b2838
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
add eax, 0x64
call fcn.004049b0
push 0
mov ecx, 0x5b284c
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 4]
mov byte [edx + 0x50], al
push 0
mov ecx, 0x5b2860
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 4]
mov byte [edx + 0x68], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
sub al, 2
jb 0x5b2352
je 0x5b23d9
jmp 0x5b245d
push 1
mov ecx, 0x5b287c
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 4]
mov byte [edx + 0x69], al
push 1
mov ecx, 0x5b2898
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 4]
mov byte [edx + 0x6a], al
push 1
mov ecx, 0x5b28b4
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 4]
mov byte [edx + 0x6b], al
push 0
mov ecx, 0x5b28c8
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 4]
mov byte [edx + 0x6c], al
push 0
mov ecx, 0x5b28e4
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 4]
mov byte [edx + 0x6d], al
jmp 0x5b2471
push 0
mov ecx, 0x5b287c
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 4]
mov byte [edx + 0x69], al
push 0
mov ecx, 0x5b2898
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 4]
mov byte [edx + 0x6a], al
push 0
mov ecx, 0x5b28b4
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 4]
mov byte [edx + 0x6b], al
push 1
mov ecx, 0x5b28c8
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 4]
mov byte [edx + 0x6c], al
push 1
mov ecx, 0x5b28e4
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 4]
mov byte [edx + 0x6d], al
jmp 0x5b2471
mov ecx, 0x422
mov edx, 0x5b2908
mov eax, 0x5b2948
call fcn.004048b8
push 0
mov ecx, 0x5b2988
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 4]
mov byte [edx + 0x78], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x6d], 2
jne 0x5b24fb
push 0x5b29a8
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x5b29b4
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x5b29dc
mov edx, 0x5b2574
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
push 0
mov eax, 0x5b2a04
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 0x14]
call fcn.004dfa94
push 0
mov eax, 0x5b2a04
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x74]
mov eax, dword [ebp - 0x18]
call fcn.004dfa94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b2518
lea eax, [ebp - 0xc]
call fcn.00410480
ret