Function at 0x4f08d0
Capabilities:
Copy file
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x22e]
push ebx
lea ebx, [ebp - 0x63e]
mov esi, dword fs:[0x18]
sub esp, 0x66c
mov edi, dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x648], 0
mov dword [esp + 4], 0x111
mov dword [esp], eax
call edi
lea eax, [ebp - 0x22e]
mov dword [esi + 0x34], 0xdeadbeef
lea ecx, [ebp - 0x648]
sub esp, 8
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_SearchPathA]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x64c], eax
call eax
sub esp, 0x18
mov dword [ebp - 0x650], eax
mov eax, 0x6db
call fcn.004e7d80
mov edx, dword [ebp - 0x650]
xor eax, eax
mov dword [esp + 4], str.Expected_failure__got__ld_n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004e88d0
mov eax, 0x6dc
call fcn.004e7d80
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.Expected_ERROR_INVALID_PARAMETER__got__lx_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.004e88d0
lea ecx, [ebp - 0x648]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x22e]
mov dword [esp], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5ea9b4
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov dword [ebp - 0x650], eax
mov eax, 0x6e2
call fcn.004e7d80
mov edx, dword [ebp - 0x650]
xor eax, eax
mov dword [esp + 4], str.Expected_failure__got__ld_n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004e88d0
mov eax, 0x6e3
call fcn.004e7d80
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.Expected_ERROR_INVALID_PARAMETER__got__lx_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x57
mov esi, 0x32
sete al
mov dword [esp], eax
call fcn.004e88d0
mov ecx, dword [sym.imp.kernel32.dll_GetTempPathA]
lea edx, [ebp - 0x22e]
mov dword [esp], 0x111
mov dword [esp + 4], edx
mov dword [ebp - 0x650], ecx
call ecx
lea edx, [ebp - 0x53a]
lea ecx, [ebp - 0x22e]
sub esp, 8
mov dword [esp], edx
mov dword [esp + 4], ecx
call dword [sym.imp.msvcrt.dll_strcpy]
lea ecx, [ebp - 0x53a]
mov dword [esp], ecx
call sub.msvcrt.dll_strlen
lea edx, [ebp - 0x53a]
add eax, edx
mov word [eax + 0x10], si
mov dword [eax], 0x74736574
mov dword [eax + 4], 0x656c6966
mov dword [eax + 8], 0x7478652e
mov dword [eax + 0xc], 0x7478652e
mov dword [esp], edx
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
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov esi, eax
mov eax, 0x6eb
call fcn.004e7d80
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], str.Failed_to_create_test_file._n
setne al
mov dword [esp], eax
call fcn.004e88d0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea edx, [ebp - 0x22e]
mov byte [ebp - 0x63e], 0
sub esp, 4
mov dword [esp], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5e9677
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov esi, eax
mov eax, 0x6f0
call fcn.004e7d80
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], 0x5e95e0
mov dword [esp], eax
call fcn.004e88d0
lea ecx, [ebp - 0x22e]
mov byte [ebp - 0x63e], 0
mov dword [esp], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0x5e9684
mov dword [esp + 4], 0x5e9677
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov esi, eax
mov eax, 0x6f4
call fcn.004e7d80
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], 0x5e95e0
mov dword [esp], eax
call fcn.004e88d0
lea edx, [ebp - 0x22e]
mov byte [ebp - 0x63e], 0
mov dword [esp], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5e968a
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov esi, eax
mov eax, 0x6f8
call fcn.004e7d80
xor eax, eax
test esi, esi
je 0x4f0c61
lea eax, [ebp - 0x53a]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strlen]
cmp eax, esi
sete al
movzx eax, al
mov dword [esp + 8], esi
lea esi, [ebp - 0x11d]
mov dword [esp], eax
mov dword [esp + 4], 0x5e95fe
call fcn.004e88d0
lea eax, [ebp - 0x53a]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_DeleteFileA]
mov dword [ebp - 0x658], eax
call eax
lea ecx, [ebp - 0x22e]
sub esp, 4
mov dword [esp], ecx
mov dword [esp + 4], 0x111
call edi
mov edx, str._assembly_xmlns_urn:schemas_microsoft_com:asm.v1__manifestVersion_1.0___assemblyIdentity_version_1.2.3.4___name_testdep1__type_win32__processorArchitecture_x86________file_name_testdep.dll_________file_name_ole32_________file_name_kernel32.dll______assembly_
mov eax, 0x5e9607
sub esp, 8
call fcn.004e9390
mov edx, 0x5eaa60
mov eax, 0x5e8772
call fcn.004e9390
call fcn.004eaa40
mov dword [ebp - 0x654], eax
mov dword [esp + 4], esi
mov dword [esp], 0x104
mov edx, dword [ebp - 0x650]
call edx
sub esp, 8
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov edx, 0x74
add eax, esi
mov word [eax + 0x10], dx
mov dword [eax], 0x74736574
mov dword [eax + 4], 0x31706564
mov dword [eax + 8], 0x6e616d2e
mov dword [eax + 0xc], 0x73656669
mov dword [esp], esi
mov edi, dword [ebp - 0x658]
call edi
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], 0x104
mov edx, dword [ebp - 0x650]
call edx
sub esp, 8
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov ecx, 0x74
add eax, esi
mov word [eax + 0xc], cx
mov dword [eax], 0x6e69616d
mov dword [eax + 4], 0x6e616d2e
mov dword [eax + 8], 0x73656669
mov dword [esp], esi
call edi
sub esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0
mov dword [esp + 4], str.testdep.dll
mov dword [esp], 0
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov edi, eax
mov eax, 0x707
call fcn.004e7d80
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], 0x5e95fe
mov dword [esp], eax
call fcn.004e88d0
lea edx, [ebp - 0x53a]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5ea998
mov dword [esp], 0
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov edi, eax
mov eax, 0x70a
call fcn.004e7d80
xor eax, eax
test edi, edi
je 0x4f0e2c
lea eax, [ebp - 0x53a]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strlen]
cmp eax, edi
sete al
movzx eax, al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], 0x5e95fe
call fcn.004e88d0
lea eax, [ebp - 0x644]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x654]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ActivateActCtx]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x70d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], edi
mov dword [esp + 4], str.failed_to_activate_context___lu_n
mov dword [esp + 8], eax
call fcn.004e88d0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0
mov dword [esp + 4], str.testdep.dll
mov dword [esp], 0
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov edi, eax
mov eax, 0x711
call fcn.004e7d80
xor eax, eax
test edi, edi
je 0x4f0ee6
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strlen]
cmp eax, edi
sete al
movzx eax, al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], 0x5e95fe
call fcn.004e88d0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0x5e969c
mov dword [esp + 4], 0x5e96a1
mov dword [esp], 0
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov edi, eax
mov eax, 0x714
call fcn.004e7d80
xor eax, eax
test edi, edi
je 0x4f0f53
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strlen]
cmp eax, edi
sete al
movzx eax, al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], 0x5e95fe
call fcn.004e88d0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0x5e96ad
mov dword [esp + 4], 0x5e96b2
mov dword [esp], 0
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov edi, eax
mov eax, 0x717
call fcn.004e7d80
xor eax, eax
test edi, edi
je 0x4f0fc0
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strlen]
cmp eax, edi
sete al
movzx eax, al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], 0x5e95fe
call fcn.004e88d0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0x5e969c
mov dword [esp + 4], 0x5e96b2
mov dword [esp], 0
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov edi, eax
mov eax, 0x71a
call fcn.004e7d80
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], 0x5e95fe
mov dword [esp], eax
call fcn.004e88d0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0
mov dword [esp + 4], str.._testdep.dll
mov dword [esp], 0
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov edi, eax
mov eax, 0x71e
call fcn.004e7d80
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], 0x5e95fe
mov dword [esp], eax
call fcn.004e88d0
lea ecx, [ebp - 0x22e]
mov dword [esp + 0x14], 0
mov dword [esp], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0
mov dword [esp + 4], str.testdep.dll
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov edi, eax
mov eax, 0x722
call fcn.004e7d80
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], 0x5e95fe
mov dword [esp], eax
call fcn.004e88d0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5ea998
mov dword [esp], 0
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov edi, eax
mov eax, 0x726
call fcn.004e7d80
xor eax, eax
test edi, edi
je 0x4f1146
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strlen]
cmp eax, edi
sete al
movzx eax, al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], 0x5e95fe
call fcn.004e88d0
mov eax, 0x727
call fcn.004e7d80
lea eax, [ebp - 0x53a]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll_strcmp]
mov dword [ebp - 0x65c], eax
call eax
lea edx, [ebp - 0x53a]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov dword [esp + 4], str.got_wrong_path__s___s_n
call fcn.004e88d0
mov eax, dword [ebp - 0x644]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_DeactivateActCtx]
sub esp, 8
mov edi, eax
mov eax, 0x72a
call fcn.004e7d80
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], edi
mov dword [esp + 4], str.failed_to_deactivate_context___lu_n
mov dword [esp + 8], eax
call fcn.004e88d0
mov eax, dword [ebp - 0x654]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseActCtx]
lea eax, [ebp - 0x332]
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], 0x104
mov eax, dword [ebp - 0x650]
call eax
lea eax, [ebp - 0x436]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x730
mov dword [esp], edi
mov dword [esp + 4], str.failed_to_obtain_working_directory._n
call fcn.004e88d0
lea eax, [ebp - 0x332]
mov dword [esp + 0xc], 0x5ea998
mov dword [esp + 8], eax
lea eax, [ebp - 0x22e]
mov dword [esp + 4], 0x5e83f6
mov dword [esp], eax
call fcn.004e7b60
lea eax, [ebp - 0x53a]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5ea998
mov dword [esp], 0
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov edi, eax
mov eax, 0x733
call fcn.004e7d80
xor eax, eax
test edi, edi
je 0x4f12d8
lea eax, [ebp - 0x53a]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strlen]
cmp eax, edi
sete al
movzx eax, al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], 0x5e95fe
call fcn.004e88d0
mov ecx, dword [sym.imp.kernel32.dll_CopyFileA]
lea eax, [ebp - 0x22e]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x53a]
mov dword [esp], eax
mov dword [ebp - 0x654], ecx
call ecx
sub esp, 0xc
mov edi, eax
mov eax, 0x735
call fcn.004e7d80
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x650], edx
mov dword [esp + 4], str.failed_to_copy_test_executable_to_temp_directory___lu_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp], eax
call fcn.004e88d0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 8], 0x111
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
sub esp, 0xc
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strrchr]
mov edi, dword [0x5ea998]
movzx ecx, byte [0x5ea9a4]
mov dword [eax + 1], edi
mov edi, dword [0x5ea99c]
mov byte [eax + 0xd], cl
mov dword [eax + 5], edi
mov edi, dword [0x5ea9a0]
mov dword [eax + 9], edi
lea eax, [ebp - 0x53a]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
mov ecx, dword [ebp - 0x654]
call ecx
sub esp, 0xc
mov edi, eax
mov eax, 0x739
call fcn.004e7d80
mov edx, dword [ebp - 0x650]
mov eax, dword [edx + 0x34]
mov dword [esp + 4], str.failed_to_copy_test_executable_to_launch_directory___lu_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp], eax
call fcn.004e88d0
lea eax, [ebp - 0x332]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov dword [ebp - 0x650], eax
call eax
sub esp, 4
mov edi, eax
mov eax, 0x73b
call fcn.004e7d80
mov dword [esp], edi
mov dword [esp + 4], str.failed_to_change_working_directory_n
call fcn.004e88d0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], str..exe
mov dword [esp + 4], 0x5ea998
mov dword [esp], 0
mov eax, dword [ebp - 0x64c]
call eax
sub esp, 0x18
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x73d
xor eax, eax
test edi, edi
je 0x4f1493
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strlen]
cmp eax, edi
sete al
movzx eax, al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], 0x5e95fe
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x73e
mov dword [esp + 4], esi
mov dword [esp], ebx
mov eax, dword [ebp - 0x65c]
call eax
mov dword [esp + 0xc], ebx
test eax, eax
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], 0x5e9781
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
lea eax, [ebp - 0x436]
mov dword [esp], eax
mov eax, dword [ebp - 0x650]
call eax
sub esp, 4
mov ebx, eax
mov eax, 0x740
call fcn.004e7d80
mov dword [esp], ebx
mov dword [esp + 4], str.failed_to_reset_working_directory_n
call fcn.004e88d0
mov dword [esp], esi
mov ebx, dword [ebp - 0x658]
call ebx
lea eax, [ebp - 0x22e]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret