Function at 0x6ad47140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x23c
mov ebx, dword [ebp + 0xc]
test byte [0x6ad4c0a0], 8
jne 0x6ad473b0
mov dword [esp + 4], 0x2e
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
jne 0x6ad475f9
lea esi, [ebp - 0x220]
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
mov edx, esi
sub esp, 8
cmp word [ebp - 0x220], 0
je 0x6ad471a9
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x6ad471a0
xor eax, eax
mov ecx, 0x5c
jmp 0x6ad471bf
movzx ecx, word [eax + 0x6ad4e7de]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x6ad471b8
cmp word [ebp - 0x220], 0
mov edx, esi
je 0x6ad471e9
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x6ad471e0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x6ad471f0
cmp word [ebp - 0x220], 0
mov edx, esi
je 0x6ad47219
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6ad47210
xor eax, eax
mov ecx, 0x2e
jmp 0x6ad4722f
movzx ecx, word [eax + 0x6ad4e7ee]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x6ad47228
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x228]
mov eax, dword [eax]
mov dword [esp], edi
mov dword [esp + 8], edx
mov dword [esp + 4], 0
call dword [eax + 0x24]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x6ad47270
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x6c
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
mov eax, dword [ebp - 0x228]
test ebx, ebx
je 0x6ad47603
xor edi, edi
mov dword [ebx], sym._MSTASK_ITask_QueryInterface_12
mov word [ebx + 0x18], di
mov dword [ebx + 4], 0x6ad4ef00
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x2c], eax
xor eax, eax
mov word [ebx + 0x68], ax
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x30], 0x41305
mov dword [ebx + 0x34], 0x3c000a
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0x20
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x40], 0xf731400
lea ecx, [ebp - 0x224]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x44]
sub esp, 8
mov edi, eax
test eax, eax
jne 0x6ad4738d
mov eax, dword [ebp - 0x224]
lea ecx, [ebx + 0x10]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x30]
mov edi, eax
mov eax, dword [ebp - 0x224]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test edi, edi
je 0x6ad475ca
mov eax, dword [ebx + 0xc]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebx]
sub esp, 4
mov dword [esp], ebx
call dword [eax + 8]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x6ad475c0
mov eax, ebx
shr eax, 0x10
je 0x6ad47490
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x6ad4e3a9
test ecx, ecx
jne 0x6ad474a3
movzx eax, word [ebx]
test ax, ax
je 0x6ad475db
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x6ad473f8
mov ecx, 0x224c
mov dword [ebp + 0xc], ebx
mov esi, ebx
mov word [ebp - 0x220], cx
lea ecx, [ebp - 0x21e]
jmp 0x6ad4745e
cmp ax, 9
je 0x6ad474f8
cmp ax, 0xa
jne 0x6ad47516
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0xfe]
lea edi, [edx - 1]
cmp ecx, eax
ja 0x6ad47588
test edx, edx
jle 0x6ad47588
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x6ad474e0
jbe 0x6ad47420
cmp ax, 0x22
je 0x6ad47570
cmp ax, 0x5c
jne 0x6ad47509
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x6ad47440
movzx eax, bx
mov dword [esp], 0x6ad4e3b3
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___p__n
mov dword [esp + 0x14], esi
mov dword [esp + 8], str.TaskConstructor
mov dword [esp + 4], 0x6ad4c0a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x6ad4715c
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6ad47440
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6ad47440
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x6ad475b8
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefload_unicode_strings]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefload_unicode_strings]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefload_unicode_strings]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefload_unicode_strings]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x6ad47440
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x6ad47440
mov byte [ecx], 0x22
mov ebx, dword [ebp + 0xc]
test edi, edi
jle 0x6ad475f4
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x220]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x6ad474a3
mov byte [ecx], al
inc ecx
jmp 0x6ad47440
mov eax, 0x6ad4e330
jmp 0x6ad474a3
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
lock inc dword [section..bss]
jmp 0x6ad47264
mov eax, 0x224c
mov byte [ebp - 0x21e], 0x22
lea ecx, [ebp - 0x21e]
mov word [ebp - 0x220], ax
lea eax, [ecx + 1]
jmp 0x6ad475a2
mov edi, 0x80070057
jmp 0x6ad47264
mov edx, dword [eax]
mov dword [esp], eax
mov edi, 0x8007000e
call dword [edx + 8]
push eax
jmp 0x6ad47264