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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x220]
push ebx
lea ebx, [ebp - 0x428]
sub esp, 0x44c
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], 0x297
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 - 0x430], eax
call eax
sub esp, 4
mov dword [esp + 4], str.SetCurrentDirectoryW_to_temp_path_failed_n
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0
mov dword [esp], str.wine_test_dir
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 8
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.wine_test_dir_f1
call edi
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x29c
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], 0x29e
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], 0x29f
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 + 4], str.SetEndOfFile_failed_n
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp], ebx
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
sub esp, 4
mov dword [esp], str.wine_test_dir_f1
call dword [0x410054]
mov dword [esp + 4], 0x2a2
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
mov ebx, edx
mov dword [ebp - 0x42c], eax
call fcn.0040aa60
mov eax, dword [ebp - 0x42c]
test ebx, ebx
je 0x403c40
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], str._lx_08lx
call fcn.00401490
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x42c]
mov dword [esp + 4], str.file_size_is__s_n
xor eax, 7
or eax, ebx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040acd0
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.wine_test_dir_f2
call edi
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x2a5
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], ebx
call esi
sub esp, 4
mov dword [esp], str.wine_test_dir_f2
call dword [0x410054]
mov dword [esp + 4], 0x2a8
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
mov ebx, edx
mov esi, eax
call fcn.0040aa60
test ebx, ebx
je 0x403c55
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], str._lx_08lx
call fcn.00401490
mov dword [esp + 8], eax
xor eax, eax
or esi, ebx
sete al
mov dword [esp + 4], str.file_size_is__s_n
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp], str.wine_test_dir
call dword [0x410054]
mov dword [esp + 4], 0x2ab
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
mov ebx, edx
mov esi, eax
call fcn.0040aa60
test ebx, ebx
je 0x403c70
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], str._lx_08lx
call fcn.00401490
mov dword [esp + 8], eax
xor eax, eax
or esi, ebx
sete al
mov dword [esp + 4], str.file_size_is__s_n
mov dword [esp], eax
call fcn.0040acd0
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov dword [eax], 0xdeadbeef
mov dword [esp], str.wine_test_dir_ne
call dword [0x410054]
mov dword [esp + 4], 0x2af
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
mov edi, edx
mov esi, eax
call fcn.0040aa60
test edi, edi
je 0x403c85
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], str._lx_08lx
call fcn.00401490
and esi, edi
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], str.file_size_is__s_n
sete al
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x2b0
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
call ebx
mov esi, dword [eax]
call ebx
mov dword [esp + 4], str.errno___d_n
mov dword [esp + 8], esi
cmp dword [eax], 0xdeadbeef
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040acd0
call ebx
mov dword [eax], 0xdeadbeef
mov dword [esp], 0
call dword [0x410054]
mov dword [esp + 4], 0x2b4
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
mov edi, edx
mov esi, eax
call fcn.0040aa60
test edi, edi
je 0x403ca0
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], str._lx_08lx
call fcn.00401490
and esi, edi
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], str.file_size_is__s_n
sete al
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x2b5
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
call ebx
mov esi, dword [eax]
call ebx
mov dword [esp + 4], str.errno___d_n
mov dword [esp + 8], esi
cmp dword [eax], 0xdeadbeef
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x3e8
mov dword [esp + 8], 0
mov dword [esp], str.wine_test_dir_f1
call dword [0x410050]
mov dword [esp + 4], 0x2b8
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.p_Resize_returned__d_n
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp], str.wine_test_dir_f1
call dword [0x410054]
mov dword [esp + 4], 0x2ba
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
mov esi, edx
mov ebx, eax
call fcn.0040aa60
test esi, esi
je 0x403cb5
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], str._lx_08lx
call fcn.00401490
xor ebx, 0x3e8
mov dword [esp + 8], eax
xor eax, eax
or ebx, esi
mov dword [esp + 4], str.file_size_is__s_n
sete al
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x64
mov dword [esp + 8], 0
mov dword [esp], str.wine_test_dir_f1
call dword [0x410050]
mov dword [esp + 4], 0x2bd
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.p_Resize_returned__d_n
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp], str.wine_test_dir_f1
call dword [0x410054]
mov dword [esp + 4], 0x2bf
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
mov esi, edx
mov ebx, eax
call fcn.0040aa60
test esi, esi
je 0x403cd0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], str._lx_08lx
call fcn.00401490
xor ebx, 0x64
mov dword [esp + 8], eax
xor eax, eax
or ebx, esi
mov dword [esp + 4], str.file_size_is__s_n
sete al
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], str.wine_test_dir_f1
call dword [0x410050]
mov dword [esp + 4], 0x2c2
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.p_Resize_returned__d_n
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp], str.wine_test_dir_f1
call dword [0x410054]
mov dword [esp + 4], 0x2c4
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
mov ebx, edx
mov esi, eax
call fcn.0040aa60
test ebx, ebx
je 0x403ce5
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], str._lx_08lx
call fcn.00401490
mov dword [esp + 8], eax
xor eax, eax
or esi, ebx
sete al
mov dword [esp + 4], str.file_size_is__s_n
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x2c6
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
call ebx
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.expect_wine_test_dir_f1_to_exist_n
call fcn.0040acd0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], str.wine_test_dir_f1
call dword [0x410050]
mov dword [esp + 4], 0x2c9
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
mov esi, eax
call fcn.0040aa60
xor eax, eax
cmp esi, 2
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.p_Resize_returned__d_n
mov dword [esp], eax
call fcn.0040acd0
mov dword [esp + 4], 0x2cb
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov dword [esp], str.wine_test_dir_f2
call ebx
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.expect_wine_test_dir_f2_to_exist_n
call fcn.0040acd0
mov dword [esp + 4], 0x2cc
mov dword [esp], str..._wine_dlls_msvcp140_tests_msvcp140.c
call fcn.0040aa60
mov dword [esp], str.wine_test_dir
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.expect_wine_test_dir_to_exist_n
call fcn.0040acd0
mov dword [esp + 4], 0x2cd
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 - 0x430]
call eax
sub esp, 4
mov dword [esp + 4], str.SetCurrentDirectoryW_to_origin_path_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 + 4], eax
mov dword [esp], 0x40db72
call fcn.00401490
jmp 0x403678
mov dword [esp + 4], esi
mov dword [esp], 0x40db72
call fcn.00401490
jmp 0x403750
mov dword [esp + 4], esi
mov dword [esp], 0x40db72
call fcn.00401490
jmp 0x4037ac
mov dword [esp + 4], esi
mov dword [esp], 0x40db72
call fcn.00401490
jmp 0x403816
mov dword [esp + 4], esi
mov dword [esp], 0x40db72
call fcn.00401490
jmp 0x4038b7
mov dword [esp + 4], ebx
mov dword [esp], 0x40db72
call fcn.00401490
jmp 0x40399e
mov dword [esp + 4], ebx
mov dword [esp], 0x40db72
call fcn.00401490
jmp 0x403a4e
mov dword [esp + 4], esi
mov dword [esp], 0x40db72
call fcn.00401490
jmp 0x403afb