Function at 0x404dd0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x220]
lea esi, [ebp - 0x630]
push ebx
lea ebx, [ebp - 0x428]
sub esp, 0x78c
mov dword [esp + 4], eax
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
mov dword [esp + 4], 0x2d8
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov eax, dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
mov dword [esp], esi
mov dword [ebp - 0x780], eax
call eax
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.SetCurrentDirectoryW_to_temp_path_failed_n
call fcn.0040acd0
mov dword [esp], ebx
call dword [0x410060]
mov dword [esp + 4], 0x2da
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
movzx edi, al
call fcn.0040aa60
xor eax, eax
cmp edi, 1
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.p_Current_get_returned__u_n
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x40ddf0
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_wcscat]
mov dword [esp + 4], 0x2dc
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x77c], eax
je 0x405760
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x778], str._invalid_
sub esp, 8
test eax, eax
jne 0x404fd7
cmp word [ebp - 0x428], 0
je 0x404efa
nop
add eax, 1
cmp word [ebx + eax*2], 0
jne 0x404ef0
mov edx, 0x224c
lea edi, [ebp - 0x63a]
mov dword [ebp - 0x770], ebx
mov word [ebp - 0x75c], dx
lea edx, [ebp - 0x75a]
mov dword [ebp - 0x76c], edi
jmp 0x404f46
cmp ax, 9
je 0x4056e0
cmp ax, 0xa
jne 0x405680
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
mov eax, dword [ebp - 0x774]
lea ecx, [eax - 1]
mov dword [ebp - 0x774], ecx
cmp edx, dword [ebp - 0x76c]
ja 0x404fa0
test eax, eax
jle 0x404fa0
add dword [ebp - 0x770], 2
mov eax, dword [ebp - 0x770]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x405654
jbe 0x404f20
cmp ax, 0x22
je 0x405665
cmp ax, 0x5c
jne 0x405680
mov eax, 0x5c5c
add edx, 2
mov word [edx - 2], ax
jmp 0x404f40
mov edi, dword [ebp - 0x774]
mov byte [edx], 0x22
lea eax, [edx + 1]
test edi, edi
jle 0x404fc0
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x75c]
mov dword [esp], eax
call fcn.0040b780
mov dword [ebp - 0x778], eax
mov eax, esi
shr eax, 0x10
je 0x405740
mov dword [esp + 4], 0xffffffff
mov edi, str._invalid_
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x4050f4
cmp word [ebp - 0x630], 0
je 0x40501a
lea esi, [esi]
add eax, 1
cmp word [esi + eax*2], 0
jne 0x405010
mov edx, 0x224c
lea edi, [ebp - 0x63a]
mov dword [ebp - 0x770], esi
mov word [ebp - 0x75c], dx
lea edx, [ebp - 0x75a]
mov dword [ebp - 0x76c], edi
jmp 0x405066
cmp ax, 9
je 0x405621
cmp ax, 0xa
jne 0x4055c3
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
mov eax, dword [ebp - 0x774]
lea ecx, [eax - 1]
mov dword [ebp - 0x774], ecx
cmp edx, dword [ebp - 0x76c]
ja 0x4050c0
test eax, eax
jle 0x4050c0
add dword [ebp - 0x770], 2
mov eax, dword [ebp - 0x770]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x405632
jbe 0x405040
cmp ax, 0x22
je 0x405643
cmp ax, 0x5c
jne 0x4055c3
mov eax, 0x5c5c
add edx, 2
mov word [edx - 2], ax
jmp 0x405060
mov eax, dword [ebp - 0x774]
mov byte [edx], 0x22
test eax, eax
jle 0x4057d0
mov edi, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x75c]
mov dword [esp], eax
call fcn.0040b780
mov edi, eax
mov eax, dword [sym.imp.msvcrt.dll_wcscmp]
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [ebp - 0x774], eax
call eax
mov ecx, dword [ebp - 0x778]
mov dword [esp + 8], edi
test eax, eax
mov dword [esp + 4], str.p_Current_get__:_expect:__s__got__s_n
sete al
mov dword [esp + 0xc], ecx
movzx eax, al
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x2df
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
lea eax, [ebp - 0x220]
mov dword [esp], eax
mov eax, dword [ebp - 0x780]
call eax
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.SetCurrentDirectoryW_to_origin_path_failed_n
call fcn.0040acd0
mov dword [esp], ebx
call dword [0x410060]
mov dword [esp + 4], 0x2e1
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
movzx esi, al
call fcn.0040aa60
xor eax, eax
cmp esi, 1
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.p_Current_get_returned__u_n
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x2e2
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov ecx, dword [ebp - 0x77c]
test ecx, ecx
je 0x405720
mov dword [esp + 4], 0xffffffff
mov esi, str._invalid_
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x4052b8
cmp word [ebp - 0x428], 0
je 0x4051fa
nop
add eax, 1
cmp word [ebx + eax*2], 0
jne 0x4051f0
mov edx, 0x224c
lea esi, [ebp - 0x63a]
mov dword [ebp - 0x770], ebx
mov word [ebp - 0x75c], dx
lea edx, [ebp - 0x75a]
mov dword [ebp - 0x76c], esi
lea esi, [eax - 1]
cmp edx, dword [ebp - 0x76c]
ja 0x40528b
lea esi, [esi]
test eax, eax
jle 0x40528b
add dword [ebp - 0x770], 2
mov eax, dword [ebp - 0x770]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x4055b0
ja 0x405420
cmp ax, 9
je 0x405593
cmp ax, 0xa
jne 0x405533
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 - 0x76c]
jbe 0x405230
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x4052a5
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x75c]
mov dword [esp], eax
call fcn.0040b780
mov esi, eax
lea eax, [ebp - 0x220]
shr eax, 0x10
je 0x4056f1
lea eax, [ebp - 0x220]
mov dword [esp + 4], 0xffffffff
mov edi, str._invalid_
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x4053e1
cmp word [ebp - 0x220], 0
je 0x40530e
lea esi, [esi]
nop
add eax, 1
cmp word [ebp + eax*2 - 0x220], 0
jne 0x405300
mov edx, 0x224c
lea ecx, [ebp - 0x220]
lea edi, [ebp - 0x63a]
mov dword [ebp - 0x778], esi
mov word [ebp - 0x75c], dx
lea esi, [eax - 1]
lea edx, [ebp - 0x75a]
mov dword [ebp - 0x76c], edi
mov dword [ebp - 0x770], ecx
cmp edx, dword [ebp - 0x76c]
ja 0x4053ab
lea esi, [esi]
test eax, eax
jle 0x4053ab
add dword [ebp - 0x770], 2
mov eax, dword [ebp - 0x770]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x4054d3
ja 0x405450
cmp ax, 9
je 0x4054f0
cmp ax, 0xa
jne 0x405473
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 - 0x76c]
jbe 0x405350
mov eax, esi
mov byte [edx], 0x22
mov esi, dword [ebp - 0x778]
test eax, eax
jle 0x4057c0
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x75c]
mov dword [esp], eax
call fcn.0040b780
mov edi, eax
lea eax, [ebp - 0x220]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x774]
call eax
mov dword [esp + 0xc], esi
test eax, eax
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.p_Current_get__:_expect:__s__got__s_n
movzx eax, al
mov dword [esp], eax
call fcn.0040acd0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ax, 0x22
je 0x405520
cmp ax, 0x5c
jne 0x405533
mov edi, 0x5c5c
add edx, 2
mov eax, esi
mov word [edx - 2], di
jmp 0x405280
cmp ax, 0x22
je 0x405503
cmp ax, 0x5c
jne 0x405473
mov edi, 0x5c5c
add edx, 2
mov eax, esi
mov word [edx - 2], di
jmp 0x4053a0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x405780
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 0x4053a0
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
jmp 0x4053a0
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
jmp 0x4053a0
mov eax, 0x225c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
jmp 0x4053a0
mov eax, 0x225c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
jmp 0x405280
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x405790
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 0x405280
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
jmp 0x405280
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
jmp 0x405280
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4057a0
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 byte [edx - 2], cl
jmp 0x405060
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
jmp 0x405060
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
jmp 0x405060
mov eax, 0x225c
add edx, 2
mov word [edx - 2], ax
jmp 0x405060
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
jmp 0x404f40
mov eax, 0x225c
add edx, 2
mov word [edx - 2], ax
jmp 0x404f40
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4057b0
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 byte [edx - 2], cl
jmp 0x404f40
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
jmp 0x404f40
lea eax, [ebp - 0x220]
mov dword [esp], str._04x
mov dword [ebp - 0x76c], eax
movzx eax, word [ebp - 0x76c]
mov dword [esp + 4], eax
call fcn.00401490
mov edi, eax
jmp 0x4053e1
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00401490
mov esi, eax
jmp 0x4052b8
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00401490
mov edi, eax
jmp 0x4050f4
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00401490
mov dword [ebp - 0x778], eax
jmp 0x404fd7
mov byte [edx], al
add edx, 1
mov eax, esi
jmp 0x4053a0
mov byte [edx], al
add edx, 1
mov eax, esi
jmp 0x405280
mov byte [edx], al
add edx, 1
jmp 0x405060
mov byte [edx], al
add edx, 1
jmp 0x404f40
lea eax, [edx + 1]
jmp 0x4053ce
lea eax, [edx + 1]
jmp 0x4050e1