Function at 0x20884
Capabilities:
Get file attributes
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
push 0x257e4
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x18
pop ebx
xor eax, eax
push 0x100
xor esi, esi
push esi
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
push esi
stosd dword es:[edi], eax
push esi
push 0x20
push 1
push 1
lea eax, [ebp - 0x40]
mov dword [ebp - 0x50], eax
xor eax, eax
push pe_nt_image_headers32
push esi
mov dword [ebp - 0x30], esi
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x58]
push eax
push 0x100080
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], 0x240
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ntoskrnl.exe_IoCreateFile]
test eax, eax
jl 0x20b7f
push 5
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x20b76
cmp dword [ebp - 0x64], esi
jne 0x20b76
mov eax, dword [ebp - 0x68]
cmp eax, 0x400
jb 0x20b76
mov edi, eax
mov ebx, 0x7474746c
push ebx
add eax, 0x100
push eax
push 1
call fcn.000123d2
mov esi, eax
xor eax, eax
mov dword [ebp - 8], esi
cmp esi, eax
je 0x20b76
push eax
lea ecx, [ebp - 0x38]
push ecx
push edi
push esi
lea ecx, [ebp - 0x30]
push ecx
push eax
push eax
push eax
push dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jge 0x20985
push ebx
push esi
jmp 0x20b71
mov ebx, dword [esi + 0x3c]
add ebx, esi
mov edx, dword [ebx + 0x78]
test edx, edx
je 0x20b7f
movzx ecx, word [ebx + 6]
xor eax, eax
cmp ax, cx
jae 0x209c8
lea eax, [ebx + 0x104]
movzx edi, cx
mov ecx, dword [eax]
cmp ecx, edx
ja 0x209bf
mov esi, dword [eax + 4]
add esi, ecx
cmp edx, esi
ja 0x209bf
mov esi, dword [eax + 8]
sub esi, ecx
add edx, esi
add eax, 0x28
dec edi
jne 0x209a9
mov esi, dword [ebp - 8]
movzx edi, word [ebx + 6]
add edx, esi
mov ecx, dword [edx + 0x1c]
xor eax, eax
mov dword [ebp - 0x28], edx
cmp ax, di
jae 0x20a08
movzx esi, di
lea eax, [ebx + 0x104]
mov dword [ebp - 0x14], esi
mov edi, dword [eax]
cmp edi, ecx
ja 0x209fd
mov esi, dword [eax + 4]
add esi, edi
cmp ecx, esi
ja 0x209fd
mov esi, dword [eax + 8]
sub esi, edi
add ecx, esi
add eax, 0x28
dec dword [ebp - 0x14]
jne 0x209e7
mov esi, dword [ebp - 8]
movzx edi, word [ebx + 6]
add ecx, esi
xor eax, eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0x24]
cmp ax, di
jae 0x20a48
movzx esi, di
lea eax, [ebx + 0x104]
mov dword [ebp - 0x14], esi
mov edi, dword [eax]
cmp edi, ecx
ja 0x20a3d
mov esi, dword [eax + 4]
add esi, edi
cmp ecx, esi
ja 0x20a3d
mov esi, dword [eax + 8]
sub esi, edi
add ecx, esi
add eax, 0x28
dec dword [ebp - 0x14]
jne 0x20a27
mov esi, dword [ebp - 8]
movzx edi, word [ebx + 6]
add ecx, esi
xor eax, eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [edx + 0x20]
cmp ax, di
jae 0x20a88
movzx esi, di
lea eax, [ebx + 0x104]
mov dword [ebp - 0x14], esi
mov edi, dword [eax]
cmp edi, ecx
ja 0x20a7d
mov esi, dword [eax + 4]
add esi, edi
cmp ecx, esi
ja 0x20a7d
mov esi, dword [eax + 8]
sub esi, edi
add ecx, esi
add eax, 0x28
dec dword [ebp - 0x14]
jne 0x20a67
mov esi, dword [ebp - 8]
and dword [ebp - 0x14], 0
add ecx, esi
cmp dword [edx + 0x18], 0
mov dword [ebp - 0xc], ecx
jbe 0x20b69
mov esi, dword [ebp + 0xc]
movzx edi, word [ebx + 6]
mov ecx, dword [ecx]
test edi, edi
jbe 0x20ada
lea eax, [ebx + 0x104]
mov dword [ebp - 0x18], edi
mov edi, dword [eax]
cmp edi, ecx
ja 0x20ad2
mov ecx, dword [eax + 4]
add ecx, edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi]
mov edi, dword [ebp - 0x1c]
cmp ecx, edi
ja 0x20ad2
mov esi, dword [eax + 8]
sub esi, dword [eax]
add esi, ecx
add eax, 0x28
dec dword [ebp - 0x18]
jne 0x20ab1
mov eax, dword [ebp - 8]
lea ecx, [esi + eax]
cmp byte [ecx], 0x5a
jne 0x20b4d
cmp byte [ecx + 1], 0x77
jne 0x20b4d
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
mov edx, dword [ebp - 0x20]
mov esi, dword [edx + eax*4]
movzx edx, word [ebx + 6]
test edx, edx
jbe 0x20b29
lea eax, [ebx + 0x104]
mov dword [ebp - 0x18], edx
mov edi, dword [eax]
cmp edi, esi
ja 0x20b21
mov edx, dword [eax + 4]
add edx, edi
cmp esi, edx
ja 0x20b21
mov edx, dword [eax + 8]
sub edx, edi
add edx, esi
mov dword [ebp - 0x24], edx
add eax, 0x28
dec dword [ebp - 0x18]
jne 0x20b08
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 8]
push dword [ebp + 0xc]
mov edi, dword [eax + edx + 1]
push ecx
mov byte [ecx], 0x4e
mov byte [ecx + 1], 0x74
call dword [sym.imp.ntoskrnl.exe__stricmp]
pop ecx
pop ecx
test eax, eax
je 0x20b88
mov edx, dword [ebp - 0x28]
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], 2
add ecx, 4
mov dword [ebp - 0xc], ecx
cmp eax, dword [edx + 0x18]
jb 0x20a9e
push 0x7474746c
push dword [ebp - 8]
call fcn.000124d0
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
push 0x7474746c
push dword [ebp - 8]
mov dword [eax], edi
call fcn.000124d0
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
jmp 0x20b81