Function at 0x4e8d30
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x592174]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], esi
call fcn.004e8950
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
add eax, 0xfffffc0c
push ebx
mov ecx, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x40], eax
call fcn.004dfa70
add edi, 0x3f4
mov eax, ebx
add eax, 0x3f4
mov dword [ebp - 0x2c], edi
add esi, 0x28
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], esi
lea ecx, [edi + 0x98]
mov dword [ebp - 0x30], ecx
lea ebx, [eax + 0x28]
lea ecx, [edi + 0x78]
mov dword [ebp - 0x24], ecx
lea ecx, [edi + 0x60]
mov dword [ebp - 0x20], ecx
lea ecx, [edi + 0x48]
mov dword [ebp - 0x1c], ecx
lea ecx, [edi + 0x30]
mov dword [ebp - 0x18], ecx
lea ecx, [edi + 0x18]
mov dword [ebp - 0x14], ecx
nop word [eax + eax]
push dword [ebp - 0x28]
mov ecx, eax
call fcn.004e1790
test al, al
je 0x4e8f3c
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
je 0x4e8e0e
cmp dword [ebx - 0x14], 8
mov eax, ecx
jb 0x4e8e03
mov eax, dword [ecx]
push dword [ebx - 0x18]
mov ecx, edi
push eax
call fcn.00418820
mov ecx, dword [ebp - 0x14]
lea eax, [ebx - 0x10]
cmp ecx, eax
je 0x4e8e2b
cmp dword [ebx + 4], 8
lea eax, [ebx - 0x10]
jb 0x4e8e23
mov eax, dword [eax]
push dword [ebx]
push eax
call fcn.00418820
mov ecx, dword [ebp - 0x18]
lea eax, [ebx + 8]
cmp ecx, eax
je 0x4e8e46
cmp dword [ebx + 0x1c], 8
jb 0x4e8e3d
mov eax, dword [eax]
push dword [ebx + 0x18]
push eax
call fcn.00418820
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + 0x20]
cmp ecx, eax
je 0x4e8e61
cmp dword [ebx + 0x34], 8
jb 0x4e8e58
mov eax, dword [eax]
push dword [ebx + 0x30]
push eax
call fcn.00418820
mov ecx, dword [ebp - 0x20]
lea eax, [ebx + 0x38]
cmp ecx, eax
je 0x4e8e7c
cmp dword [ebx + 0x4c], 8
jb 0x4e8e73
mov eax, dword [eax]
push dword [ebx + 0x48]
push eax
call fcn.00418820
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 0x50]
cmp edx, eax
je 0x4e8e9c
cmp dword [ebx + 0x64], 8
jb 0x4e8e8e
mov eax, dword [eax]
push dword [ebx + 0x60]
mov ecx, edx
push eax
call fcn.00418820
mov edx, dword [ebp - 0x24]
mov al, byte [ebx + 0x68]
lea esi, [ebx + 0x70]
mov byte [edi + 0x90], al
mov ecx, 0xd7
mov al, byte [ebx + 0x69]
add edx, 0x3f4
mov byte [edi + 0x91], al
mov al, byte [ebx + 0x6a]
add dword [ebp - 0x14], 0x3f4
add dword [ebp - 0x18], 0x3f4
add dword [ebp - 0x1c], 0x3f4
add dword [ebp - 0x20], 0x3f4
mov byte [edi + 0x92], al
mov al, byte [ebx + 0x6b]
mov byte [edi + 0x93], al
mov al, byte [ebx + 0x6c]
mov byte [edi + 0x94], al
mov al, byte [ebx + 0x6d]
add ebx, 0x3f4
mov byte [edi + 0x95], al
mov eax, dword [ebp - 0x30]
mov edi, eax
add eax, 0x3f4
mov dword [ebp - 0x24], edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
add edi, 0x3f4
mov eax, dword [ebp - 0x10]
add eax, 0x3f4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x38]
je 0x4e908a
mov esi, dword [ebp - 0x34]
jmp 0x4e8de0
mov ecx, dword [ebp - 0x28]
cmp edi, ecx
je 0x4e8f58
cmp dword [esi - 0x14], 8
mov eax, ecx
jb 0x4e8f4d
mov eax, dword [ecx]
push dword [esi - 0x18]
mov ecx, edi
push eax
call fcn.00418820
mov ecx, dword [ebp - 0x14]
lea eax, [esi - 0x10]
cmp ecx, eax
je 0x4e8f75
cmp dword [esi + 4], 8
lea eax, [esi - 0x10]
jb 0x4e8f6d
mov eax, dword [eax]
push dword [esi]
push eax
call fcn.00418820
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 8]
cmp ecx, eax
je 0x4e8f90
cmp dword [esi + 0x1c], 8
jb 0x4e8f87
mov eax, dword [eax]
push dword [esi + 0x18]
push eax
call fcn.00418820
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + 0x20]
cmp ecx, eax
je 0x4e8fab
cmp dword [esi + 0x34], 8
jb 0x4e8fa2
mov eax, dword [eax]
push dword [esi + 0x30]
push eax
call fcn.00418820
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 0x38]
cmp ecx, eax
je 0x4e8fc6
cmp dword [esi + 0x4c], 8
jb 0x4e8fbd
mov eax, dword [eax]
push dword [esi + 0x48]
push eax
call fcn.00418820
mov edx, dword [ebp - 0x24]
lea eax, [esi + 0x50]
cmp edx, eax
je 0x4e8fe6
cmp dword [esi + 0x64], 8
jb 0x4e8fd8
mov eax, dword [eax]
push dword [esi + 0x60]
mov ecx, edx
push eax
call fcn.00418820
mov edx, dword [ebp - 0x24]
mov al, byte [esi + 0x68]
mov ecx, 0xd7
mov byte [edi + 0x90], al
add edx, 0x3f4
mov al, byte [esi + 0x69]
mov byte [edi + 0x91], al
mov al, byte [esi + 0x6a]
add dword [ebp - 0x14], 0x3f4
add dword [ebp - 0x18], 0x3f4
add dword [ebp - 0x1c], 0x3f4
add dword [ebp - 0x20], 0x3f4
mov byte [edi + 0x92], al
mov al, byte [esi + 0x6b]
mov byte [edi + 0x93], al
mov al, byte [esi + 0x6c]
mov byte [edi + 0x94], al
mov al, byte [esi + 0x6d]
add esi, 0x70
mov byte [edi + 0x95], al
mov eax, dword [ebp - 0x30]
mov edi, eax
add eax, 0x3f4
mov dword [ebp - 0x24], edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
add edi, 0x3f4
mov ecx, dword [ebp - 0x40]
add esi, 0x3f4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
add eax, 0x3f4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], esi
cmp eax, ecx
je 0x4e909d
mov eax, dword [ebp - 0x10]
jmp 0x4e8de0
mov esi, dword [ebp - 0x3c]
mov edx, esi
mov ecx, dword [ebp - 0x28]
push edi
call fcn.004de480
add esp, 4
jmp 0x4e90b7
mov edx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004de480
add esp, 4
mov ecx, eax
call fcn.004dfa70
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x44]
cmp ebx, esi
je 0x4e90d7
push ecx
mov ecx, ebx
call fcn.004de720
add ebx, 0x3f4
cmp ebx, esi
jne 0x4e90c5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret