Function at 0x402cf0
Capabilities:
Clear file content
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x220]
mov esi, 0x40d2a0
push ebx
lea ebx, [ebp - 0x428]
sub esp, 0x4cc
mov dword [esp + 4], eax
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
mov dword [esp + 4], 0x453
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov eax, dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
mov dword [esp], ebx
mov dword [ebp - 0x4b0], 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], str.wine_test_dir
call dword [0x41003c]
mov dword [esp + 4], 0x456
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
mov ebx, eax
call fcn.0040aa60
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str._Make_dir__:_expect_1_got__d_n
mov dword [esp], eax
call fcn.0040acd0
mov eax, dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x40d2a0
mov dword [ebp - 0x4a8], eax
call eax
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x458
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.create_file_failed:_INVALID_HANDLE_VALUE_n
setne al
mov dword [esp], eax
call fcn.0040acd0
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], ebx
mov dword [ebp - 0x4ac], eax
call eax
sub esp, 4
mov dword [esp + 4], 0x40d2a0
mov dword [esp], 0x40d2a0
call dword [0x41002c]
mov dword [esp + 4], 0x45c
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
mov ebx, eax
call fcn.0040aa60
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str._Rename__:_expect:_ERROR_SUCCESS__got__d_n
xor ebx, ebx
xor edi, edi
mov dword [esp], eax
call fcn.0040acd0
mov dword [ebp - 0x4a0], 0x40f1cc
mov dword [ebp - 0x49c], str.wine_test_dir_f1_rename
jmp 0x402f71
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xdeadbeef
mov eax, dword [ebp - 0x49c]
add edi, 1
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [0x41002c]
mov dword [esp + 4], 0x468
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
mov esi, eax
call fcn.0040aa60
xor eax, eax
cmp ebx, esi
mov dword [esp + 0xc], ebx
sete al
mov dword [esp + 0x10], esi
mov dword [esp], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._Rename__:_test__d_expect:__d__got__d_n
call fcn.0040acd0
mov dword [esp + 4], 0x469
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str._Rename__:_test__d_errno_expect_0xdeadbeef__got__d_n
cmp dword [eax], 0xdeadbeef
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040acd0
test esi, esi
je 0x403052
cmp edi, 7
je 0x40315f
mov eax, dword [ebp - 0x4a0]
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 8]
add eax, 0xc
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x49c], ecx
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0xdeadbeef
test ebx, ebx
jne 0x402ea0
mov dword [esp + 0x18], 0
mov eax, dword [ebp - 0x4a8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 0
mov dword [esp], esi
call eax
sub esp, 0x1c
mov dword [ebp - 0x4a4], eax
mov dword [esp + 4], 0x462
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
xor eax, eax
cmp dword [ebp - 0x4a4], 0xffffffff
mov dword [esp + 4], str.create_file_failed:_INVALID_HANDLE_VALUE_n
setne al
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x463
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov eax, dword [ebp - 0x4a4]
lea ecx, [ebp - 0x490]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], str.GetFileInformationByHandle_failed_n
call fcn.0040acd0
mov eax, dword [ebp - 0x4a4]
mov dword [esp], eax
mov eax, dword [ebp - 0x4ac]
call eax
sub esp, 4
jmp 0x402ea0
mov eax, dword [ebp - 0x49c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x4a8]
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 0
call eax
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x46d
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.create_file_failed:_INVALID_HANDLE_VALUE_n
setne al
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x46e
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
lea eax, [ebp - 0x45c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], str.GetFileInformationByHandle_failed_n
call fcn.0040acd0
mov dword [esp], ebx
mov eax, dword [ebp - 0x4ac]
call eax
sub esp, 4
mov dword [esp + 4], 0x470
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov eax, dword [ebp - 0x430]
cmp dword [ebp - 0x464], eax
jne 0x403142
mov eax, dword [ebp - 0x42c]
cmp dword [ebp - 0x460], eax
sete al
movzx eax, al
mov esi, eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._Rename__:_test__d_expect_two_files_equivalent_n
mov dword [esp], esi
call fcn.0040acd0
cmp edi, 7
jne 0x402f53
mov dword [esp + 0x18], 0
mov eax, dword [ebp - 0x4a8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x40d2a0
call eax
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x477
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.create_file_failed:_INVALID_HANDLE_VALUE_n
setne al
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x479
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 7
mov dword [esp + 8], 0
call dword [sym.imp.kernel32.dll_SetFilePointerEx]
sub esp, 0x14
mov dword [esp], eax
mov dword [esp + 4], str.SetFilePointerEx_failed_n
call fcn.0040acd0
mov dword [esp + 4], 0x47a
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetEndOfFile]
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.SetEndOfFile_failed_n
call fcn.0040acd0
mov dword [esp], ebx
mov eax, dword [ebp - 0x4ac]
call eax
sub esp, 4
mov dword [esp + 4], str.wine_test_dir_f1_rename
mov dword [esp], 0x40d2a0
call dword [0x41002c]
mov dword [esp + 4], 0x47d
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
mov ebx, eax
call fcn.0040aa60
xor eax, eax
cmp ebx, 0xb7
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str._Rename__:_expect:_ERROR_ALREADY_EXISTS__got__d_n
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x47e
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov dword [esp], 0x40d2a0
call dword [0x410054]
test edx, edx
jne 0x403464
mov dword [esp + 4], eax
mov dword [esp], 0x40db72
call fcn.00401490
mov ebx, eax
mov dword [esp], 0x40d2a0
call dword [0x410054]
mov dword [esp + 8], ebx
xor eax, 7
mov dword [esp + 4], str._Rename__:_expect:_7__got__s_n
or eax, edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x480
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov dword [esp], str.wine_test_dir_f1_rename
call dword [0x410054]
test edx, edx
je 0x403480
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str._lx_08lx
call fcn.00401490
mov ebx, eax
mov dword [esp], str.wine_test_dir_f1_rename
call dword [0x410054]
mov dword [esp + 8], ebx
or eax, edx
mov dword [esp + 4], str._Rename__:_expect:_0__got__s_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x483
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov ebx, dword [sym.imp.kernel32.dll_DeleteFileW]
mov dword [esp], str.wine_test_dir_f1_rename
call ebx
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.expect_f1_rename_to_exist_n
call fcn.0040acd0
mov dword [esp + 4], 0x484
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov dword [esp], 0x40d2a0
call ebx
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.expect_f1_to_exist_n
call fcn.0040acd0
mov dword [esp], str.wine_test_dir
call dword [0x410030]
mov dword [esp + 4], 0x486
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
movzx ebx, al
call fcn.0040aa60
xor eax, eax
cmp ebx, 1
mov dword [esp + 0xc], ebx
sete al
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 4], str._Remove_dir__:_expect__d_got__d_n
call fcn.0040acd0
mov dword [esp + 4], 0x487
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 - 0x4b0]
call eax
sub esp, 4
mov dword [esp + 4], str.SetCurrentDirectoryW_failed_n
mov dword [esp], eax
call fcn.0040acd0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str._lx_08lx
call fcn.00401490
mov ebx, eax
jmp 0x4032e2
mov dword [esp + 4], eax
mov dword [esp], 0x40db72
call fcn.00401490
mov ebx, eax
jmp 0x40334d