Function at 0x411c23
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
test edi, edi
je 0x411e89
cmp dword [0x42c430], ebx
je 0x411e89
xor ecx, ecx
lea edx, [ebp - 0x10]
inc ecx
call fcn.00411f0e
test eax, eax
jne 0x411c6b
push 0x4031e0
push 4
call fcn.0041944e
pop ecx
pop ecx
jmp 0x411e5c
push ebx
push 0x2000000
push 3
push ebx
push 7
push 0x100080
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, 0xffffffff
jne 0x411ca7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x403258
push 4
call fcn.0041944e
add esp, 0xc
jmp 0x411e5a
mov eax, 0x400
push eax
push 8
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x411e53
push 0x2f
push dword [ebp - 4]
lea eax, [ebp - 0x28]
push esi
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x411cf5
push eax
push 0x4032d8
push 4
call fcn.0041944e
add esp, 0xc
xor ecx, ecx
jmp 0x411e44
xor eax, eax
cmp dword [esi], eax
mov eax, 0x403368
ja 0x411d05
mov eax, 0x4033b0
push edi
push eax
push 4
call fcn.0041944e
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 8], ecx
mov edi, ecx
cmp dword [esi], ecx
jbe 0x411e44
lea eax, [esi + 4]
mov ebx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x18
push eax
push 0x1000
lea eax, [ebp - 8]
mov dword [ebp - 0x3c], ecx
push eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.ntdll.dll_NtOpenProcess]
test eax, eax
jns 0x411d6c
push eax
push 0x4033f0
jmp 0x411df6
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
push ecx
push 0x1b
push dword [ebp - 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
cmp eax, 0x80000005
je 0x411d9f
cmp eax, 0xc0000023
je 0x411d9f
cmp eax, 0xc0000004
je 0x411d9f
push eax
push 0x403470
jmp 0x411df6
push dword [ebp - 4]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x411dc1
push dword [ebp - 4]
push 0x403530
jmp 0x411df6
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 0x1b
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x411de0
push eax
push 0x403598
jmp 0x411df6
xor eax, eax
cmp word [edi], ax
jbe 0x411dec
push dword [edi + 4]
jmp 0x411df1
push 0x403650
push 0x40362c
push 4
call fcn.0041944e
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x411e16
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x411e18
xor ecx, ecx
test edi, edi
je 0x411e2f
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
mov edi, ecx
mov eax, dword [ebp - 0xc]
inc ebx
add eax, 4
mov dword [ebp - 0xc], eax
cmp ebx, dword [esi]
jb 0x411d28
mov ebx, dword [ebp - 0x18]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x411e89
cmp dword [esi], 1
mov eax, ebx
jne 0x411e6d
mov eax, dword [esi + 0xc]
test al, 2
jne 0x411e7a
xor edx, edx
xor ecx, ecx
call fcn.00411f0e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
leave
ret