Function at 0x46ad00
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, 0x428
mov esi, dword [sym.imp.kernel32.dll_DeleteFileW]
mov dword [esp], 0
call esi
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x46b070
mov edi, dword fs:[0x18]
cmp dword [edi + 0x34], 0x78
je 0x46b0c0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x7a3
mov edx, dword [edi + 0x34]
xor eax, eax
cmp edx, 3
sete al
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], str.DeleteFileW_NULL__returned_ret_d_error_ld_n
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp], 0x59eaa6
call esi
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x7a7
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test ebx, ebx
je 0x46b060
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x41c]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str.DeleteFileW_____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_GetTempPathW]
add eax, 0xe
sub esp, 8
cmp eax, 0x103
ja 0x46b098
cmp word [ebp - 0x41c], 0
mov edx, ebx
je 0x46adf9
nop
add edx, 2
cmp word [edx], 0
jne 0x46adf0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.deletefile]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46ae00
xor eax, eax
lea edx, [ebp - 0x214]
lea esi, [esi]
nop
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46ae20
cmp word [ebp - 0x214], 0
mov ecx, edx
je 0x46ae49
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x46ae40
xor eax, eax
lea esi, [esi]
nop
movzx edi, word [eax + 0x59ea84]
mov word [ecx + eax], di
add eax, 2
test di, di
jne 0x46ae50
mov ecx, dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov dword [esp], ebx
mov dword [esp + 4], 0
mov dword [ebp - 0x424], ecx
call ecx
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x7b5
xor eax, eax
cmp edi, 1
sete al
mov dword [esp + 4], str.couldnt_create_directory_deletefile_n
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp], ebx
call esi
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x7b7
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.DeleteFile_should_fail_for_empty_directories_n
mov dword [esp], eax
call fcn.0045bef0
mov edi, dword [sym.imp.kernel32.dll_RemoveDirectoryW]
mov dword [esp], ebx
mov dword [ebp - 0x420], edi
call edi
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x7b9
xor eax, eax
cmp edi, 1
sete al
mov dword [esp + 4], str.expected_to_remove_directory_deletefile_n
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp], ebx
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x424]
call ecx
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x7bd
xor eax, eax
cmp edi, 1
sete al
mov dword [esp + 4], str.couldnt_create_directory_deletefile_n
mov dword [esp], eax
call fcn.0045bef0
lea edx, [ebp - 0x214]
mov dword [esp + 4], 0
mov dword [esp], edx
mov ecx, dword [ebp - 0x424]
call ecx
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x7bf
xor eax, eax
cmp edi, 1
sete al
mov dword [esp + 4], str.couldnt_create_directory_deletefile_sub_n
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp], ebx
call esi
sub esp, 4
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x7c1
xor eax, eax
test esi, esi
sete al
mov dword [esp + 4], str.DeleteFile_should_fail_for_non_empty_directories_n
mov dword [esp], eax
call fcn.0045bef0
lea edx, [ebp - 0x214]
mov dword [esp], edx
mov edi, dword [ebp - 0x420]
call edi
sub esp, 4
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x7c3
xor eax, eax
cmp esi, 1
sete al
mov dword [esp + 4], str.expected_to_remove_directory_deletefile_sub_n
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp], ebx
call edi
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x7c5
xor eax, eax
cmp ebx, 1
sete al
mov dword [esp + 4], str.expected_to_remove_directory_deletefile_n
mov dword [esp], eax
call fcn.0045bef0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
cmp ecx, 3
sete al
jmp 0x46ada2
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x7a3
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
xor eax, eax
jmp 0x46ad56
mov eax, 0x7ae
call fcn.0045b740
mov dword [esp + 4], str.MAX_PATH_exceeded_in_constructing_paths_n
mov dword [esp], 0
call fcn.0045bef0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x7a0
call fcn.0045b740
mov dword [esp], str.DeleteFileW_is_not_available_n
call fcn.0045bec0
jmp 0x46b04f