Function at 0x424821
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
xor eax, eax
mov ebx, ecx
push esi
mov esi, eax
mov dword [ebp - 4], eax
push edi
mov edi, eax
mov dword [ebp - 0xc], eax
cmp byte [0x43b3e4], al
je 0x424a8f
push dword [ebx + 4]
push 0x408e30
push 2
call fcn.0041df4b
add esp, 0xc
mov dword [ebp - 0x38], 0x18
xor eax, eax
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], eax
push 0x4020
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push 7
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], ebx
push eax
push 0x100080
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenFile]
test eax, eax
jns 0x4248a1
push eax
push 0x408e88
jmp 0x424a37
mov eax, 0x400
push eax
mov dword [ebp - 8], eax
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x4248d5
push 0x408ee0
push 4
call fcn.0041df4b
pop ecx
pop ecx
jmp 0x424a41
push 0x2f
push dword [ebp - 8]
lea eax, [ebp - 0x20]
push edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_ZwQueryInformationFile]
test eax, eax
jns 0x4248f7
push eax
push 0x408f30
jmp 0x424a37
cmp dword [edi], esi
jne 0x424902
push 0x408f80
jmp 0x4248c7
push dword [edi]
push 0x408fc8
push 2
call fcn.0041df4b
xor esi, esi
add esp, 0xc
mov ebx, esi
cmp dword [edi], esi
jbe 0x424a6b
lea eax, [edi + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x18
push eax
push 0x1000
lea eax, [ebp - 4]
mov dword [ebp - 0x4c], esi
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ntdll.dll_ZwOpenProcess]
test eax, eax
js 0x424a31
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push esi
push esi
push 0x1b
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwQueryInformationProcess]
cmp eax, 0x80000005
je 0x42498f
cmp eax, 0xc0000023
je 0x42498f
cmp eax, 0xc0000004
jne 0x424a17
push dword [ebp - 8]
mov eax, dword fs:[0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x424a27
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 0x1b
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwQueryInformationProcess]
test eax, eax
js 0x424a1f
xor eax, eax
cmp word [esi], ax
jbe 0x4249cb
mov eax, dword [esi + 4]
jmp 0x4249d0
mov eax, 0x406a10
push eax
push ebx
push 0x409194
push 4
call fcn.0041df4b
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwClose]
xor eax, eax
push esi
mov dword [ebp - 4], eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
inc ebx
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
cmp ebx, dword [edi]
jae 0x424a41
jmp 0x424925
push eax
push 0x409058
jmp 0x424a37
push eax
push 0x409140
jmp 0x424a37
push 0x4090d0
jmp 0x4248c7
push eax
push 0x409010
push 4
call fcn.0041df4b
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x424a50
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwClose]
test esi, esi
je 0x424a69
mov eax, dword fs:[0x30]
push esi
xor esi, esi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x424a6b
xor esi, esi
test edi, edi
je 0x424a80
mov eax, dword fs:[0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0xc], 0
je 0x424a8f
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_ZwClose]
pop edi
pop esi
pop ebx
leave
ret