Function at 0x41a332
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x45e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [ecx], 0xc0000043
push esi
push edi
mov dword [ebp - 0x14], ebx
je 0x41a363
cmp dword [ecx], 0xc0190001
jne case.0x41a377.9
mov eax, dword [ecx + 4]
dec eax
cmp eax, 0x10
ja case.0x41a377.9
movzx eax, byte [eax + 0x41a6f2]
jmp dword [eax*4 + 0x41a6e2]
add ecx, 0x10
je case.0x41a377.9
jmp 0x41a3f7
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x2c
push ecx
push ecx
lea edx, [ecx + 0x10]
xor ecx, ecx
inc ecx
call fcn.00454f57
test eax, eax
js 0x41a622
lea ecx, [ebp - 0x20]
jmp 0x41a3f7
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x2c
push ecx
push ecx
lea edx, [ecx + 0x10]
xor ecx, ecx
inc ecx
call fcn.00454f57
test eax, eax
js 0x41a622
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x41a3f4
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x64]
cmp word [ecx], 0x20
jne 0x41a3eb
sub edx, 2
add ecx, 2
dec eax
sub eax, 1
jne 0x41a3d9
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], edx
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0xc], ebx
call fcn.00454e25
mov esi, eax
test esi, esi
js 0x41a4da
push 0x4020
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x80], 0x18
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x44]
push 7
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], ebx
push eax
push 0x100080
lea eax, [ebp - 0xc]
mov dword [ebp - 0x74], 0x40
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, eax
test esi, esi
jns 0x41a474
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x402ee0
mov dword [ebp - 0x20], 0x4030e4
mov dword [ebp - 0x1c], 0x441
mov dword [ebp - 0x18], 0x4030f8
call fcn.00455c22
jmp 0x41a4da
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
lea edx, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x400
mov ecx, edi
call fcn.00456cdb
mov esi, eax
test esi, esi
js 0x41a4d2
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x44]
push 0x2f
push edi
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
test esi, esi
jns 0x41a4f7
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x402ee0
mov dword [ebp - 0x30], 0x4030e4
mov dword [ebp - 0x2c], 0x458
mov dword [ebp - 0x28], 0x403188
call fcn.00455c22
xor ebx, ebx
lea ecx, [ebp - 0x20]
call fcn.0041c15b
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x41a4f0
cmp ecx, 0xffffffff
je 0x41a4f0
push ecx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
jmp 0x41a622
xor esi, esi
mov dword [ebp - 0x94], esi
cmp dword [ebx], esi
jbe 0x41a602
lea ecx, [ebx + 4]
mov dword [ebp - 0x14], ecx
xor eax, eax
mov dword [ebp - 0x5c], 0x18
lea edi, [ebp - 0x58]
mov dword [ebp - 8], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x60], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0x1000
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_NtOpenProcess]
mov esi, eax
test esi, esi
js 0x41a686
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
xor edi, edi
push edi
push edi
push 0x1b
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov esi, eax
cmp esi, 0x80000005
je 0x41a583
cmp esi, 0xc0000023
je 0x41a583
cmp esi, 0xc0000004
jne 0x41a631
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x30]
call fcn.00456cdb
mov esi, eax
test esi, esi
js 0x41a67c
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push 0x1b
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov esi, eax
test esi, esi
js 0x41a648
xor esi, esi
cmp word [edi], si
jbe 0x41a5c6
mov ecx, edi
call fcn.004197cc
lea ecx, [ebp - 0x30]
call fcn.0041c15b
mov eax, dword [ebp - 8]
test eax, eax
je 0x41a5e4
cmp eax, 0xffffffff
je 0x41a5e4
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x14]
inc eax
add ecx, 4
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x14], ecx
cmp eax, dword [ebx]
jb 0x41a50d
lea ecx, [ebp - 0x20]
call fcn.0041c15b
mov eax, dword [ebp - 0xc]
test eax, eax
je case.0x41a377.9
cmp eax, 0xffffffff
je case.0x41a377.9
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d1ae
leave
ret
test esi, esi
js 0x41a636
int3
mov dword [ebp - 0x88], 0x480
mov dword [ebp - 0x84], edi
jmp 0x41a65c
mov dword [ebp - 0x88], 0x48b
mov dword [ebp - 0x84], 0x403238
push esi
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x402ee0
mov dword [ebp - 0x8c], 0x4030e4
call fcn.00455c22
lea ecx, [ebp - 0x30]
call fcn.0041c15b
jmp 0x41a6ba
push esi
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x402ee0
mov dword [ebp - 0x8c], 0x4030e4
mov dword [ebp - 0x88], 0x46d
mov dword [ebp - 0x84], 0x4031f4
call fcn.00455c22
mov eax, dword [ebp - 8]
test eax, eax
je 0x41a4d0
xor ebx, ebx
cmp eax, 0xffffffff
je 0x41a4d2
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x41a4d2