Function at 0x5a8038
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x5a8040
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5a832c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 4]
call fcn.0040d89c
test al, al
je 0x5a8075
mov ecx, esi
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.005a8934
jmp 0x5a80a6
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00403430
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0040ddb8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x5a8348
call fcn.00406820
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005a8934
push 1
mov ecx, 0x5a8378
mov edx, 0x5a83c4
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
mov byte [ebx + 0x14], al
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x5a83d8
mov edx, 0x5a83c4
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x18]
call fcn.0040634c
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x5a8408
mov edx, 0x5a83c4
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x1c]
call fcn.0040634c
push 0x5a843c
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x5a8474
mov edx, 0x5a83c4
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x20]
call fcn.0040634c
push 0x5a84a0
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x5a8518
mov edx, 0x5a8570
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0040634c
push 0x5a8594
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x5a8604
mov edx, 0x5a8570
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x28]
call fcn.0040634c
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x5a865c
mov edx, 0x5a8570
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 0x2c]
call fcn.0040634c
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x5a86b8
mov edx, 0x5a8570
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 0x30]
call fcn.0040634c
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x5a8718
mov edx, 0x5a872c
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x34]
call fcn.0040634c
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x5a8744
mov edx, 0x5a872c
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x38]
call fcn.0040634c
push 1
mov ecx, 0x5a8758
mov edx, 0x5a872c
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
mov byte [ebx + 0x3c], al
push 0x5a8790
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x5a87a8
mov edx, 0x5a872c
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 0x40]
call fcn.0040634c
push 0
mov ecx, 0x5a87cc
mov edx, 0x5a87fc
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
mov byte [ebx + 0x44], al
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x5a8818
mov edx, 0x5a87fc
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x38]
mov edx, 0xf
call fcn.0040d3e8
mov dword [ebx + 0x48], eax
push 0
mov ecx, 0x5a8840
mov edx, 0x5a8868
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
mov byte [ebx + 0x4c], al
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x5a8888
mov edx, 0x5a8868
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 0x50]
call fcn.0040634c
push 0
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x5a88b4
mov edx, 0x5a8868
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x40]
lea eax, [ebx + 0x54]
call fcn.0040634c
push 0
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x5a88e4
mov edx, 0x5a8868
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x58]
call fcn.0040634c
push 0
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x5a890c
mov edx, 0x5a8868
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 0x5c]
call fcn.0040634c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a8333
lea eax, [ebp - 0x48]
mov edx, 0x12
call fcn.00406344
ret