Function at 0x4069a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x36c
mov esi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 4], str.runtime.system32
mov dword [esp], eax
call esi
test eax, eax
je 0x4069da
mov dword [esp + 4], str.runtime.drivers
mov dword [esp], ebx
call esi
test eax, eax
jne 0x406aa8
mov eax, 0x25
lea edi, [ebp - 0x220]
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathW]
sub esp, 0x10
test eax, eax
je 0x406a78
mov dword [esp + 4], str.runtime.inf
mov dword [esp], ebx
call esi
test eax, eax
jne 0x406a40
mov dword [esp + 4], str.inf
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscat]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsdup]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.runtime.drivers
mov dword [esp], ebx
call esi
test eax, eax
je 0x406a90
mov dword [esp + 4], str.runtime.wbem
mov dword [esp], ebx
call esi
test eax, eax
jne 0x406a2b
mov dword [esp + 4], str.wbem
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscat]
jmp 0x406a2b
test byte [0x40a030], 2
jne 0x406ae0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.drivers
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscat]
jmp 0x406a2b
mov dword [esp + 4], str.runtime.wbem
mov dword [esp], ebx
call esi
test eax, eax
je 0x4069da
mov dword [esp + 4], str.runtime.windows
mov dword [esp], ebx
call esi
test eax, eax
jne 0x406c18
mov eax, 0x24
jmp 0x4069df
test ebx, ebx
je 0x406db0
mov eax, ebx
shr eax, 0x10
je 0x406d88
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x40b015
test ecx, ecx
jne 0x406be4
movzx eax, word [ebx]
test ax, ax
je 0x406dba
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x406b28
mov ecx, 0x224c
lea esi, [ebp - 0x34a]
lea edi, [ebp - 0x22a]
mov word [ebp - 0x34c], cx
jmp 0x406b80
cmp ax, 9
je 0x406d00
cmp ax, 0xa
jne 0x406d1e
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
lea ecx, [edx - 1]
test edx, edx
jle 0x406bb8
cmp esi, edi
ja 0x406bb8
movzx eax, word [ebx]
mov edx, ecx
add ebx, 2
cmp ax, 0xd
je 0x406ce8
jbe 0x406b50
cmp ax, 0x22
je 0x406d70
cmp ax, 0x5c
jne 0x406d11
mov eax, 0x5c5c
add esi, 2
mov word [esi - 2], ax
jmp 0x406b70
mov byte [esi], 0x22
test ecx, ecx
jle 0x406dd3
mov ebx, 0x2e2e
mov byte [esi + 3], 0x2e
lea eax, [esi + 4]
mov word [esi + 1], bx
mov byte [eax], 0
lea eax, [ebp - 0x34c]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_get_folder_path_for__s_n
mov dword [esp + 8], str.lookup_expression
mov dword [esp + 4], 0x40a030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x406a83
mov dword [esp + 4], str.runtime.inf
mov dword [esp], ebx
call esi
test eax, eax
je 0x406ad2
mov dword [esp + 4], str.runtime.programfiles
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x26
test edx, edx
je 0x4069df
mov dword [esp + 4], str.runtime.commonfiles
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x2b
test edx, edx
je 0x4069df
mov dword [esp + 4], str.runtime.programdata
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x23
test edx, edx
je 0x4069df
mov dword [esp + 4], str.runtime.fonts
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x14
test edx, edx
je 0x4069df
test byte [0x40a030], 1
je 0x406a81
or edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Unknown_expression__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.lookup_expression
mov dword [esp + 4], 0x40a030
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x406a34
mov eax, 0x725c
add esi, 2
mov word [esi - 2], ax
jmp 0x406b70
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x406b70
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x406da0
mov ecx, eax
mov byte [esi], 0x5c
add esi, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdef0123456789abcdefGCC:__GNU__10.3.0]
mov byte [esi - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdef0123456789abcdefGCC:__GNU__10.3.0]
mov byte [esi - 3], cl
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefGCC:__GNU__10.3.0]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdef0123456789abcdefGCC:__GNU__10.3.0]
mov byte [esi - 1], al
mov byte [esi - 2], cl
jmp 0x406b70
mov eax, 0x225c
add esi, 2
mov word [esi - 2], ax
jmp 0x406b70
movzx ebx, bx
mov dword [esp], 0x40b008
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x406be4
mov byte [esi], al
inc esi
jmp 0x406b70
mov eax, 0x40b00e
jmp 0x406be4
mov eax, 0x224c
mov byte [ebp - 0x34a], 0x22
lea esi, [ebp - 0x34a]
mov word [ebp - 0x34c], ax
lea eax, [esi + 1]
jmp 0x406bd3