Function at 0x44c440
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
push edi
mov edi, ecx
cmp dword [0x59d968], esi
jne 0x44c482
push str.NtCreateFile
push ecx
call fcn.0044acc0
add esp, 4
push eax
call ebx
test eax, eax
mov dword [0x59d968], eax
mov eax, 0xc000007a
cmove esi, eax
cmp dword [0x59d808], 0
jne 0x44c4af
push str.RtlDosPathNameToNtPathNameW
push ecx
call fcn.0044acc0
add esp, 4
push eax
call ebx
mov dword [0x59d808], eax
test eax, eax
jne 0x44c4af
test esi, esi
mov eax, 0xc000007a
cmovns esi, eax
cmp dword [0x59d81c], 0
jne 0x44c4dc
push str.RtlFreeHeap
push ecx
call fcn.0044acc0
add esp, 4
push eax
call ebx
mov dword [0x59d81c], eax
test eax, eax
jne 0x44c4dc
test esi, esi
mov eax, 0xc000007a
cmovns esi, eax
cmp dword [0x59d804], 0
jne 0x44c4ff
push str.RtlSetLastWin32ErrorAndNtStatusFromNtStatus
push ecx
call fcn.0044acc0
add esp, 4
push eax
call ebx
mov dword [0x59d804], eax
test eax, eax
je 0x44c507
test esi, esi
jns 0x44c5ad
test edi, edi
je 0x44c56b
cmp byte [edi], 0
jne 0x44c520
push 2
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
jmp 0x44c56d
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
cmp ebx, 1
jle 0x44c56b
push 2
push ebx
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x44c56b
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x44c56d
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x44c59d
push esi
call fcn.004d1211
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x44c611
cmp byte [edi], 0
jne 0x44c5c6
push 2
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
jmp 0x44c613
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
cmp ebx, 1
jle 0x44c611
push 2
push ebx
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x44c611
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x44c613
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
call dword [0x59d808]
test al, al
jne 0x44c645
test esi, esi
je 0x44c633
push esi
call fcn.004d1211
add esp, 4
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x18]
push 0
push 0
push 0x60
push 5
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
push 1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x80
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x38], 0x18
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0
push eax
push 0xc0100080
lea eax, [ebp - 4]
mov dword [ebp - 0x28], 0
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0xc], ecx
call dword [0x59d968]
mov ecx, dword fs:[0x18]
mov edi, eax
push dword [ebp - 0x14]
push 0
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0x18]
call dword [0x59d81c]
test esi, esi
je 0x44c6cb
push esi
call fcn.004d1211
add esp, 4
push edi
call dword [0x59d804]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret