Function at 0x47ebcc
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x47ef14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc
call fcn.0047ea18
mov dl, 2
mov eax, esi
call fcn.0045787c
mov edi, eax
mov ebx, edi
push 1
push 0
mov eax, ebx
mov cl, 1
mov dl, 1
call fcn.0045a4b8
mov eax, 0x18
call fcn.0047ea88
push eax
mov eax, ebx
call fcn.00459354
mov edx, 4
pop ecx
call fcn.00456224
mov eax, ebx
xor edx, edx
call fcn.00458d8c
mov eax, ebx
mov edx, 1
call fcn.00458d40
mov eax, esi
call fcn.0045945c
mov edx, eax
sub edx, 2
mov eax, ebx
call fcn.00458ddc
mov eax, 0x32
call fcn.0047ea2c
mov edx, eax
dec edx
mov eax, ebx
call fcn.00458e20
mov eax, ebx
mov edx, 0xffffff
call fcn.00458e4c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
push 0x4863e8
mov eax, ebx
mov edx, 3
call fcn.004586d0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
push 0x482bd4
mov eax, ebx
call fcn.004592f8
push 0
push 0xffffffffffffffff
mov ecx, edi
mov edx, dword [0x47e748]
xor eax, eax
call fcn.0047ffd8
mov esi, eax
mov dword [ebx + 0xee], esi
mov dword [esi + 0x44], 0xffe7edf1
movzx eax, byte [0x47ef24]
mov byte [esi + 0x43], al
xor edx, edx
mov eax, edi
call fcn.0045714c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ebx, eax
push 1
push 0
mov cl, 1
xor edx, edx
mov eax, ebx
call fcn.0045a4b8
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
mov edx, dword [0x47e748]
xor eax, eax
call fcn.0047ffd8
mov esi, eax
mov dword [ebx + 0xee], esi
lea edx, [ebp - 8]
mov eax, 0x47ef34
call fcn.0047eaa0
mov edx, dword [ebp - 8]
mov eax, esi
xor ecx, ecx
call fcn.00480050
mov eax, dword [ebx + 0x30]
call fcn.00458dc0
mov edx, dword [esi + 0x3c]
sub eax, dword [edx + 0x18]
push eax
mov eax, 0xf
call fcn.0047ea18
pop edx
sub edx, eax
mov eax, ebx
call fcn.00458d40
mov eax, 0xc
call fcn.0047ea2c
mov edx, eax
mov eax, ebx
call fcn.00458d8c
mov eax, 0x19
call fcn.0047ea18
mov edx, eax
mov eax, ebx
call fcn.00458ddc
mov eax, 0x19
call fcn.0047ea2c
mov edx, eax
mov eax, ebx
call fcn.00458e20
mov edx, dword [ebx + 0x28]
or edx, 0x20
mov eax, ebx
call fcn.00458790
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
push 0x4817ac
mov eax, ebx
call fcn.004599bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
push 0x48351c
mov eax, ebx
call fcn.004592f8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
push 0x482938
mov eax, ebx
call fcn.00459d54
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
push 0x482948
mov eax, ebx
call fcn.00459d7c
mov dl, 2
mov eax, edi
call fcn.0045787c
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 0x70], ebx
mov eax, dword [ebp + 8]
mov eax, ebx
mov ebx, eax
push 1
push 0
mov cl, 1
mov dl, 1
mov eax, ebx
call fcn.0045a4b8
lea edx, [ebp - 0xc]
mov eax, 0x1f
call fcn.0047e8f0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004588ac
mov eax, 0xc
call fcn.0047ea18
mov edx, eax
mov eax, ebx
call fcn.00458d40
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
push 0x4863e8
mov edx, 3
mov eax, ebx
call fcn.004586d0
push 0
push 0xffffffffffffffff
mov eax, dword [ebx + 0x30]
xor edx, edx
call fcn.00458f08
mov ecx, eax
mov edx, dword [0x47e748]
xor eax, eax
call fcn.0047ffd8
mov esi, eax
mov dword [ebx + 0xee], esi
lea edx, [ebp - 0x10]
mov eax, 0x47ef54
call fcn.0047eaa0
mov edx, dword [ebp - 0x10]
mov eax, esi
xor ecx, ecx
call fcn.00480050
mov eax, dword [ebp - 4]
call fcn.00458d28
push eax
mov eax, ebx
call fcn.00458d28
pop edx
sub edx, eax
mov eax, ebx
call fcn.00458ddc
mov eax, 8
call fcn.0047ea2c
mov edx, eax
mov eax, dword [esi + 0x3c]
add edx, dword [eax + 0x1c]
mov eax, ebx
call fcn.00458e20
mov eax, dword [ebx + 0x30]
call fcn.00459440
push eax
mov eax, ebx
call fcn.00458e04
pop edx
sub edx, eax
sar edx, 1
jns 0x47eecb
adc edx, 0
mov eax, ebx
call fcn.00458d8c
mov edx, dword [ebx + 0x28]
or edx, 0x20
mov eax, ebx
call fcn.00458790
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
push 0x483234
mov eax, ebx
call fcn.004592f8
mov eax, ebx
call fcn.00458dc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ef1b
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040705c
ret