Function at 0x402080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x21c
mov esi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 4], 0x40907c
mov dword [esp], eax
call esi
test eax, eax
jne 0x402150
mov eax, 0x25
lea edi, [ebp - 0x214]
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 0x4021a0
mov dword [esp + 4], str.runtime.inf
mov dword [esp], ebx
call esi
test eax, eax
jne 0x402110
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 0x4021b0
mov dword [esp + 4], str.runtime.wbem
mov dword [esp], ebx
call esi
test eax, eax
jne 0x4020fe
mov dword [esp + 4], str.wbem
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscat]
jmp 0x4020fe
mov dword [esp + 4], str.runtime.drivers
mov dword [esp], ebx
call esi
test eax, eax
je 0x4020a9
mov dword [esp + 4], str.runtime.wbem
mov dword [esp], ebx
call esi
test eax, eax
je 0x4020a9
mov dword [esp + 4], str.runtime.windows
mov dword [esp], ebx
call esi
test eax, eax
jne 0x402260
mov eax, 0x24
jmp 0x4020ae
test byte [section..data], 2
jne 0x4021d0
xor eax, eax
jmp 0x402107
mov dword [esp + 4], str.drivers
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscat]
jmp 0x4020fe
test ebx, ebx
je 0x402250
mov eax, ebx
shr eax, 0x10
je 0x402238
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x409015
test edx, edx
jne 0x402206
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
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], 0x408000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x402107
mov dword [esp + 4], ebx
mov dword [esp], 0x409008
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402206
mov eax, 0x40900e
jmp 0x402206
mov dword [esp + 4], str.runtime.inf
mov dword [esp], ebx
call esi
test eax, eax
je 0x40218f
mov dword [esp + 4], str.runtime.programfiles
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x26
test edx, edx
je 0x4020ae
mov dword [esp + 4], str.runtime.commonfiles
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x2b
test edx, edx
je 0x4020ae
mov dword [esp + 4], str.runtime.programdata
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x23
test edx, edx
je 0x4020ae
mov dword [esp + 4], str.runtime.fonts
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x14
test edx, edx
je 0x4020ae
test byte [section..data], 1
je 0x4021a9
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
xor eax, eax
mov dword [esp + 8], str.lookup_expression
mov dword [esp + 4], 0x408000
mov dword [esp], eax
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x402107