Function at 0x401e85
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [ebp + 8]
movzx ecx, word [ebp + 8]
shr eax, 0x10
not eax
push ebx
movzx eax, ax
push esi
push edi
xor eax, ecx
push eax
lea eax, [ebp - 0x19c]
push 0x409498
push eax
call dword [sym.imp.ntdll.dll_swprintf]
add esp, 0xc
xor ebx, ebx
push ebx
push 7
lea eax, [ebp - 0x10]
push eax
push 0x40a01c
mov esi, 0x80
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntdll.dll_ZwOpenFile]
test eax, eax
jl 0x401f08
push 4
push 0x28
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_ZwQueryInformationFile]
push dword [ebp - 8]
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x20], ecx
call dword [sym.imp.ntdll.dll_ZwClose]
xor eax, eax
push 0x18
pop edx
mov word [ebp - 0x18], ax
push 0x40
pop ecx
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], eax
xor eax, eax
push ebx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ecx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push 0x21
lea eax, [ebp - 0x18]
mov dword [ebp - 0x4c], eax
push 3
xor eax, eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], ecx
push 7
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
push 6
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x19c]
mov word [ebp - 0x16], si
push eax
lea esi, [ebp - 0x9c]
call fcn.00402684
mov edi, dword [sym.imp.ntdll.dll_ZwCreateFile]
push eax
push 0x12019f
lea eax, [ebp - 0x34]
push eax
call edi
cmp eax, ebx
jl 0x402133
push ebx
push ebx
push 2
lea eax, [ebp - 0x3c]
push eax
push 0x9c040
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
mov dword [ebp - 0x3c], 1
call dword [sym.imp.ntdll.dll_ZwFsControlFile]
xor esi, esi
call fcn.0040124d
mov esi, dword [sym.imp.ntdll.dll_swprintf]
push eax
lea eax, [ebp - 0x11c]
push 0x40956c
push eax
call esi
add eax, eax
mov word [ebp - 0x18], ax
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
call fcn.00401d88
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push 0x40956c
push eax
call esi
add esp, 0xc
push ebx
push ebx
push 0x21
push 3
push ebx
add eax, eax
push 6
mov word [ebp - 0x18], ax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x12019f
lea eax, [ebp - 0x50]
push eax
call edi
test eax, eax
jl 0x4020ba
lea eax, [ebp - 0x11c]
push str.:SummaryInformation
push eax
call esi
add eax, eax
pop ecx
mov word [ebp - 0x18], ax
pop ecx
lea eax, [ebp - 0x38]
push eax
call fcn.00401d88
lea eax, [ebp - 0x11c]
push 0x40959c
push eax
call esi
pop ecx
pop ecx
push ebx
push ebx
push 1
push 2
push ebx
add eax, eax
push ebx
mov word [ebp - 0x18], ax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
mov esi, 0x100000
push esi
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
jl 0x402078
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_ZwClose]
push 0x4c
pop eax
push ebx
push ebx
push 1
push 2
push ebx
push ebx
mov word [ebp - 0x11c], ax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
lea eax, [ebp - 8]
push eax
call edi
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
je 0x4020b1
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_ZwClose]
push dword [ebp - 0x50]
call dword [sym.imp.ntdll.dll_ZwClose]
cmp dword [ebp - 0x20], ebx
je 0x4020db
push 4
push 0x28
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x5c], 6
call dword [sym.imp.ntdll.dll_ZwSetInformationFile]
push dword [ebp - 0x34]
call dword [sym.imp.ntdll.dll_ZwClose]
push 0x200001
push 7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x19c]
push eax
lea esi, [ebp - 0x9c]
call fcn.00402684
push eax
push 0x40000
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenFile]
test eax, eax
jl 0x40212e
push 0x40a03c
push 4
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_ZwSetSecurityObject]
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [ebp - 0x1c]
jmp 0x402148
cmp eax, 0xc0000279
je 0x402145
cmp eax, 0xc0000022
je 0x402145
xor eax, eax
jmp 0x402148
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4