Function at 0x5098c0
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 0x5098c8
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x509b9f
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.0042ab30
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.005097f0
mov eax, dword [ebp - 0x24]
call fcn.0045f6c0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x509b7d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov edx, 0x509bb8
mov eax, dword [ebp - 8]
call fcn.0045d870
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, 0x509bcc
mov eax, dword [ebp - 8]
call fcn.0045da50
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.004069bc
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
mov edx, 0x509be0
mov eax, dword [ebp - 8]
call fcn.0045da50
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.004069bc
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
mov edx, 0x509bf4
mov eax, dword [ebp - 8]
call fcn.0045da50
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
add eax, 0x1c
call fcn.004069bc
mov ecx, 0x14
mov edx, 0x509c0c
mov eax, dword [ebp - 8]
call fcn.0045d8c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x60], eax
lea eax, [ebp - 0x34]
push eax
xor ecx, ecx
mov edx, 0x509c2c
mov eax, dword [ebp - 8]
call fcn.0045da50
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.004069bc
lea eax, [ebp - 0x38]
push eax
xor ecx, ecx
mov edx, 0x509c44
mov eax, dword [ebp - 8]
call fcn.0045da50
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.004069bc
lea eax, [ebp - 0x3c]
push eax
xor ecx, ecx
mov edx, 0x509c5c
mov eax, dword [ebp - 8]
call fcn.0045da50
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.004069bc
lea eax, [ebp - 0x40]
push eax
xor ecx, ecx
mov edx, 0x509c78
mov eax, dword [ebp - 8]
call fcn.0045da50
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004069bc
push 0
push 0
mov edx, 0x509c90
mov eax, dword [ebp - 8]
call fcn.0045d870
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
push 0
push 0
mov edx, 0x509ca4
mov eax, dword [ebp - 8]
call fcn.0045d870
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, 0x509cc0
mov eax, dword [ebp - 8]
call fcn.0045da50
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.004069bc
lea eax, [ebp - 0x48]
push eax
xor ecx, ecx
mov edx, 0x509cd8
mov eax, dword [ebp - 8]
call fcn.0045da50
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
add eax, 0x44
call fcn.004069bc
lea eax, [ebp - 0x4c]
push eax
xor ecx, ecx
mov edx, 0x509cf0
mov eax, dword [ebp - 8]
call fcn.0045da50
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.004069bc
xor ecx, ecx
mov edx, 0x509d04
mov eax, dword [ebp - 8]
call fcn.0045d8c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov edx, 0x509d14
mov eax, dword [ebp - 8]
call fcn.0045d9c0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x509b4b
mov eax, dword [ebp - 0xc]
call fcn.0045d860
dec eax
test eax, eax
jl 0x509b4b
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0045d800
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x509b43
mov dl, 1
mov eax, dword [0x5083ac]
call fcn.00404fbc
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0050a590
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x14]
call fcn.004292e0
inc dword [ebp - 0x18]
dec dword [ebp - 0x20]
jne 0x509b07
mov eax, dword [ebp - 4]
call fcn.0050a1d0
mov eax, dword [ebp - 4]
call fcn.00509580
mov byte [ebp - 0x19], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509b84
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0x19]
mov byte [eax + 0x5d], dl
mov eax, dword [ebp - 8]
call fcn.00404fec
ret