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

Disassembly:
push ebp
mov ecx, 0x20
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x2a0]
mov esi, 0x415800
lea eax, [ebp - 0x11c]
push ebx
lea ebx, [ebp - 0x220]
sub esp, 0x33c
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 4], eax
lea edi, [ebp - 0x2a0]
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 8
mov dword [esp + 4], 0x73b
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov dword [esp], ebx
mov dword [ebp - 0x324], eax
call eax
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.SetCurrentDirectoryA_to_temp_path_failed_n
call fcn.00413800
mov dword [esp], 0x417196
call dword [0x41b14c]
mov dword [esp + 4], 0x73e
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
mov ebx, eax
call fcn.00413590
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.test_tr2_sys__Make_dir__:_expect_1_got__d_n
mov dword [esp], eax
call fcn.00413800
mov eax, dword [sym.imp.kernel32.dll_CreateFileA]
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], 0x41738c
mov dword [ebp - 0x31c], eax
call eax
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x740
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.create_file_failed:_INVALID_HANDLE_VALUE_n
setne al
xor esi, esi
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x742
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [sym.imp.kernel32.dll_SetFilePointerEx]
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 7
mov dword [esp + 8], 0
mov dword [ebp - 0x320], eax
call eax
sub esp, 0x14
mov dword [esp], eax
mov dword [esp + 4], str.SetFilePointerEx_failed_n
call fcn.00413800
mov dword [esp + 4], 0x743
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [sym.imp.kernel32.dll_SetEndOfFile]
mov dword [esp], ebx
mov dword [ebp - 0x328], eax
call eax
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.SetEndOfFile_failed_n
call fcn.00413800
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], ebx
mov dword [ebp - 0x318], eax
call eax
sub esp, 4
jmp 0x40aa3c
add edi, 0x10
cmp esi, 8
je 0x40ab6a
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [edi]
add esi, 1
mov dword [eax], 0xdeadbeef
mov eax, dword [edi + 4]
mov dword [ebp - 0x314], ecx
mov dword [esp], ecx
mov dword [ebp - 0x310], eax
mov dword [esp + 4], eax
call dword [0x41b0fc]
mov dword [esp + 4], 0x749
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
mov ebx, eax
call fcn.00413590
mov eax, dword [edi + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], esi
cmp eax, ebx
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str.tr2_sys__Link__:_test__d_expect:__d__got__d_n
movzx eax, al
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x74b
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
call dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [eax]
mov dword [ebp - 0x30c], edx
call dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [ebp - 0x30c]
mov dword [esp + 8], esi
mov dword [esp + 4], str.tr2_sys__Link__:_test__d_errno_expect_0xdeadbeef__got__d_n
mov dword [esp + 0xc], edx
cmp dword [eax], 0xdeadbeef
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00413800
test ebx, ebx
jne 0x40aa30
mov dword [esp + 4], 0x74d
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x314]
mov dword [esp], eax
call dword [0x41b16c]
mov ecx, dword [ebp - 0x310]
mov ebx, edx
mov dword [ebp - 0x30c], eax
mov dword [esp], ecx
call dword [0x41b16c]
xor eax, dword [ebp - 0x30c]
mov dword [esp + 8], esi
xor ebx, edx
mov dword [esp + 4], str.tr2_sys__Link__:_test__d_failed__mismatched_file_sizes_n
or eax, ebx
sete al
add edi, 0x10
movzx eax, al
mov dword [esp], eax
call fcn.00413800
cmp esi, 8
jne 0x40aa3c
mov dword [esp + 4], 0x751
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], 0x41738c
mov edi, dword [sym.imp.kernel32.dll_DeleteFileA]
call edi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.expect_f1_to_exist_n
call fcn.00413800
mov dword [esp + 4], 0x752
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], 0x418517
call dword [0x41b16c]
test edx, edx
je 0x40b110
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str._lx_08lx
call fcn.00403d70
mov dword [ebp - 0x30c], eax
mov dword [esp], str.f1_link
call dword [0x41b16c]
mov dword [esp], 0x4174d7
mov esi, eax
mov ebx, edx
call dword [0x41b16c]
xor esi, eax
xor ebx, edx
xor eax, eax
or ebx, esi
jne 0x40ac34
mov dword [esp], 0x4174d7
call dword [0x41b16c]
mov dword [esp], 0x418517
mov esi, eax
mov ebx, edx
call dword [0x41b16c]
xor esi, eax
xor ebx, edx
xor eax, eax
or esi, ebx
sete al
mov esi, dword [ebp - 0x30c]
mov dword [esp], eax
mov dword [esp + 4], str.tr2_sys__Link__:_expect_links_size_are_equal__got__s_n
mov dword [esp + 8], esi
call fcn.00413800
mov dword [esp + 4], 0x755
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], str.f1_link
call dword [0x41b16c]
test edx, edx
je 0x40b130
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str._lx_08lx
call fcn.00403d70
mov ebx, eax
mov dword [esp], str.f1_link
call dword [0x41b16c]
mov dword [esp + 8], ebx
xor eax, 7
mov dword [esp + 4], str.tr2_sys__Link__:_expect_f1_links_size_equals_to_7__got__s_n
or eax, edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00413800
mov esi, dword [ebp - 0x31c]
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], str.f1_link
call esi
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x758
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
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.00413800
mov dword [esp + 4], 0x75a
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], ebx
mov eax, dword [ebp - 0x320]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x14
mov dword [esp + 8], 0
call eax
sub esp, 0x14
mov dword [esp], eax
mov dword [esp + 4], str.SetFilePointerEx_failed_n
call fcn.00413800
mov dword [esp + 4], 0x75b
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], ebx
mov eax, dword [ebp - 0x328]
call eax
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.SetEndOfFile_failed_n
call fcn.00413800
mov dword [esp], ebx
mov eax, dword [ebp - 0x318]
call eax
mov dword [ebp - 0x31c], esi
sub esp, 4
mov dword [esp + 0x18], 0
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], str.f1_link
call esi
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x75f
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
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.00413800
mov dword [esp + 4], 0x760
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
lea eax, [ebp - 0x308]
mov esi, dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
sub esp, 8
mov dword [esp + 4], str.GetFileInformationByHandle_failed_n
mov dword [esp], eax
call fcn.00413800
mov edx, dword [ebp - 0x318]
mov dword [esp], ebx
call edx
mov eax, dword [ebp - 0x31c]
sub esp, 4
mov dword [esp + 0x18], 0
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], 0x4174d7
call eax
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x764
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
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.00413800
mov dword [esp + 4], 0x765
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
lea eax, [ebp - 0x2d4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
sub esp, 8
mov dword [esp + 4], str.GetFileInformationByHandle_failed_n
mov dword [esp], eax
call fcn.00413800
mov edx, dword [ebp - 0x318]
mov dword [esp], ebx
call edx
sub esp, 4
mov dword [esp + 4], 0x767
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
xor eax, eax
mov esi, dword [ebp - 0x2a8]
cmp dword [ebp - 0x2dc], esi
jne 0x40af5f
mov eax, dword [ebp - 0x2a4]
cmp dword [ebp - 0x2d8], eax
sete al
movzx eax, al
mov dword [esp], eax
mov dword [esp + 8], 9
mov dword [esp + 4], str.tr2_sys__Link__:_test__d_expect_two_files_equivalent_n
call fcn.00413800
mov dword [esp + 4], 0x76a
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], str.f1_link
call dword [0x41b16c]
test edx, edx
je 0x40b0f2
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str._lx_08lx
call fcn.00403d70
mov ebx, eax
mov dword [esp], str.f1_link
call dword [0x41b16c]
mov dword [esp + 8], ebx
xor eax, 0x14
mov dword [esp + 4], str.tr2_sys__Link__:_expect_f1_links_size_equals_to_20__got__s_n
or eax, edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x76c
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], str.f1_link
call edi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.expect_f1_link_to_exist_n
call fcn.00413800
mov dword [esp + 4], 0x76d
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], 0x4174d7
call edi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.expect_tr2_test_dir_f1_link_to_exist_n
call fcn.00413800
mov dword [esp + 4], 0x76e
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], 0x418517
call edi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.expect_tr2_test_dir_f1_link_link_to_exist_n
call fcn.00413800
mov dword [esp], 0x417196
call dword [0x41b144]
mov dword [esp + 4], 0x770
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
movzx ebx, al
call fcn.00413590
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.tr2_sys__Remove_dir__:_expect_1_got__d_n
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x771
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
lea eax, [ebp - 0x11c]
mov dword [esp], eax
mov eax, dword [ebp - 0x324]
call eax
sub esp, 4
mov dword [esp + 4], str.SetCurrentDirectoryA_failed_n
mov dword [esp], eax
call fcn.00413800
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], eax
mov dword [esp], 0x4184c9
call fcn.00403d70
mov ebx, eax
jmp 0x40afb6
mov dword [esp + 4], eax
mov dword [esp], 0x4184c9
call fcn.00403d70
mov dword [ebp - 0x30c], eax
jmp 0x40abe3
mov dword [esp + 4], eax
mov dword [esp], 0x4184c9
call fcn.00403d70
mov ebx, eax
jmp 0x40ac8d