Function at 0x50dac0
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 0x50dac8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405cec
xor eax, eax
push ebp
push 0x50ddfd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005fa304
test al, al
je 0x50dda8
mov eax, dword [ebp - 4]
call fcn.005faa88
cmp edx, 0
jne 0x50db12
cmp eax, 0x14
jae 0x50db18
jmp 0x50dda8
jl 0x50dda8
mov cl, 1
mov dl, 1
mov eax, dword [0x50ca00]
call fcn.004270cc
mov ebx, eax
lea eax, [ebx + 0x44]
mov edx, dword [ebp - 4]
call fcn.0040573c
mov eax, ebx
call fcn.004274e0
xor eax, eax
push ebp
push 0x50dd9e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004dc608
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 8]
call fcn.0040ced0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004dc728
mov ecx, dword [ebp - 0x28]
mov edx, dword [0x604f38]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
call fcn.004059a8
mov eax, dword [ebp - 0x24]
call fcn.005fa304
test al, al
je 0x50db95
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50dda8
push 0
mov eax, dword [0x604f38]
push dword [eax]
push 0x50de10
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.004dc728
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00405a10
mov eax, dword [ebp - 0x2c]
call fcn.0040592c
push eax
mov eax, dword [ebp - 4]
call fcn.0040592c
push eax
call fcn.00407b18
mov eax, dword [ebp - 4]
call fcn.005faa88
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [0x604f38]
push dword [eax]
push 0x50de10
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.004dc728
push dword [ebp - 0x34]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405a10
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0050de28
mov eax, dword [ebp - 0xc]
call fcn.004052e0
cmp eax, 0x14
je 0x50dc3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50dda8
mov eax, dword [ebp - 0xc]
call fcn.005f3308
mov esi, eax
mov eax, 0x90
call fcn.0040bf90
mov ebx, eax
lea eax, [ebx + 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00405064
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00405064
mov word [ebx + 0x1c], si
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004dc608
mov edx, dword [ebp - 0x38]
lea eax, [ebx + 0x50]
call fcn.00405064
lea eax, [ebx + 0x20]
mov edx, 0x50de1c
call fcn.00405064
mov byte [ebx + 0x7c], 0
mov byte [ebx + 0x7e], 0
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.005f1dd8
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.004dc608
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.0040c43c
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 0x30]
call fcn.00405064
mov eax, dword [ebx + 0x30]
call fcn.004052e0
mov edx, eax
sub edx, 7
lea eax, [ebx + 0x30]
mov ecx, 8
call fcn.00405580
lea eax, [ebx + 0x38]
call fcn.00405010
lea eax, [ebx + 0x34]
call fcn.00405010
lea eax, [ebx + 0x3c]
call fcn.00405010
lea eax, [ebx + 0x58]
call fcn.00405010
lea eax, [ebx + 0x4c]
call fcn.00405010
lea eax, [ebx + 0x48]
call fcn.00405010
lea eax, [ebx + 0x54]
call fcn.00405010
lea eax, [ebx + 0x5c]
call fcn.00405010
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x70], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x64], eax
xor eax, eax
mov dword [ebx + 0x68], eax
call fcn.0040ea08
fstp qword [ebx + 0x28]
wait
lea eax, [ebx + 0x44]
call fcn.00405010
lea edx, [ebp - 0x48]
xor eax, eax
call fcn.004f5a44
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 0x40]
call fcn.00405064
mov byte [ebx + 0x7d], 1
mov byte [ebx + 0x7f], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x84], eax
xor edx, edx
mov eax, ebx
call fcn.0050b5f0
mov eax, dword [0x6057d0]
mov eax, dword [eax]
mov edx, ebx
call fcn.0049f414
mov eax, dword [0x605564]
inc dword [eax]
mov eax, ebx
call fcn.00590ff8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50dda8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50de04
lea eax, [ebp - 0x48]
call fcn.00405010
lea eax, [ebp - 0x44]
call fcn.00405700
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00405034
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.00405718
lea eax, [ebp - 0x20]
call fcn.00405010
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405034
lea eax, [ebp - 4]
call fcn.00405700
ret