Function at 0x6c83a7f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x26c
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp + 4], 0x2f
mov dword [esp], ebx
call edi
test eax, eax
jne 0x6c83a9d1
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call edi
mov esi, eax
test eax, eax
jne 0x6c83a9d1
mov dword [esp + 4], 0x2e
mov dword [esp], ebx
call edi
test eax, eax
je 0x6c83a9f0
mov dword [esp + 4], str..vxd
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x6c83aa14
cmp word [ebx], 0
je 0x6c83a884
mov eax, ebx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x6c83a870
sub eax, ebx
cmp eax, 0x18
jg 0x6c83aa14
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x23a]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcslwr]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
mov edi, eax
test eax, eax
je 0x6c83ab80
mov dword [esp], 0x6c845a80
xor ebx, ebx
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov edx, 0x6c85386c
sub esp, 4
jmp 0x6c83a8e7
test eax, eax
je 0x6c83aa30
add ebx, 1
add edx, 0x18
cmp ebx, 0x20
je 0x6c83ab28
mov eax, dword [edx]
cmp eax, edi
jne 0x6c83a8d0
lea eax, [ebx + ebx*2]
mov eax, dword [eax*8 + 0x6c853868]
mov dword [ebp - 0x254], eax
mov dword [esp], 0x6c845a80
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov ecx, dword [ebp + 0x10]
xor eax, eax
sub esp, 4
test ecx, ecx
je 0x6c83a928
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0xb
jbe 0x6c83a928
mov edx, dword [ecx + 8]
xor eax, eax
test edx, edx
setne al
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x254]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x254]
mov dword [esp + 0x18], 2
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
cmovne esi, dword [ebp - 0x254]
lea esp, [ebp - 0xc]
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
test eax, eax
mov byte [esi], 0x22
jle 0x6c83ad66
lea eax, [esi + 4]
mov ebx, 0x2e2e
mov byte [esi + 3], 0x2e
mov word [esi + 1], bx
mov byte [eax], 0
lea eax, [ebp - 0x220]
mov dword [esp], eax
call fcn.6c83fac0
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Unknown_unsupported_VxD__s._Try_setting_Windows_version_to_nt40_or_win31._n
mov dword [esp + 8], str.__wine_vxd_open
mov dword [esp + 4], 0x6c845ae8
mov dword [esp], 0
call fcn.6c83a680
xor esi, esi
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 2
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [ebx], 0
je 0x6c83ab50
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6c83aa00
sub eax, ebx
cmp eax, 0x10
jle 0x6c83ab50
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 2
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [ebp - 0x220]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x220]
sub esp, 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov dword [ebp - 0x254], eax
cmp eax, 0xffffffff
je 0x6c83ac61
lea edx, [ebp - 0x250]
mov dword [esp + 0x10], 6
mov dword [esp + 8], edx
lea edx, [ebp - 0x244]
mov dword [esp + 0xc], 8
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
sub esp, 0x14
test eax, eax
jne 0x6c83aaf0
mov eax, dword [ebp - 0x250]
lea ecx, [ebx + ebx*2]
mov edx, dword [ebp - 0x24c]
mov dword [ecx*8 + 0x6c853860], eax
mov dword [ecx*8 + 0x6c853864], edx
lea eax, [ebx + ebx*2]
lea ebx, [eax*8 + 0x6c853860]
mov eax, dword [ebp - 0x254]
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], eax
mov dword [esp + 4], str.DeviceIoControl
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x10], eax
jmp 0x6c83a8fd
test byte [0x6c845ae8], 2
jne 0x6c83ac72
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [ebp - 0x254], 0
sub esp, 4
jmp 0x6c83a8fd
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x23a]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov dword [esp + 4], str..vxd
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscat]
jmp 0x6c83a897
test byte [0x6c845ae8], 1
je 0x6c83a9d1
mov eax, ebx
shr eax, 0x10
test eax, eax
je 0x6c83ad2c
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x6c83a9a9
movzx edx, word [ebp - 0x23a]
test dx, dx
je 0x6c83ad50
lea esi, [esi]
nop
mov ecx, eax
cmp word [ebx + ecx*2 + 2], 0
lea eax, [eax + 1]
jne 0x6c83abd0
lea esi, [ebp - 0x21e]
mov eax, 0x224c
mov word [ebp - 0x220], ax
lea edi, [ebp - 0xfe]
jmp 0x6c83ac38
cmp dx, 9
je 0x6c83ad0a
cmp dx, 0xa
jne 0x6c83acb9
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
lea esi, [esi]
nop
lea eax, [ecx - 1]
cmp esi, edi
ja 0x6c83a97b
test ecx, ecx
jle 0x6c83a97b
movzx edx, word [ebx]
mov ecx, eax
add ebx, 2
cmp dx, 0xd
je 0x6c83ac9b
jbe 0x6c83abf7
cmp dx, 0x22
je 0x6c83ad1b
cmp dx, 0x5c
jne 0x6c83acac
mov eax, 0x5c5c
add esi, 2
mov word [esi - 2], ax
jmp 0x6c83ac20
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
jmp 0x6c83a8fd
mov dword [esp + 0xc], str.too_many_open_VxD_modules__please_report_n
mov dword [esp + 8], str.__wine_vxd_open
mov dword [esp + 4], 0x6c845ae8
mov dword [esp], 1
call fcn.6c83a680
jmp 0x6c83ab35
mov eax, 0x725c
add esi, 2
mov word [esi - 2], ax
jmp 0x6c83ac20
lea eax, [edx - 0x20]
cmp ax, 0x5e
jbe 0x6c83ad46
mov eax, edx
mov byte [esi], 0x5c
add esi, 5
shr ax, 0xc
movzx eax, ax
movzx eax, byte [eax + str.0123456789abcdef__wine_vxd_vxdloader]
mov byte [esi - 4], al
mov eax, edx
shr ax, 8
and eax, 0xf
movzx eax, byte [eax + str.0123456789abcdef__wine_vxd_vxdloader]
mov byte [esi - 3], al
mov eax, edx
and edx, 0xf
shr ax, 4
and eax, 0xf
movzx eax, byte [eax + str.0123456789abcdef__wine_vxd_vxdloader]
mov byte [esi - 2], al
movzx eax, byte [edx + str.0123456789abcdef__wine_vxd_vxdloader]
mov byte [esi - 1], al
jmp 0x6c83ac20
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x6c83ac20
mov eax, 0x225c
add esi, 2
mov word [esi - 2], ax
jmp 0x6c83ac20
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call fcn.6c83a3e0
mov edx, eax
jmp 0x6c83a9a9
mov byte [esi], dl
add esi, 1
jmp 0x6c83ac20
mov word [ebp - 0x220], 0x224c
lea esi, [ebp - 0x21e]
mov byte [ebp - 0x21e], 0x22
lea eax, [esi + 1]
jmp 0x6c83a996