Function at 0x26d9c
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x30f04]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x9c], ebx
lea edi, [ebp - 0x98]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x58], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x70]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x40]
mov dword [ebp - 0x44], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0xac], ebx
lea edi, [ebp - 0xa8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x7c]
push 0x2c
mov dword [ebp - 0x80], ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push ebx
push eax
mov dword [ebp - 0x38], 0xc000000d
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x48], ebx
cmp esi, ebx
je 0x272e2
xor eax, eax
cmp ax, word [esi]
je 0x272e2
cmp dword [esi + 4], ebx
je 0x272e2
push 0x18
pop edi
push 0x60
push 3
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x9c]
push eax
push 0x80100000
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x90], 0x240
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
cmp eax, ebx
mov dword [ebp - 0x38], eax
jl 0x272d4
push 5
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, ebx
mov dword [ebp - 0x38], eax
jl 0x272d4
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
add ecx, 0xffffffa0
adc eax, 0xffffffff
cmp eax, ebx
ja 0x272b0
jb 0x26ed7
cmp ecx, 0x7fffa0
ja 0x272b0
mov esi, dword [sym.imp.ntoskrnl.exe_ZwReadFile]
push ebx
lea eax, [ebp - 0x44]
push eax
push 0x10
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x3c]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x38], eax
jl 0x272d4
cmp dword [ebp - 0xa8], 0x46544e4d
jne 0x270b7
cmp dword [ebp - 0xac], 0x10
jb 0x270b7
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0xac], eax
ja 0x270b7
mov ecx, dword [ebp - 0x68]
sub eax, 8
push ebx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push 8
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x3c]
sbb ecx, ebx
mov dword [ebp - 0x40], ecx
call esi
cmp eax, ebx
mov dword [ebp - 0x38], eax
jl 0x272d4
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x270b7
cmp ebx, dword [ebp - 0x68]
jg 0x270b7
jl 0x26f83
cmp eax, dword [ebp - 0x6c]
ja 0x270b7
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x30
jb 0x270b7
cmp ebx, dword [ebp - 0x68]
jg 0x270b7
jl 0x26fa3
cmp ecx, dword [ebp - 0x6c]
ja 0x270b7
cmp ebx, dword [ebp - 0x68]
lea ecx, [ecx + eax + 0x20]
jg 0x270b7
jl 0x26fbb
cmp ecx, dword [ebp - 0x6c]
ja 0x270b7
push ebx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push 0x30
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x38], eax
jl 0x272d4
mov edx, dword [ebp - 0x34]
cmp edx, 0x30
jb 0x270b7
xor eax, eax
cmp eax, dword [ebp - 0x68]
jg 0x270b7
jl 0x27005
cmp edx, dword [ebp - 0x6c]
ja 0x270b7
cmp dword [ebp - 0x30], 1
jne 0x270b7
cmp dword [ebp - 0x28], ebx
je 0x270b7
cmp dword [ebp - 0x28], 0x3e8
ja 0x270b7
mov eax, dword [ebp - 0x80]
xor ecx, ecx
cmp ecx, dword [ebp - 0x68]
lea eax, [edx + eax + 0x20]
jg 0x270b7
jl 0x2703e
cmp eax, dword [ebp - 0x6c]
ja 0x270b7
mov eax, dword [0x35400]
add dword [ebp - 0x44], edx
push 0xc
pop ecx
push 0
lea esi, [ebp - 0x34]
mov edi, 0x353f4
rep movsd dword es:[edi], dword [esi]
mov dword [0x35400], eax
pop eax
adc dword [ebp - 0x40], eax
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x3c]
mov dword [0x353f4], 0x30
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, ebx
mov dword [ebp - 0x38], eax
jl 0x272d4
mov eax, dword [ebp - 0x5c]
cmp eax, 0x18
jb 0x270b7
cmp ebx, dword [ebp - 0x68]
jg 0x270b7
jl 0x270a2
cmp eax, dword [ebp - 0x6c]
ja 0x270b7
mov esi, dword [ebp - 0x28]
imul esi, eax
mov eax, dword [ebp - 0x44]
lea eax, [esi + eax + 8]
mov dword [ebp - 0x78], esi
cmp eax, dword [ebp - 0x6c]
jbe 0x270c3
mov dword [ebp - 0x38], 0xc0000001
jmp 0x272d4
push 0x58495454
push esi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
mov dword [ebp - 0x50], edi
cmp edi, ebx
jne 0x270e6
mov dword [ebp - 0x38], 0xc000009a
jmp 0x272c5
push ebx
lea eax, [ebp - 0x44]
push eax
push esi
push edi
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, ebx
mov dword [ebp - 0x38], eax
jl 0x272c5
mov dword [ebp - 0x4c], ebx
mov ecx, edi
cmp dword [ebp - 0x28], ebx
jbe 0x272a7
add esi, edi
mov dword [ebp - 0x84], esi
movzx eax, word [ecx]
movzx edi, ax
lea esi, [edi + ecx]
cmp esi, dword [ebp - 0x84]
ja 0x271e1
cmp edi, dword [ebp - 0x5c]
jne 0x271de
cmp ax, 0x18
jb 0x271de
mov eax, edi
cdq
cmp edx, dword [ebp - 0x68]
jg 0x271de
jl 0x2715d
cmp eax, dword [ebp - 0x6c]
ja 0x271de
cmp edi, dword [ebp - 0x78]
ja 0x271de
mov edx, dword [ecx + 8]
cmp edx, 0x34
jb 0x272a7
cmp ebx, dword [ebp - 0x68]
mov eax, edx
jg 0x272a7
jl 0x27184
cmp eax, dword [ebp - 0x6c]
ja 0x272a7
cmp eax, 0x200000
ja 0x272a7
mov ecx, dword [ecx + 4]
cmp ecx, 0x10
jb 0x272a7
cmp ebx, dword [ebp - 0x68]
jg 0x272a7
jl 0x271af
cmp ecx, dword [ebp - 0x6c]
ja 0x272a7
cmp ecx, dword [ebp - 0x80]
ja 0x272a7
add ecx, edx
cmp ecx, dword [ebp - 0x80]
ja 0x272a7
cmp eax, dword [ebp - 0x48]
jbe 0x271cb
mov dword [ebp - 0x48], eax
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
mov ecx, esi
cmp eax, dword [ebp - 0x28]
jb 0x2711e
jmp 0x271e1
mov dword [ebp - 0x48], ebx
cmp dword [ebp - 0x48], ebx
je 0x272a7
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x4c], eax
jb 0x272a7
push 0x42545470
push dword [ebp - 0x48]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
cmp esi, ebx
jne 0x27218
mov dword [ebp - 0x38], 0xc000009a
jmp 0x272b9
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x4c], ebx
cmp dword [ebp - 0x28], ebx
jbe 0x272b9
cmp edi, dword [ebp - 0x84]
jae 0x272b9
cmp dword [edi + 4], ebx
je 0x27290
cmp dword [edi + 8], 0x200000
ja 0x27290
test dword [edi + 0xc], 4
je 0x27290
push dword [ebp - 0x48]
push ebx
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push ebx
mov dword [ebp - 0x40], ebx
mov eax, dword [edi + 4]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push dword [edi + 8]
lea eax, [ebp - 0x58]
push esi
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, ebx
mov dword [ebp - 0x38], eax
jl 0x272b9
push dword [ebp - 0x48]
push esi
call fcn.00026cec
cmp eax, ebx
mov dword [ebp - 0x38], eax
jl 0x272b9
mov eax, dword [ebp - 0x4c]
inc eax
mov edi, eax
imul edi, dword [ebp - 0x5c]
add edi, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
cmp eax, dword [ebp - 0x28]
jb 0x27227
jmp 0x272b9
mov dword [ebp - 0x38], 0xc0000001
jmp 0x272c5
mov dword [ebp - 0x38], 0xc0000001
mov esi, ebx
cmp esi, ebx
je 0x272c5
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x50], ebx
je 0x272d4
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x3c], ebx
je 0x272e2
push dword [ebp - 0x3c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0002738c
leave
ret 4