Function at 0x50b100
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x50b108
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50b3df
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0042ab10
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0050b030
mov eax, dword [ebp - 0x24]
call fcn.00474dd0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x50b3bd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov edx, 0x50b3f8
mov eax, dword [ebp - 8]
call fcn.00472f30
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], edx
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov edx, 0x50b40c
mov eax, dword [ebp - 8]
call fcn.00473160
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.00406970
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
mov edx, 0x50b420
mov eax, dword [ebp - 8]
call fcn.00473160
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.00406970
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
mov edx, 0x50b434
mov eax, dword [ebp - 8]
call fcn.00473160
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
add eax, 0x1c
call fcn.00406970
mov ecx, 0x14
mov edx, 0x50b44c
mov eax, dword [ebp - 8]
call fcn.00472f80
mov edx, dword [ebp - 4]
mov dword [edx + 0x60], eax
lea eax, [ebp - 0x34]
push eax
xor ecx, ecx
mov edx, 0x50b46c
mov eax, dword [ebp - 8]
call fcn.00473160
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.00406970
lea eax, [ebp - 0x38]
push eax
xor ecx, ecx
mov edx, 0x50b484
mov eax, dword [ebp - 8]
call fcn.00473160
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.00406970
lea eax, [ebp - 0x3c]
push eax
xor ecx, ecx
mov edx, 0x50b49c
mov eax, dword [ebp - 8]
call fcn.00473160
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.00406970
lea eax, [ebp - 0x40]
push eax
xor ecx, ecx
mov edx, 0x50b4b8
mov eax, dword [ebp - 8]
call fcn.00473160
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00406970
push 0
push 0
mov edx, 0x50b4d0
mov eax, dword [ebp - 8]
call fcn.00472f30
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
push 0
push 0
mov edx, 0x50b4e4
mov eax, dword [ebp - 8]
call fcn.00472f30
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
lea eax, [ebp - 0x44]
push eax
xor ecx, ecx
mov edx, 0x50b500
mov eax, dword [ebp - 8]
call fcn.00473160
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00406970
lea eax, [ebp - 0x48]
push eax
xor ecx, ecx
mov edx, 0x50b518
mov eax, dword [ebp - 8]
call fcn.00473160
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
add eax, 0x44
call fcn.00406970
lea eax, [ebp - 0x4c]
push eax
xor ecx, ecx
mov edx, 0x50b530
mov eax, dword [ebp - 8]
call fcn.00473160
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00406970
xor ecx, ecx
mov edx, 0x50b544
mov eax, dword [ebp - 8]
call fcn.00472f80
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov edx, 0x50b554
mov eax, dword [ebp - 8]
call fcn.004730d0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x50b38b
mov eax, dword [ebp - 0xc]
call fcn.00472f20
dec eax
test eax, eax
jl 0x50b38b
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00472ec0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x50b383
mov dl, 1
mov eax, dword [0x509b7c]
call fcn.00404fa4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0050be40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x14]
call fcn.00428e10
inc dword [ebp - 0x18]
dec dword [ebp - 0x20]
jne 0x50b347
mov eax, dword [ebp - 4]
call fcn.0050ba80
mov eax, dword [ebp - 4]
call fcn.0050adc0
mov byte [ebp - 0x19], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50b3c4
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0x19]
mov byte [eax + 0x5d], dl
mov eax, dword [ebp - 8]
call fcn.00404fd4
ret