Function at 0x5ec961
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000b208
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [reloc.MSVCRT.dll_strncpy]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor esi, esi
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov eax, 0x1000db28
mov dword [esp + 0x30], esi
mov byte [esp + 0x13], 0
mov bl, 0xc
lea ecx, [eax + 1]
jmp 0x5ec9b1
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x5ec9b1
sub eax, ecx
movzx eax, ax
push 1
mov dword [esp + 0x18], eax
call fcn.005edf33
add esp, 4
test eax, eax
je 0x5ec9e2
mov edi, eax
mov esi, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov byte [eax], bl
lea eax, [esi + 1]
push eax
mov dword [esp + 0x1c], eax
call fcn.005edf33
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5eca21
test edi, edi
je 0x5eca0d
push esi
push edi
push ebx
call fcn.005f2e31
push edi
call fcn.005eded0
add esp, 0x10
mov esi, dword [esp + 0x18]
mov edi, ebx
xor al, al
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov byte [ebx + esi - 1], al
lea eax, [esi + 2]
push eax
mov dword [esp + 0x1c], eax
call fcn.005edf33
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5eca66
test edi, edi
je 0x5eca4c
push esi
push edi
push ebx
call fcn.005f2e31
push edi
call fcn.005eded0
add esp, 0x10
mov esi, dword [esp + 0x18]
mov cx, word [0x10010b40]
mov edi, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov word [ebx + esi - 2], cx
lea eax, [esi + 2]
push eax
mov dword [esp + 0x1c], eax
call fcn.005edf33
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5ecaab
test edi, edi
je 0x5eca91
push esi
push edi
push ebx
call fcn.005f2e31
push edi
call fcn.005eded0
add esp, 0x10
mov esi, dword [esp + 0x18]
mov dx, word [0x10010ab4]
mov edi, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov word [ebx + esi - 2], dx
lea eax, [esi + 2]
push eax
mov dword [esp + 0x1c], eax
call fcn.005edf33
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5ecaee
test edi, edi
je 0x5ecad6
push esi
push edi
push ebx
call fcn.005f2e31
push edi
call fcn.005eded0
add esp, 0x10
mov esi, dword [esp + 0x18]
mov ax, word [esp + 0x14]
mov edi, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov word [ebx + esi - 2], ax
movzx eax, word [esp + 0x14]
mov dword [esp + 0x14], eax
add eax, esi
push eax
mov dword [esp + 0x1c], eax
call fcn.005edf33
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5ecb46
test edi, edi
je 0x5ecb21
push esi
push edi
push ebx
call fcn.005f2e31
push edi
call fcn.005eded0
add esp, 0x10
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, ebx
push eax
sub ebx, eax
push 0x1000db28
add ebx, esi
push ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
call fcn.005f2e31
add esp, 0xc
push 0x2000
call fcn.005edf33
push 0x2000
mov ebx, eax
push 0
push ebx
call fcn.005f25a1
mov eax, dword [reloc.MSVCRT.dll_strncpy]
add esp, 0x10
test eax, eax
je 0x5ecba1
push 0
push 0x2000
push ebx
push esi
push edi
push 0x16
call eax
test eax, eax
jle 0x5ecba1
cmp byte [ebx], 0xd
jne 0x5ecba1
movzx eax, word [ebx + 2]
mov edx, dword [ebp + 8]
push eax
lea ecx, [ebx + 4]
push ecx
mov ecx, dword [edx + 4]
push ecx
mov dword [edx], eax
call fcn.005f2e31
add esp, 0xc
mov byte [esp + 0x13], 1
push ebx
call fcn.005eded0
add esp, 4
test edi, edi
mov dword [esp + 0x30], reloc.MSVCRT.dll_strncpy
je 0x5ecbbf
push edi
call fcn.005eded0
add esp, 4
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret