Function at 0x100190a8
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x10086084]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
xor esi, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 8]
mov eax, edx
mov dword [esp + 0x1c], eax
mov ebx, esi
mov dword [esp + 0x20], ecx
push edi
mov edi, esi
mov dword [esp + 0x14], edi
test eax, eax
je 0x10019302
cmp word [eax], si
je 0x10019302
push esi
push esi
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x100192fa
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push 0x4021
mov dword [esp + 0x44], eax
lea eax, [esp + 0x54]
push 7
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x18
push eax
push 0x100001
lea eax, [esp + 0x30]
mov dword [esp + 0x50], esi
push eax
mov dword [esp + 0x5c], 0x40
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
js 0x100192c9
mov eax, dword fs:[0x30]
push 0x470
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x100192d0
xor eax, eax
inc eax
inc ebx
mov dword [esp + 0x10], eax
test eax, eax
je 0x100192aa
push 0x470
xor ecx, ecx
push ecx
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x50]
xor ecx, ecx
push ecx
push ecx
push 1
push 3
push 0x470
push esi
push eax
push ecx
push ecx
push ecx
push dword [esp + 0x44]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
test eax, eax
js 0x1001928b
mov eax, dword [esi + 0x3c]
lea ecx, [esi + 0x5e]
cmp eax, 2
jb 0x1001926b
shr eax, 1
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, dword [esi + 0x3c]
shr edx, 1
call fcn.1001a49d
test eax, eax
jne 0x1001926b
mov edx, ecx
mov ecx, dword [esp + 0x20]
call fcn.10036867
mov dword [esp + 0x18], eax
test eax, eax
je 0x10019279
push 6
xor eax, eax
lea edi, [esp + 0x5c]
cmp byte [esi + 0x44], 2
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jb 0x10019226
lea eax, [esi + 0x46]
xor ecx, ecx
cmp word [eax], cx
je 0x10019226
push eax
push 0xd
pop edx
lea ecx, [esp + 0x5c]
call fcn.10015ac7
push dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
push eax
push esi
call fcn.10019318
test eax, eax
jne 0x10019253
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov dword [esp + 0x14], edi
mov ebx, eax
jmp 0x10019259
mov edi, dword [esp + 0x14]
xor eax, eax
push dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
test ebx, ebx
jne 0x1001917f
jmp 0x100192aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov dword [esp + 0x14], edi
mov ebx, eax
jmp 0x1001926b
cmp eax, 0x80000006
je 0x10019299
cmp eax, 0xc000000f
jne 0x100192a1
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x1001926f
xor eax, eax
mov edi, 0xa1
mov ebx, eax
push dword [esp + 0x1c]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword fs:[0x30]
push esi
xor esi, esi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x100192d2
mov edi, 0xa1
jmp 0x100192d2
xor esi, esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100192eb
push eax
mov eax, dword fs:[0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
je 0x100192f6
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x10019304
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10083b20
mov esp, ebp
pop ebp
ret 4