Function at 0x1117340
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 0x111752d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x111737e
cmp dword [ebp + 8], 0xffffffff
je 0x111737e
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0
je 0x111738c
push 6
call fcn.0108d110
xor al, al
jmp 0x1117555
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 0x11173b5
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 0x1117462
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x24]
test eax, eax
je 0x11173dd
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0x38]
and eax, 0x10
je 0x11173e6
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 0x1117446
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 0x1117442
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
add edx, 0x40
cmp dword [ebp - 0x24], edx
jb 0x1117442
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 0x1117444
jmp 0x1117446
jmp 0x111745d
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x26], 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x25]
test eax, eax
jne 0x111745d
jmp 0x11174ee
jmp 0x11174e4
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 0x11174c7
mov eax, dword [ebp - 8]
mov byte [eax + 0x25], 1
mov dword [ebp - 0x14], 0
jmp 0x11174d6
cmp dword [ebp - 0x14], 0
jge 0x11174cf
jmp 0x11174ee
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 0x11173b5
cmp dword [ebp - 0x20], 0
je 0x1117518
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x111750b
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.01117560
jmp 0x1117518
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.01117640
movzx edx, byte [ebp - 0x19]
test edx, edx
je 0x111752d
mov eax, dword [ebp - 8]
add eax, 4
push eax
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
cmp dword [ebp - 0x14], 0
jge 0x1117542
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0108d130
xor al, al
jmp 0x1117555
cmp dword [ebp - 0x20], 0
jne 0x1117553
push 0x12
call fcn.0108d110
xor al, al
jmp 0x1117555
mov al, 1
mov esp, ebp
pop ebp
ret 0x10