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

Disassembly:
push 0xffffffffffffffff
push 0x5c6518
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x669f00]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x669f00]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
call 0xbdc1e4
xor ebx, ebx
mov dword [esp + 0x54], ebx
call fcn.00b323b4
mov ebp, eax
mov ecx, ebp
call fcn.00b316f4
mov ebp, dword [ebp]
mov edi, eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x38], ax
mov eax, dword [esp + 0x5c]
push eax
lea ecx, [esp + 0x34]
push 0x5ef2f8
push ecx
call 0xc7621f
add esp, 0xc
push 0x5f1614
lea ecx, [esp + 0x18]
call 0xbdd384
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 1
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
mov ecx, dword [esi + 4]
push ebx
push edi
push ecx
lea ecx, [esp + 0x20]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf95f4
push 0x5f1604
lea ecx, [esp + 0x18]
call 0xbdd384
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 2
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
mov ecx, dword [esi + 8]
push ebx
push edi
push ecx
lea ecx, [esp + 0x20]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf95f4
push 0x5f15f4
lea ecx, [esp + 0x18]
call 0xbdd384
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 3
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
mov ecx, dword [esi + 0xc]
push ebx
push edi
push ecx
lea ecx, [esp + 0x20]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf95f4
push 0x5f15e4
lea ecx, [esp + 0x18]
call 0xbdd384
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 4
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
mov ecx, dword [esi + 0x10]
push ebx
push edi
push ecx
lea ecx, [esp + 0x20]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf95f4
push 0x5f15d8
lea ecx, [esp + 0x18]
call 0xbdd384
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 5
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
mov ecx, dword [esi + 0xf4]
push ebx
push edi
push ecx
lea ecx, [esp + 0x20]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf95f4
push 0x5f15cc
lea ecx, [esp + 0x18]
call 0xbdd384
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 6
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
mov ecx, dword [esi + 0xf8]
push ebx
push edi
push ecx
lea ecx, [esp + 0x20]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf95f4
push 0x5f15b8
lea ecx, [esp + 0x18]
call 0xbdd384
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 7
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
movzx ecx, byte [esi + 0xfc]
push ebx
push edi
push ecx
lea ecx, [esp + 0x20]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf95f4
push 0x5f15a8
lea ecx, [esp + 0x18]
call 0xbdd384
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 8
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
push ebx
movzx ecx, byte [esi + 0xfd]
push edi
push ecx
lea ecx, [esp + 0x20]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf95f4
push 0x5f1598
lea ecx, [esp + 0x18]
call 0xbdd384
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 9
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
movzx ecx, byte [esi + 0xf0]
push ebx
push edi
push ecx
lea ecx, [esp + 0x20]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf95f4
push 0x5f1588
lea ecx, [esp + 0x18]
call 0xbdd384
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0xa
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
push ebx
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
call 0xbdc5b4
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 0xb
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0xbdc1f4
mov ecx, ebp
mov byte [esp + 0x64], bl
call 0xbf91d4
push 0x5f157c
lea ecx, [esp + 0x18]
call 0xbdd384
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0xc
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
push ebx
push edi
push ecx
lea eax, [esi + 0xc8]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call 0xbdc5b4
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 0xd
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0xbdc1f4
mov ecx, ebp
mov byte [esp + 0x64], bl
call 0xbf91d4
push 0x5f1570
lea ecx, [esp + 0x18]
call 0xbdd384
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0xe
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
push ebx
push edi
push ecx
lea eax, [esi + 0xcc]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call 0xbdc5b4
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 0xf
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0xbdc1f4
mov ecx, ebp
mov byte [esp + 0x64], bl
call 0xbf91d4
push 0x5f1560
lea ecx, [esp + 0x18]
call 0xbdd384
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0x10
call 0xbdd6b4
mov byte [esp + 0x54], bl
lea ecx, [esp + 0x18]
call 0xbdc714
push ebx
push edi
push ecx
lea eax, [esi + 0xd0]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call 0xbdc5b4
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 0x11
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0xbdc1f4
mov ecx, ebp
mov byte [esp + 0x64], bl
call 0xbf91d4
push 0x5f154c
lea ecx, [esp + 0x18]
call 0xbdd384
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0x12
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
push ebx
push edi
push ecx
lea eax, [esi + 0xd4]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call 0xbdc5b4
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 0x13
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0xbdc1f4
mov ecx, ebp
mov byte [esp + 0x64], bl
call 0xbf91d4
push 0x5f1540
lea ecx, [esp + 0x18]
call 0xbdd384
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0x14
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
push ebx
push edi
push ecx
lea eax, [esi + 0xd8]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call 0xbdc5b4
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 0x15
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0xbdc1f4
mov ecx, ebp
mov byte [esp + 0x64], bl
call 0xbf91d4
push 0x5f1530
lea ecx, [esp + 0x18]
call 0xbdd384
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0x16
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
push ebx
push edi
push ecx
lea eax, [esi + 0xdc]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call 0xbdc5b4
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 0x17
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0xbdc1f4
mov ecx, ebp
mov byte [esp + 0x64], bl
call 0xbf91d4
push 0x5f1524
lea ecx, [esp + 0x18]
call 0xbdd384
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0x18
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
push ebx
push edi
push pe_nt_image_headers32
lea eax, [esi + 0x20]
push eax
lea ecx, [esp + 0x24]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf9304
push 0x5f1514
lea ecx, [esp + 0x18]
call 0xbdd384
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0x19
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
push ebx
push edi
push 4
lea eax, [esi + 0x18]
push eax
lea ecx, [esp + 0x24]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf9304
push 0x5f150c
lea ecx, [esp + 0x18]
call 0xbdd384
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0x1a
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
push ebx
push edi
push 4
lea eax, [esi + 0x1c]
push eax
lea ecx, [esp + 0x24]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf9304
push 0x5f1500
lea ecx, [esp + 0x18]
call 0xbdd384
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0x1b
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
push ebx
push edi
push 0x64
lea eax, [esi + 0x60]
push eax
lea ecx, [esp + 0x24]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf9304
push 0x5f14ec
lea ecx, [esp + 0x18]
call 0xbdd384
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call 0xbdc1f4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0x1c
call 0xbdd6b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call 0xbdc714
push ebx
push edi
push 4
lea eax, [esi + 0x100]
push eax
lea ecx, [esp + 0x24]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf9304
mov eax, dword [esi + 0xe4]
cmp eax, ebx
jne 0xb20cac
mov dword [esp + 0x18], ebx
jmp 0xb20cbb
mov ecx, dword [esi + 0xe8]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x18], ecx
push 0x5f14d4
lea ecx, [esp + 0x18]
call 0xbdd384
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x28]
call 0xbdc1f4
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0x1d
call 0xbdd6b4
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], bl
call 0xbdc714
mov eax, dword [esp + 0x18]
push ebx
push edi
push eax
lea ecx, [esp + 0x20]
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call 0xbdc1f4
mov ecx, ebp
call 0xbf95f4
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov word [esp + 0x44], bx
mov dword [esp + 0x24], ebx
jle 0xb20e2e
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x40]
push 0x5ef2f8
push edx
call 0xc7621f
add esp, 0xc
push 0x5f14c4
lea ecx, [esp + 0x18]
call 0xbdd384
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
call 0xbdc1f4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0x1e
call 0xbdd6b4
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call 0xbdc714
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x20]
call 0xbdc1f4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0x1f
call 0xbdd6b4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], bl
call 0xbdc714
mov eax, dword [esi + 0xe4]
cmp eax, ebx
push ebx
push edi
je 0xb20dd4
mov ecx, dword [esi + 0xe8]
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x2c], ecx
jb 0xb20dd9
call 0xc760de
mov ecx, dword [esi + 0xe4]
mov edx, dword [esp + 0x2c]
push ecx
lea eax, [ecx + edx*4]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call 0xbdc5b4
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 0x20
call 0xbdc2b4
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call 0xbdc1f4
mov ecx, ebp
mov byte [esp + 0x64], bl
call 0xbf91d4
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
jl 0xb20d36
mov eax, dword [esp + 0x60]
push eax
push edi
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x5ef1e0
call 0xbdc1f4
mov ecx, ebp
call 0xbf95f4
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], 0xffffffff
call 0xbdc714
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call 0xc75ce0
add esp, 0x44
ret 8