Function at 0x22a7e
Capabilities:
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2a968
push 0x2a536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
or dword [ebp - 0x40], 0xffffffff
or dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x6c], ebx
and byte [ebp - 0x38], bl
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov edi, 0x546b6c42
push edi
push 0x154
push 1
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
call esi
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x22f1d
push edi
push 0x400
push 1
call esi
mov dword [ebp - 0x6c], eax
cmp eax, ebx
je 0x22f1d
push edi
push 0x18
push 1
call esi
mov ebx, eax
mov dword [ebp - 0x74], ebx
test ebx, ebx
je 0x22f1d
push edi
push 8
push 1
pop edi
push edi
call esi
mov dword [ebp - 0x20], eax
xor ecx, ecx
cmp eax, ecx
je 0x22b5b
push ecx
push ecx
push 0x860
push edi
push 3
push 0x80
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xc0100000
push dword [ebp + 8]
call dword [0x2b54c]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x22b63
mov dword [ebp - 0x68], edi
jmp 0x22f24
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [ebp - 0x3c], edi
push 5
push 0x18
push ebx
push dword [ebp - 0x20]
push edi
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0x70], eax
lea eax, [ebx + 8]
xor ebx, ebx
cmp dword [eax], ebx
jne 0x22b8b
cmp dword [eax + 4], ebx
je 0x22ba6
push ebx
push dword [ebp - 0x6c]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00011c27
mov dword [ebp - 0x44], eax
cmp eax, 1
je 0x22ba6
cmp eax, 2
jne 0x22bf4
push edi
call dword [0x2b550]
or dword [ebp - 0x3c], 0xffffffff
push dword [ebp - 0x40]
call dword [0x2b550]
or dword [ebp - 0x40], 0xffffffff
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x2b54c]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], 4
jmp 0x22f24
or dword [ebp - 0x60], 0xffffffff
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], 0x400
push 4
push 0x1000
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [ebp - 0x70], eax
cmp eax, ebx
jl 0x22de0
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x22de0
mov dword [ebp - 0x5c], eax
lea ebx, [eax + 4]
mov dword [ebp - 0x80], ebx
lea ecx, [eax + 0xc]
mov dword [ebp - 0x7c], ecx
lea ecx, [eax + 0x14]
mov dword [ebp - 0x30], ecx
lea edi, [eax + 0x2c]
mov dword [ebp - 0x2c], edi
push 0x546b6c42
push 0x400
push 1
call esi
mov esi, eax
mov dword [ebp - 0x78], esi
test esi, esi
je 0x22f1d
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0x34]
call fcn.00015c44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x34]
call fcn.000212fb
test al, al
jne 0x22caf
push 0x229cc
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp + 0x34]
push 0x229d4
call sub.ntoskrnl.exe_DbgPrint
push 0x22a00
jmp 0x22f15
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x22ccc
cmp byte [eax], 0x5c
jne 0x22cbf
inc eax
mov dword [ebp - 0x58], eax
test eax, eax
je 0x22ccc
cmp byte [eax], 0x5c
jne 0x22ccc
inc eax
mov dword [ebp - 0x58], eax
push 0x22a04
push dword [ebp + 0x34]
call dword [sym.imp.ntoskrnl.exe_strstr]
pop ecx
pop ecx
mov dword [ebp - 0x54], eax
test eax, eax
je 0x22d1b
mov ecx, dword [0x2ba98]
test ecx, ecx
jne 0x22d07
lea ecx, [eax + 2]
push ecx
push dword [ebp - 0x4c]
dec eax
push eax
push 0x22a08
push esi
call dword [sym.imp.ntoskrnl.exe_sprintf]
add esp, 0x14
jmp 0x22d55
lea edx, [eax + 2]
push edx
push dword [ebp - 0x4c]
movsx eax, byte [eax - 1]
push eax
push ecx
push 0x22a18
jmp 0x22d4b
cmp dword [ebp - 0x58], 0
je 0x22ef9
mov eax, dword [ebp - 0x64]
lea ecx, [eax + 0x41]
mov dword [ebp - 0x24], ecx
mov eax, dword [0x2ba98]
test eax, eax
push dword [ebp - 0x58]
push dword [ebp - 0x4c]
push ecx
jne 0x22d45
push 0x22a28
jmp 0x22cfb
push eax
push 0x22a38
push esi
call dword [sym.imp.ntoskrnl.exe_sprintf]
add esp, 0x18
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.000200ee
mov dword [ebp - 0x70], eax
cmp eax, 0xc0000035
jne 0x22d81
push 3
push 0xc0100000
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.0001f3ec
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x38], 1
cmp dword [ebp - 0x70], 0xc0000043
jne 0x22dec
push esi
push 0x22a70
push edi
call dword [sym.imp.ntoskrnl.exe_swprintf]
add esp, 0xc
push edi
push ebx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebx + 4], edi
mov esi, dword [ebp + 0x10]
mov dword [esi + 8], ebx
push dword [ebp - 0x40]
call dword [0x2b550]
or dword [ebp - 0x40], 0xffffffff
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x2b54c]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], 2
jmp 0x22f24
cmp dword [ebp - 0x70], 0
jne 0x22f1d
cmp byte [ebp - 0x38], 0
jne 0x22e4e
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0x40]
call fcn.000158ae
test al, al
je 0x22f1d
push dword [ebp - 0x6c]
push 0x10
push dword [ebp + 0x38]
push esi
call fcn.00011e03
test al, al
je 0x22f1d
mov dword [ebp - 0x50], 0x3ff
cmp dword [ebp - 0x50], 0
jle 0x22e39
dec dword [ebp - 0x50]
jmp 0x22e2e
push esi
push dword [ebp - 0x6c]
push dword [ebp - 0x40]
call fcn.0001125c
test al, al
jne 0x22ead
jmp 0x22f1d
push 0x55
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x34]
mov edi, edx
rep stosd dword es:[edi], eax
and dword [edx], eax
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x148], eax
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x144], eax
mov dword [edx + 0x38], esi
mov byte [edx + 0x14c], 0x10
add edx, 4
mov edi, dword [ebp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x34]
call fcn.000130b6
test al, al
je 0x22f1d
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x2c]
push esi
push 0x22a78
push edi
call dword [sym.imp.ntoskrnl.exe_swprintf]
add esp, 0xc
push edi
push ebx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebx + 4], edi
mov esi, dword [ebp + 0x10]
mov dword [esi + 8], ebx
push dword [ebp - 0x40]
call dword [0x2b550]
or dword [ebp - 0x40], 0xffffffff
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
jmp 0x22bd9
push 0x22a48
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp + 0x34]
push 0x22a50
call sub.ntoskrnl.exe_DbgPrint
push 0x22a6c
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x10
mov dword [ebp - 0x68], 1
or dword [ebp - 4], 0xffffffff
call fcn.00022f41
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x34