Function at 0x404840
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x42a]
lea edi, [ebp - 0x220]
push ebx
lea ebx, [ebp - 0x222]
sub esp, 0x56c
mov dword [esp + 4], eax
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
mov ecx, ebx
mov eax, 0xaaaaaaaa
mov dword [ebp - 0x222], 0xaaaaaaaa
sub ecx, edi
mov dword [ebp - 0x1c], 0xaaaaaaaa
sub esp, 8
add ecx, 0x20a
shr ecx, 2
rep stosd dword es:[edi], eax
mov dword [esp], ebx
call dword [0x410020]
mov dword [esp + 4], 0x436
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
mov esi, eax
call fcn.0040aa60
xor eax, eax
cmp esi, ebx
mov dword [esp + 0xc], ebx
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str._Temp_get__:_Got__p__expected__p_n
call fcn.0040acd0
mov dword [esp + 4], 0x437
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov eax, ebx
shr eax, 0x10
je 0x404d60
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x564], str._invalid_
sub esp, 8
test eax, eax
jne 0x4049ec
cmp word [ebp - 0x222], 0
je 0x40492e
add eax, 1
cmp word [ebx + eax*2], 0
jne 0x404924
mov edx, 0x224c
lea esi, [ebp - 0x434]
mov dword [ebp - 0x55c], ebx
mov word [ebp - 0x556], dx
lea edx, [ebp - 0x554]
mov dword [ebp - 0x560], esi
lea esi, [eax - 1]
cmp edx, dword [ebp - 0x560]
ja 0x4049bb
lea esi, [esi]
test eax, eax
jle 0x4049bb
add dword [ebp - 0x55c], 2
mov eax, dword [ebp - 0x55c]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x404d30
ja 0x404be4
cmp ax, 9
je 0x404d13
cmp ax, 0xa
jne 0x404cb3
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
lea esi, [esi]
nop
lea esi, [eax - 1]
cmp edx, dword [ebp - 0x560]
jbe 0x404960
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x4049d5
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x556]
mov dword [esp], eax
call fcn.0040b780
mov dword [ebp - 0x564], eax
lea eax, [ebp - 0x42a]
shr eax, 0x10
je 0x404d88
lea eax, [ebp - 0x42a]
mov dword [esp + 4], 0xffffffff
mov esi, str._invalid_
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x404af8
cmp word [ebp - 0x42a], 0
je 0x404a3e
lea esi, [esi]
add eax, 1
cmp word [ebp + eax*2 - 0x42a], 0
jne 0x404a30
mov edx, 0x224c
lea esi, [ebp - 0x434]
lea ecx, [ebp - 0x42a]
mov word [ebp - 0x556], dx
lea edx, [ebp - 0x554]
mov dword [ebp - 0x560], esi
lea esi, [eax - 1]
mov dword [ebp - 0x55c], ecx
cmp edx, dword [ebp - 0x560]
ja 0x404acb
test eax, eax
jle 0x404acb
add dword [ebp - 0x55c], 2
mov eax, dword [ebp - 0x55c]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x404c10
ja 0x404bc1
cmp ax, 9
je 0x404ca0
cmp ax, 0xa
jne 0x404c40
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
lea esi, [esi]
lea esi, [eax - 1]
cmp edx, dword [ebp - 0x560]
jbe 0x404a73
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x404ae5
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x556]
mov dword [esp], eax
call fcn.0040b780
mov esi, eax
lea eax, [ebp - 0x42a]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_wcscmp]
mov edi, dword [ebp - 0x564]
mov dword [esp + 8], esi
test eax, eax
mov dword [esp + 4], str.Expected_path__s__got__s_n
sete al
mov dword [esp + 0xc], edi
mov edi, 0x40d424
movzx eax, al
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, dword [str.windows]
mov ecx, 5
mov ebx, eax
repe cmpsb byte [esi], byte es:[edi]
seta dl
sbb dl, 0
xor eax, eax
test dl, dl
sete al
add ebx, 1
mov dword [esp], eax
call fcn.0040ae40
jmp 0x404bb0
mov dword [esp + 4], 0x439
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
movzx edx, word [ebp + ebx*2 - 0x222]
mov dword [esp + 4], str.Too_many_bytes_were_zeroed____x_n
cmp dx, 0xaaaa
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040acd0
call fcn.0040ae90
call fcn.0040ae70
test eax, eax
jne 0x404b70
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ax, 0x22
je 0x404d43
cmp ax, 0x5c
jne 0x404c40
mov edi, 0x5c5c
add edx, 2
mov eax, esi
mov word [edx - 2], di
jmp 0x404ac0
cmp ax, 0x22
je 0x404c23
cmp ax, 0x5c
jne 0x404cb3
mov edi, 0x5c5c
add edx, 2
mov eax, esi
mov word [edx - 2], di
jmp 0x4049b0
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
jmp 0x404ac0
mov eax, 0x225c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
jmp 0x4049b0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x404db2
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ecx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], cl
movzx ecx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [edx - 3], cl
movzx ecx, byte [edi + str.0123456789abcdef]
mov byte [edx - 1], al
mov eax, esi
mov byte [edx - 2], cl
jmp 0x404ac0
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
jmp 0x404ac0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x404dc0
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ecx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], cl
movzx ecx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [edx - 3], cl
movzx ecx, byte [edi + str.0123456789abcdef]
mov byte [edx - 1], al
mov eax, esi
mov byte [edx - 2], cl
jmp 0x4049b0
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
jmp 0x4049b0
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
jmp 0x4049b0
mov eax, 0x225c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
jmp 0x404ac0
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00401490
mov dword [ebp - 0x564], eax
lea eax, [ebp - 0x42a]
shr eax, 0x10
jne 0x4049fb
lea eax, [ebp - 0x42a]
mov dword [esp], str._04x
mov dword [ebp - 0x55c], eax
movzx eax, word [ebp - 0x55c]
mov dword [esp + 4], eax
call fcn.00401490
mov esi, eax
jmp 0x404af8
mov byte [edx], al
add edx, 1
mov eax, esi
jmp 0x404ac0
mov byte [edx], al
add edx, 1
mov eax, esi
jmp 0x4049b0