Function at 0x441940
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 [0x53de6c], esi
jne 0x441982
push str.NtCreateFile
push ecx
call fcn.004406d0
add esp, 4
push eax
call ebx
test eax, eax
mov dword [0x53de6c], eax
mov eax, 0xc000007a
cmove esi, eax
cmp dword [0x53de54], 0
jne 0x4419af
push str.RtlDosPathNameToNtPathNameW
push ecx
call fcn.004406d0
add esp, 4
push eax
call ebx
mov dword [0x53de54], eax
test eax, eax
jne 0x4419af
test esi, esi
mov eax, 0xc000007a
cmovns esi, eax
cmp dword [0x53de68], 0
jne 0x4419dc
push str.RtlFreeHeap
push ecx
call fcn.004406d0
add esp, 4
push eax
call ebx
mov dword [0x53de68], eax
test eax, eax
jne 0x4419dc
test esi, esi
mov eax, 0xc000007a
cmovns esi, eax
cmp dword [0x53de50], 0
jne 0x4419ff
push str.RtlSetLastWin32ErrorAndNtStatusFromNtStatus
push ecx
call fcn.004406d0
add esp, 4
push eax
call ebx
mov dword [0x53de50], eax
test eax, eax
je 0x441a07
test esi, esi
jns 0x441aad
test edi, edi
je 0x441a6b
cmp byte [edi], 0
jne 0x441a20
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
jmp 0x441a6d
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 0x441a6b
push 2
push ebx
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x441a6b
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x441a6d
push esi
call fcn.004998ec
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 0x441a9d
push esi
call fcn.004998ec
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 0x441b11
cmp byte [edi], 0
jne 0x441ac6
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
jmp 0x441b13
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 0x441b11
push 2
push ebx
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x441b11
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x441b13
push esi
call fcn.004998ec
add esp, 4
xor esi, esi
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
call dword [0x53de54]
test al, al
jne 0x441b45
test esi, esi
je 0x441b33
push esi
call fcn.004998ec
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 [0x53de6c]
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 [0x53de68]
test esi, esi
je 0x441bcb
push esi
call fcn.004998ec
add esp, 4
push edi
call dword [0x53de50]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret