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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x234
mov esi, dword [sym.imp.kernel32.dll_DeleteFileA]
mov dword [esp], 0
call esi
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x750
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test ebx, ebx
jne 0x46c164
mov eax, 1
cmp ecx, 0x57
je 0x46c164
xor eax, eax
cmp ecx, 3
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], str.DeleteFileA_NULL__returned_ret_d_error_ld_n
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp], 0x597da0
call esi
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x755
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test ebx, ebx
jne 0x46c1c1
mov eax, 1
cmp ecx, 3
je 0x46c1c1
xor eax, eax
cmp ecx, 0xa1
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], str.DeleteFileA_____returned_ret_d_error_ld_n
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp], 0x5989b0
call esi
sub esp, 4
mov ebx, eax
call fcn.0057d110
xor edx, edx
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x75a
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x34]
test ebx, ebx
jne 0x46c228
mov edx, 1
cmp ecx, 2
je 0x46c228
cmp ecx, 0x57
je 0x46c228
cmp ecx, 5
je 0x46c228
xor edx, edx
cmp ecx, 1
sete dl
lea esi, [esi]
mov dword [esp + 0xc], ecx
mov dword [esp], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], str.DeleteFileA__nul___returned_ret_d_error_ld_n
call fcn.0045bef0
mov dword [esp], str.nonexist.txt
call esi
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x761
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test ebx, ebx
jne 0x46c278
xor eax, eax
cmp ecx, 2
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x214]
mov dword [esp + 4], str.DeleteFileA__nonexist.txt___returned_ret_d_error_ld_n
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x110]
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x59b207
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
lea eax, [ebp - 0x110]
sub esp, 0x10
mov ebx, dword fs:[0x18]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 5
mov dword [esp + 4], 0x80000000
mov dword [ebp - 0x21c], eax
call eax
sub esp, 0x1c
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x768
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], 0x59b20b
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0045bef0
lea eax, [ebp - 0x110]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebp - 0x220], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x76c
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], 0x59b221
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x220]
mov dword [esp], edx
call fcn.0045bef0
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp], edi
mov dword [ebp - 0x220], eax
call eax
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x770
mov eax, dword [ebx + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x59b237
call fcn.0045bef0
lea eax, [ebp - 0x110]
mov dword [esp], eax
call esi
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x772
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.DeleteFile_should_fail_n
mov dword [esp], eax
call fcn.0045bef0
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 4], 0
mov dword [esp], 0x59b266
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x776
mov eax, dword [ebx + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.CreateDirectory_failed__got_err__ld_n
call fcn.0045bef0
mov dword [esp], 0x59b266
call esi
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x778
xor eax, eax
mov edx, dword [ebx + 0x34]
test edi, edi
jne 0x46c49d
xor eax, eax
cmp edx, 5
sete al
mov dword [esp + 8], edx
mov dword [esp + 4], str.Expected_ERROR_ACCESS_DENIED__got_error__ld_n
mov dword [esp], eax
mov edi, dword fs:[0x18]
call fcn.0045bef0
mov dword [esp], 0x59b266
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x77b
mov eax, dword [edi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.Remove_a_directory_failed__got_error__ld_n
call fcn.0045bef0
lea eax, [ebp - 0x218]
mov dword [esp], eax
call fcn.0057d960
lea eax, [ebp - 0x110]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CopyFileA]
sub esp, 0xc
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x780
mov eax, dword [edi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5995e7
call fcn.0045bef0
lea eax, [ebp - 0x110]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 5
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
mov eax, dword [ebp - 0x21c]
call eax
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x782
mov eax, dword [edi + 0x34]
mov dword [esp + 4], 0x5995e7
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1000002
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
sub esp, 0x18
mov dword [ebp - 0x21c], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x785
mov eax, dword [edi + 0x34]
mov dword [esp + 4], 0x5995e7
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x21c]
xor eax, eax
test edx, edx
setne al
mov dword [esp], eax
call fcn.0045bef0
lea ecx, [ebp - 0x110]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp], ecx
call esi
sub esp, 4
mov dword [ebp - 0x224], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x789
xor eax, eax
mov dword [esp + 4], 0x59b2f2
mov ecx, dword [ebp - 0x224]
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x78a
mov eax, dword [edi + 0x34]
mov dword [esp + 4], 0x5995e7
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 5
sete al
mov dword [esp], eax
call fcn.0045bef0
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
mov eax, dword [ebp - 0x220]
call eax
lea ecx, [ebp - 0x110]
sub esp, 4
mov dword [esp], ecx
call esi
sub esp, 4
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x78f
mov eax, dword [edi + 0x34]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5995e7
call fcn.0045bef0
mov dword [esp], ebx
mov eax, dword [ebp - 0x220]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret