Function at 0x6643a460
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 0x6643a641
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call edi
mov esi, eax
test eax, eax
jne 0x6643a641
mov dword [esp + 4], 0x2e
mov dword [esp], ebx
call edi
test eax, eax
je 0x6643a660
mov dword [esp + 4], str..vxd
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x6643a684
cmp word [ebx], 0
je 0x6643a4f4
mov eax, ebx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x6643a4e0
sub eax, ebx
cmp eax, 0x18
jg 0x6643a684
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 0x6643a7f0
mov dword [esp], str._JDf
xor ebx, ebx
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov edx, 0x6645286c
sub esp, 4
jmp 0x6643a557
test eax, eax
je 0x6643a6a0
add ebx, 1
add edx, 0x18
cmp ebx, 0x20
je 0x6643a798
mov eax, dword [edx]
cmp eax, edi
jne 0x6643a540
lea eax, [ebx + ebx*2]
mov eax, dword [eax*8 + 0x66452868]
mov dword [ebp - 0x254], eax
mov dword [esp], str._JDf
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov ecx, dword [ebp + 0x10]
xor eax, eax
sub esp, 4
test ecx, ecx
je 0x6643a598
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0xb
jbe 0x6643a598
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 0x6643a9d6
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.6643f6c0
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], 0x66444ae8
mov dword [esp], 0
call fcn.6643a070
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 0x6643a7c0
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6643a670
sub eax, ebx
cmp eax, 0x10
jle 0x6643a7c0
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 0x6643a8d1
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 0x6643a760
mov eax, dword [ebp - 0x250]
lea ecx, [ebx + ebx*2]
mov edx, dword [ebp - 0x24c]
mov dword [ecx*8 + 0x66452860], eax
mov dword [ecx*8 + 0x66452864], edx
lea eax, [ebx + ebx*2]
lea ebx, [eax*8 + 0x66452860]
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 0x6643a56d
test byte [0x66444ae8], 2
jne 0x6643a8e2
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [ebp - 0x254], 0
sub esp, 4
jmp 0x6643a56d
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 0x6643a507
test byte [0x66444ae8], 1
je 0x6643a641
mov eax, ebx
shr eax, 0x10
test eax, eax
je 0x6643a99c
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 0x6643a619
movzx edx, word [ebp - 0x23a]
test dx, dx
je 0x6643a9c0
lea esi, [esi]
nop
mov ecx, eax
cmp word [ebx + ecx*2 + 2], 0
lea eax, [eax + 1]
jne 0x6643a840
lea esi, [ebp - 0x21e]
mov eax, 0x224c
mov word [ebp - 0x220], ax
lea edi, [ebp - 0xfe]
jmp 0x6643a8a8
cmp dx, 9
je 0x6643a97a
cmp dx, 0xa
jne 0x6643a929
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
lea esi, [esi]
nop
lea eax, [ecx - 1]
cmp esi, edi
ja 0x6643a5eb
test ecx, ecx
jle 0x6643a5eb
movzx edx, word [ebx]
mov ecx, eax
add ebx, 2
cmp dx, 0xd
je 0x6643a90b
jbe 0x6643a867
cmp dx, 0x22
je 0x6643a98b
cmp dx, 0x5c
jne 0x6643a91c
mov eax, 0x5c5c
add esi, 2
mov word [esi - 2], ax
jmp 0x6643a890
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
jmp 0x6643a56d
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], 0x66444ae8
mov dword [esp], 1
call fcn.6643a070
jmp 0x6643a7a5
mov eax, 0x725c
add esi, 2
mov word [esi - 2], ax
jmp 0x6643a890
lea eax, [edx - 0x20]
cmp ax, 0x5e
jbe 0x6643a9b6
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 0x6643a890
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x6643a890
mov eax, 0x225c
add esi, 2
mov word [esi - 2], ax
jmp 0x6643a890
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call fcn.6643a100
mov edx, eax
jmp 0x6643a619
mov byte [esi], dl
add esi, 1
jmp 0x6643a890
mov word [ebp - 0x220], 0x224c
lea esi, [ebp - 0x21e]
mov byte [ebp - 0x21e], 0x22
lea eax, [esi + 1]
jmp 0x6643a606