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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x5b89c9
push ecx
xchg dword [ebp - 4], ecx
push ebx
test dl, dl
je 0x5b89e1
add esp, 0xfffffff0
call fcn.00405840
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5b8c98
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5b8cd0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040509c
mov ecx, dword [ebp - 0x14]
mov edx, 0x5b8d0c
mov eax, dword [ebp - 0xc]
call fcn.005e97fc
push 0x5b8cd0
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040509c
mov ecx, dword [ebp - 0x18]
mov edx, 0x5b8d0c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
call fcn.005e97fc
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00485db4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xac], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0xc8], edx
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x5b45a8]
call fcn.005b7230
mov edx, dword [ebp - 4]
mov dword [edx + 0xe4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call fcn.00598130
lea edx, [ebp - 0x1c]
call fcn.00598eb0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.004072b8
mov eax, dword [ebp - 4]
add eax, 0xdc
mov edx, dword [ebp + 0xc]
call fcn.004072b8
lea ecx, [ebp - 0x20]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.005b8194
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.004072b8
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.005b87c8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.004072b8
mov edx, 9
mov eax, dword [ebp - 4]
call fcn.005b81d8
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
lea ecx, [ebp - 0x28]
mov edx, 0xb
mov eax, dword [ebp - 4]
call fcn.005b8194
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.004072b8
mov edx, 0xd
mov eax, dword [ebp - 4]
call fcn.005b81d8
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
lea ecx, [ebp - 0x2c]
mov edx, 0xa
mov eax, dword [ebp - 4]
call fcn.005b8194
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004072b8
mov edx, 0xc
mov eax, dword [ebp - 4]
call fcn.005b81d8
mov edx, dword [ebp - 4]
mov word [edx + 0x30], ax
mov edx, 0x10
mov eax, dword [ebp - 4]
call fcn.005b81d8
mov edx, dword [ebp - 4]
mov word [edx + 0x32], ax
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 4]
movzx edx, word [eax + 0x32]
mov eax, dword [ebp - 4]
call fcn.005b80b8
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
add eax, 0x34
call fcn.004072b8
lea ecx, [ebp - 0x34]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005b8194
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
add eax, 0x94
call fcn.004072b8
lea ecx, [ebp - 0x38]
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.005b8194
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
add eax, 0xe0
call fcn.004072b8
lea ecx, [ebp - 0x3c]
mov edx, 7
mov eax, dword [ebp - 4]
call fcn.005b8194
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
add eax, 0x70
call fcn.004072b8
lea ecx, [ebp - 0x40]
mov edx, 5
mov eax, dword [ebp - 4]
call fcn.005b8194
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
add eax, 0xcc
call fcn.004072b8
mov eax, dword [ebp - 4]
call fcn.005b8330
mov eax, dword [ebp - 4]
call fcn.005b83fc
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc0]
call fcn.00407bbc
mov eax, dword [ebp - 4]
add eax, 0xc4
push eax
mov eax, dword [ebp - 4]
call fcn.005b8218
lea ecx, [ebp - 0x10]
mov edx, dword [ebp + 0x10]
call fcn.0059897c
mov eax, dword [ebp - 4]
add eax, 0xc0
mov edx, dword [ebp - 0x10]
call fcn.00407ba8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xe8], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xec], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b8c9f
lea eax, [ebp - 0x40]
mov edx, 0xc
call fcn.00406f38
lea eax, [ebp - 0x10]
call fcn.00406f20
ret