Function at 0x538e40
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x538e49
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004053dc
xor eax, eax
push ebp
push 0x5390e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00404f5c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 8
call fcn.00404f5c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 4
call fcn.00404f5c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 0x10
call fcn.00404f5c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 0x18
call fcn.00404f5c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov byte [eax + 0x30], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov byte [eax + 0x31], 1
mov ecx, 0x20019
mov dl, 1
mov eax, dword [0x4304dc]
call fcn.0043068c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5390bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x10]
call fcn.00430724
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov edx, 0x539104
call fcn.00405274
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.00430868
test al, al
je 0x538f3c
mov edx, 0x539158
mov eax, dword [ebp - 0x10]
call fcn.004311e4
test al, al
je 0x538f3c
mov edx, 0x539158
mov eax, dword [ebp - 0x10]
call fcn.00431048
dec eax
jne 0x538f3c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov byte [eax + 0x30], 0
mov eax, dword [ebp - 0x10]
call fcn.004306f4
mov edx, 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00430724
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, 0x53916c
call fcn.00405274
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.00430868
test al, al
je 0x5390a5
mov byte [ebp - 9], 1
lea ecx, [ebp - 0x1c]
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00430fbc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00404fb0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 0x2c
mov ecx, dword [ebp - 4]
mov edx, 0x53917c
call fcn.00405274
mov eax, dword [ebp - 0x10]
call fcn.004306f4
push 0x53916c
push dword [ebp - 4]
push 0x5391a0
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004052f0
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.00430868
test al, al
je 0x539093
lea ecx, [ebp - 0x24]
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00430fbc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 8
call fcn.00404fb0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.004d0770
test al, al
je 0x53908b
xor eax, eax
push ebp
push 0x539081
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov dl, 1
mov eax, dword [0x4d05fc]
call fcn.004d0994
mov ebx, eax
lea ecx, [ebp - 0x28]
mov edx, 3
mov eax, ebx
call fcn.004d1228
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 0x18
call fcn.00404fb0
lea ecx, [ebp - 0x2c]
mov edx, 2
mov eax, ebx
call fcn.004d1228
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 0x10
call fcn.00404fb0
mov eax, ebx
call fcn.00403fe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53908b
mov eax, dword [ebp - 0x10]
call fcn.004306f4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 4
mov edx, dword [ebp - 4]
call fcn.00404fb0
jmp 0x5390a9
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5390c6
mov eax, dword [ebp - 0x10]
call fcn.00403fe4
ret