Function at 0x405580
Capabilities:
Create directory
Delete directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x36c
mov eax, dword [sym.imp.kernel32.dll_CreateDirectoryA]
mov dword [esp + 4], 0
mov dword [esp], 0x417196
mov dword [ebp - 0x34c], eax
call eax
mov edi, dword [sym.imp.kernel32.dll_CreateFileA]
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], 0
mov dword [esp], 0x4171a3
call edi
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x6ce
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], ebx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
sub esp, 4
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], 0
mov dword [esp], 0x4171de
call edi
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0x6d1
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], esi
call ebx
mov eax, dword [ebp - 0x34c]
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], str.tr2_test_dir_sub_dir
call eax
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], 0
mov dword [esp], str.tr2_test_dir_sub_dir_sub_f1
call edi
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0x6d5
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], esi
call ebx
lea ebx, [ebp - 0x11c]
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov edx, ebx
sub esp, 8
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x405743
mov ecx, eax
mov esi, 0x5c72
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
mov dword [edx], 0x3272745c
mov dword [edx + 4], 0x7365745f
mov dword [edx + 8], 0x69645f74
mov word [edx + 0xc], si
mov byte [edx + 0xe], 0
mov edx, ebx
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x405796
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
sub edx, ebx
cmp edx, 0x103
je 0x4057e0
mov ecx, 0x73
mov word [ebx + edx], cx
jmp 0x405794
mov dword [esp + 4], 0x6dc
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov edx, ebx
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x4057f6
mov ecx, eax
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect_MAX_PATH__got__d_n
mov esi, 0x41
lea edi, [ebp - 0x324]
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
xor eax, eax
sub edx, ebx
cmp edx, 0x103
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00413800
mov edx, 0xffffffff
mov ecx, esi
mov dword [ebp - 0x328], 0xdeadbeef
mov dword [ebp - 0x32c], 0xdeadbeef
mov eax, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x32c]
mov dword [esp + 4], ebx
lea edi, [ebp - 0x324]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x328]
mov dword [esp + 8], eax
lea eax, [ebp - 0x324]
mov dword [esp], eax
mov esi, ecx
call dword [0x41b108]
mov dword [esp + 4], 0x6e1
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
mov ebx, eax
call fcn.00413590
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect_NULL__got__p_n
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x6e2
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
lea eax, [ebp - 0x324]
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect:_0__got__s_n
mov dword [esp + 8], eax
xor eax, eax
cmp byte [ebp - 0x324], 0
sete al
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x6e3
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x328]
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect:_ERROR_BAD_PATHNAME__got__d_n
cmp eax, 0xa1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x6e4
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x32c]
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect_0xdeadbeef__got__d_n
cmp eax, 0xdeadbeef
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00413800
mov edx, 0xffffffff
mov ecx, 0x41
mov dword [ebp - 0x328], 0xdeadbeef
mov dword [ebp - 0x32c], 0xdeadbeef
mov eax, edx
rep stosd dword es:[edi], eax
mov eax, esi
mov ecx, 0x41
lea edi, [ebp - 0x220]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x32c]
mov dword [esp + 4], 0x417196
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x328]
mov dword [esp + 8], eax
lea eax, [ebp - 0x324]
mov dword [esp], eax
call dword [0x41b108]
mov dword [esp + 4], 0x6eb
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
mov ebx, eax
call fcn.00413590
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
setne al
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect:_not_NULL__got__p_n
mov dword [esp], eax
mov dword [ebp - 0x350], eax
call fcn.00413800
mov dword [esp + 4], 0x6ec
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x328]
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect:_ERROR_SUCCESS__got__d_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00413800
cmp byte [ebp - 0x324], 0
je 0x4060e0
mov dword [ebp - 0x340], 0
lea eax, [ebp - 0x324]
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x33c], 0
jmp 0x405ae7
mov edi, 0x417dcd
mov ecx, 3
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
seta dl
sbb dl, 0
test dl, dl
je 0x405b40
mov esi, eax
mov edi, str.sub_dir
mov ecx, 8
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x405b51
add dword [ebp - 0x340], 1
lea eax, [ebp - 0x32c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x220]
mov dword [esp], eax
call dword [0x41b104]
cmp byte [eax], 0
je 0x405b94
mov ecx, 3
mov esi, eax
mov edi, 0x41738c
repe cmpsb byte [esi], byte es:[edi]
seta dl
sbb dl, 0
test dl, dl
jne 0x405a83
add dword [ebp - 0x33c], 1
mov dword [esp + 4], 0x6f1
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x32c]
mov dword [esp + 4], str.expect_regular_file__got__d_n
cmp eax, 2
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00413800
jmp 0x405ac1
add dword [ebp - 0x344], 1
mov dword [esp + 4], 0x6f4
jmp 0x405b0e
mov dword [esp + 4], 0x6f7
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
add dword [ebp - 0x348], 1
call fcn.00413590
mov eax, dword [ebp - 0x32c]
mov dword [esp + 4], str.expect_directory_file__got__d_n
cmp eax, 3
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00413800
jmp 0x405ac1
xor eax, eax
cmp dword [ebp - 0x33c], 1
mov edx, dword [ebp - 0x340]
sete al
mov esi, eax
xor eax, eax
cmp dword [ebp - 0x344], 1
sete al
mov dword [ebp - 0x354], eax
xor eax, eax
cmp dword [ebp - 0x348], 1
sete al
mov edi, eax
xor eax, eax
test edx, edx
sete al
mov dword [ebp - 0x358], eax
mov dword [esp + 4], 0x6fd
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x32c]
mov dword [esp + 4], str.p_tr2_sys__Read_dir__:_expect:_status_unknown__got__d_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00413800
mov dword [esp], ebx
call dword [0x41b100]
mov dword [esp + 4], 0x6ff
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x350]
mov dword [esp + 8], ebx
mov ebx, 0xffffffff
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect:_not_NULL__got__p_n
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x700
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x33c]
mov dword [esp], esi
mov dword [esp + 4], str.found_f1__d_times_n
mov dword [esp + 8], eax
call fcn.00413800
mov dword [esp + 4], 0x701
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x344]
mov dword [esp + 4], str.found_f2__d_times_n
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x354]
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x702
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x348]
mov dword [esp], edi
lea edi, [ebp - 0x324]
mov dword [esp + 4], str.found_sub_dir__d_times_n
mov dword [esp + 8], eax
call fcn.00413800
mov dword [esp + 4], 0x703
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x340]
mov dword [esp + 4], str.found__d_other_files_n
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x358]
mov dword [esp], eax
call fcn.00413800
mov eax, ebx
mov ecx, 0x41
mov dword [ebp - 0x328], 0xdeadbeef
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x32c], 0xdeadbeef
lea edi, [ebp - 0x324]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x328]
mov dword [esp + 8], eax
lea eax, [ebp - 0x324]
mov dword [esp + 4], str.not_exist
mov dword [esp], eax
call dword [0x41b108]
mov dword [esp + 4], 0x709
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__Open_dir__:_expect:_NULL__got__p_n
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x70a
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x328]
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect:_ERROR_BAD_PATHNAME__got__d_n
cmp eax, 0xa1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x70b
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x32c]
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect:_0xdeadbeef__got__d_n
cmp eax, 0xdeadbeef
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x70c
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
lea eax, [ebp - 0x324]
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect:_0__got__s_n
mov dword [esp + 8], eax
xor eax, eax
cmp byte [ebp - 0x324], 0
sete al
mov dword [esp], eax
call fcn.00413800
mov eax, dword [ebp - 0x34c]
mov dword [esp + 4], 0
mov dword [esp], str.empty_dir
call eax
mov eax, ebx
mov ecx, 0x41
mov dword [ebp - 0x328], 0xdeadbeef
rep stosd dword es:[edi], eax
sub esp, 8
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x32c], 0xdeadbeef
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x328]
mov dword [esp + 8], eax
lea eax, [ebp - 0x324]
mov dword [esp + 4], str.empty_dir
mov dword [esp], eax
call dword [0x41b108]
mov dword [esp + 4], 0x713
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
mov ebx, eax
call fcn.00413590
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect:_NULL__got__p_n
mov esi, eax
mov dword [esp], esi
call fcn.00413800
mov dword [esp + 4], 0x714
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x328]
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect:_ERROR_SUCCESS__got__d_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x715
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov eax, dword [ebp - 0x32c]
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect:_status_unknown__got__d_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00413800
mov dword [esp + 4], 0x716
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
lea eax, [ebp - 0x324]
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect:_0__got__s_n
mov dword [esp + 8], eax
xor eax, eax
cmp byte [ebp - 0x324], 0
sete al
mov dword [esp], eax
call fcn.00413800
mov dword [esp], ebx
call dword [0x41b100]
mov dword [esp + 4], 0x718
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], str.tr2_sys__Open_dir__:_expect:_NULL__got__p_n
call fcn.00413800
mov dword [esp + 4], 0x71a
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov ebx, dword [sym.imp.kernel32.dll_RemoveDirectoryA]
mov dword [esp], str.empty_dir
call ebx
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.expect_empty_dir_to_exist_n
call fcn.00413800
mov dword [esp + 4], 0x71b
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov esi, dword [sym.imp.kernel32.dll_DeleteFileA]
mov dword [esp], str.tr2_test_dir_sub_dir_sub_f1
call esi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.expect_tr2_test_dir_sub_dir_sub_f1_to_exist_n
call fcn.00413800
mov dword [esp + 4], 0x71c
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], str.tr2_test_dir_sub_dir
call ebx
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.expect_tr2_test_dir_sub_dir_to_exist_n
call fcn.00413800
mov dword [esp + 4], 0x71d
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], 0x4171a3
call esi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.expect_tr2_test_dir_f1_to_exist_n
call fcn.00413800
mov dword [esp + 4], 0x71e
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], 0x4171de
call esi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.expect_tr2_test_dir_f2_to_exist_n
call fcn.00413800
mov dword [esp + 4], 0x71f
mov dword [esp], str..._wine_dlls_msvcp120_tests_msvcp120.c
call fcn.00413590
mov dword [esp], 0x417196
call ebx
sub esp, 4
mov dword [esp + 4], str.expect_tr2_test_dir_to_exist_n
mov dword [esp], eax
call fcn.00413800
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x358], 1
xor edi, edi
xor esi, esi
mov dword [ebp - 0x354], 0
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x33c], 0
jmp 0x405bd5