Function at 0x402290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x37c
mov esi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 4], str.runtime.system32
mov dword [esp], eax
call esi
test eax, eax
jne 0x402360
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 sym._SHGetSpecialFolderPathW_16
sub esp, 0x10
test eax, eax
je 0x4023b0
mov dword [esp + 4], str.runtime.inf
mov dword [esp], ebx
call esi
test eax, eax
jne 0x402320
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 0x4023c8
mov dword [esp + 4], str.runtime.wbem
mov dword [esp], ebx
call esi
test eax, eax
jne 0x40230d
mov dword [esp + 4], str.wbem
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscat]
jmp 0x40230d
mov dword [esp + 4], str.runtime.drivers
mov dword [esp], ebx
call esi
test eax, eax
je 0x4022b9
mov dword [esp + 4], str.runtime.wbem
mov dword [esp], ebx
call esi
test eax, eax
je 0x4022b9
mov dword [esp + 4], str.runtime.windows
mov dword [esp], ebx
call esi
test eax, eax
jne 0x4025f0
mov eax, 0x24
jmp 0x4022be
test byte [section..data], 2
jne 0x4023e0
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 0x40230d
mov eax, ebx
shr eax, 0x10
je 0x402568
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x40b019
test ecx, ecx
jne 0x4024f4
cmp word [ebx], 0
je 0x4026cb
lea esi, cs:[esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x402420
mov edi, 0x224c
mov dword [ebp - 0x35c], ebx
lea eax, [ebp - 0x34a]
mov word [ebp - 0x34c], di
movzx edi, word [str._r_]
jmp 0x402483
cmp cx, 9
je 0x402538
cmp cx, 0xa
jne 0x402598
mov esi, 0x6e5c
add eax, 2
mov word [eax - 2], si
sub edx, 1
jb 0x4026c0
lea ecx, [ebp - 0x22a]
cmp ecx, eax
jb 0x4024c8
add dword [ebp - 0x35c], 2
mov ecx, dword [ebp - 0x35c]
movzx ecx, word [ecx - 2]
cmp cx, 0xd
je 0x402528
jbe 0x402450
cmp cx, 0x22
je 0x402550
cmp cx, 0x5c
jne 0x402580
mov ecx, 0x5c5c
add eax, 2
mov word [eax - 2], cx
jmp 0x402470
mov byte [eax], 0x22
test edx, edx
je 0x4026c3
mov byte [eax + 3], 0x2e
mov edx, 0x2e2e
mov word [eax + 1], dx
lea edx, [eax + 4]
lea eax, [ebp - 0x34c]
mov byte [edx], 0
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], 0x40a000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x4023bb
mov word [eax], di
add eax, 2
jmp 0x402470
mov ebx, 0x745c
add eax, 2
mov word [eax - 2], bx
jmp 0x402470
movzx ecx, word [0x40bbc0]
add eax, 2
mov word [eax - 2], cx
jmp 0x402470
mov dword [esp + 4], ebx
mov dword [esp], 0x40b00c
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4024f4
lea esi, [ecx - 0x20]
cmp si, 0x5e
ja 0x402598
mov byte [eax], cl
add eax, 1
jmp 0x402470
mov esi, ecx
mov byte [eax], 0x5c
add eax, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov esi, ecx
shr si, 8
and esi, 0xf
mov byte [eax - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov esi, ecx
and ecx, 0xf
shr si, 4
movzx ecx, byte [ecx + str.0123456789abcdefcabinet_copy_file]
and esi, 0xf
mov byte [eax - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov byte [eax - 1], cl
mov byte [eax - 2], bl
jmp 0x402470
mov dword [esp + 4], str.runtime.inf
mov dword [esp], ebx
call esi
test eax, eax
je 0x40239f
mov dword [esp + 4], str.runtime.programfiles
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x26
test edx, edx
je 0x4022be
mov dword [esp + 4], str.runtime.commonfiles
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x2b
test edx, edx
je 0x4022be
mov dword [esp + 4], str.runtime.programdata
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x23
test edx, edx
je 0x4022be
mov dword [esp + 4], str.runtime.fonts
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x14
test edx, edx
je 0x4022be
test byte [section..data], 1
je 0x4023b9
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], 0x40a000
mov dword [esp], eax
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x4023bb
mov byte [eax], 0x22
lea edx, [eax + 1]
jmp 0x4024e3
mov eax, 0x224c
mov byte [ebp - 0x34a], 0x22
lea edx, [ebp - 0x349]
mov word [ebp - 0x34c], ax
jmp 0x4024e3