Function at 0x114b000
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 1
je 0x114b1ed
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x114b03e
cmp dword [ebp + 8], 0xffffffff
je 0x114b03e
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0
je 0x114b04c
push 6
call fcn.0108f8a0
xor al, al
jmp 0x114b215
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0xc], 0
jne 0x114b075
mov edx, dword [ebp - 8]
add edx, 4
push edx
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x26]
test ecx, ecx
je 0x114b122
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x24]
test eax, eax
je 0x114b09d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0x38]
and eax, 0x10
je 0x114b0a6
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
cmp dword [ecx], 0
je 0x114b106
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
add edx, dword [eax]
mov eax, dword [ebp - 8]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x4000
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x1c]
jb 0x114b102
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
add edx, 0x40
cmp dword [ebp - 0x24], edx
jb 0x114b102
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
mov edx, dword [eax + 0x3c]
lea eax, [ecx + edx*2 + 0x5e]
cmp dword [ebp - 0x24], eax
ja 0x114b104
jmp 0x114b106
jmp 0x114b11d
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x26], 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x25]
test eax, eax
jne 0x114b11d
jmp 0x114b1ae
jmp 0x114b1a4
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
mov dword [ecx], 0
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 3
push 0x4000
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x80000005
jne 0x114b187
mov eax, dword [ebp - 8]
mov byte [eax + 0x25], 1
mov dword [ebp - 0x14], 0
jmp 0x114b196
cmp dword [ebp - 0x14], 0
jge 0x114b18f
jmp 0x114b1ae
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x25], 0
mov edx, dword [ebp - 8]
mov byte [edx + 0x26], 1
mov dword [ebp + 0xc], 0
cmp dword [ebp - 0x20], 0
je 0x114b075
cmp dword [ebp - 0x20], 0
je 0x114b1d8
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x114b1cb
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0114b220
jmp 0x114b1d8
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0114b300
movzx edx, byte [ebp - 0x19]
test edx, edx
je 0x114b1ed
mov eax, dword [ebp - 8]
add eax, 4
push eax
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
cmp dword [ebp - 0x14], 0
jge 0x114b202
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0108f8c0
xor al, al
jmp 0x114b215
cmp dword [ebp - 0x20], 0
jne 0x114b213
push 0x12
call fcn.0108f8a0
xor al, al
jmp 0x114b215
mov al, 1
mov esp, ebp
pop ebp
ret 0x10