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

Disassembly:
push ebp
mov ecx, 0x15
mov ebp, esp
push edi
push esi
mov esi, 0x4156a0
lea eax, [ebp - 0x11c]
push ebx
lea ebx, [ebp - 0x274]
mov edi, ebx
sub esp, 0x29c
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 4], eax
lea esi, [ebp - 0x220]
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 8
mov dword [esp + 4], 0x7c5
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov dword [esp], esi
mov dword [ebp - 0x284], 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], 0x7c8
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
mov esi, eax
call fcn.00413590
xor eax, eax
cmp esi, 1
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.tr2_sys__Make_dir__:_expect_1_got__d_n
mov dword [esp], eax
call fcn.00413800
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], 0x4171a3
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0x7ca
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
xor eax, eax
cmp esi, 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], 0x7cc
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], esi
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.00413800
mov dword [esp + 4], 0x7cd
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SetEndOfFile]
sub esp, 4
mov dword [esp + 4], str.SetEndOfFile_failed_n
mov dword [esp], eax
call fcn.00413800
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 4], 0x417438
mov dword [esp], 0x4171a3
call dword [0x41b0f8]
cmp eax, 0x522
mov esi, eax
sete dl
cmp eax, 1
sete al
or dl, al
jne 0x4043b6
cmp esi, 0x78
jne 0x40465e
mov dword [esp + 4], 0x7d3
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
mov dword [ebp - 0x270], 2
call fcn.00413590
mov dword [esp], str.Privilege_not_held_or_symbolic_link_not_supported__skipping_symbolic_link_tests._n
call fcn.00413910
mov dword [esp + 4], 0x4174d7
mov dword [esp], 0x4171a3
call dword [0x41b0fc]
mov dword [esp + 4], 0x7d8
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
mov esi, eax
call fcn.00413590
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.tr2_sys__Link__:_expect:_ERROR_SUCCESS__got__d_n
mov dword [esp], eax
call fcn.00413800
mov dword [ebp - 0x27c], 0
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebx]
mov dword [esp], eax
call dword [0x41b0f4]
mov dword [ebp - 0x280], eax
xor eax, eax
cmp byte [ebx + 8], 0
je 0x404474
mov esi, dword [str.windows]
mov edi, 0x41751c
mov ecx, 5
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00413970
add dword [ebp - 0x27c], 1
mov esi, dword [ebp - 0x280]
mov edi, dword [ebp - 0x27c]
jmp 0x4044d1
mov dword [esp + 4], 0x7de
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], esi
mov dword [esp + 8], edi
cmp eax, esi
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str.tr2_sys__Unlink__:_test__d_expect:__d__got__d_n
movzx eax, al
mov dword [esp], eax
call fcn.00413800
call fcn.004139c0
call fcn.004139a0
test eax, eax
jne 0x404491
mov dword [esp + 4], 0x7e0
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
call dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [ebp - 0x280]
mov edi, dword [ebp - 0x27c]
mov dword [esp + 4], str.tr2_sys__Unlink__:_test__d_errno_expect:_0xdeadbeef__got__d_n
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
cmp dword [eax], 0xdeadbeef
sete al
add ebx, 0xc
movzx eax, al
mov dword [esp], eax
call fcn.00413800
cmp edi, 7
jne 0x404430
mov dword [esp + 4], 0x7e3
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov ebx, dword [sym.imp.kernel32.dll_DeleteFileA]
mov dword [esp], 0x4171a3
call ebx
sub esp, 4
test eax, eax
sete al
mov dword [esp + 4], str.expect_tr2_test_dir_f1_not_to_exist_n
movzx eax, al
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x7e4
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], 0x4174d7
call ebx
sub esp, 4
test eax, eax
sete al
mov dword [esp + 4], str.expect_tr2_test_dir_f1_link_not_to_exist_n
movzx eax, al
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x7e5
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], 0x417438
call ebx
sub esp, 4
test eax, eax
sete al
mov dword [esp + 4], str.expect_tr2_test_dir_f1_symlink_not_to_exist_n
movzx eax, al
mov dword [esp], eax
call fcn.00413800
mov dword [esp], 0x417196
call dword [0x41b144]
mov dword [esp + 4], 0x7e7
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], 0x7e9
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 - 0x284]
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], 0x7d5
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.tr2_sys__Symlink__:_expect:_ERROR_SUCCESS__got__d_n
mov dword [esp], eax
call fcn.00413800
jmp 0x4043e0