Function at 0x10005d90
Capabilities:
Copy file
Delete file
Get common file path
Get file size
Read file via mapping

Disassembly:
sub esp, 0x620
push esi
lea eax, [esp + 0x210]
push eax
xor esi, esi
push 0x104
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x100060b5
cmp word [esp + eax*2 + 0x20e], 0x5c
je 0x10005ddb
xor edx, edx
mov ecx, 0x5c
mov word [esp + eax*2 + 0x210], cx
mov word [esp + eax*2 + 0x212], dx
inc eax
mov ecx, str.w64.dat
cmp dword [0x10012394], esi
jne 0x10005ded
mov ecx, str.w32.dat
push ebx
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea esi, [esp + eax*2 + 0x21c]
push ecx
push esi
call edi
add esp, 8
push 0
push str.wex.dat
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.wex.dat
push esi
call edi
add esp, 8
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005ea9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 4
push 0
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x10005ea2
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x10005e9b
cmp dword [ebx], 0x4643534d
je 0x10005e94
push ebp
push ebx
call fcn.1000aa60
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
cmp word [esp + ebx*2 + 0x12], 0x5c
je 0x10005ed5
xor ecx, ecx
mov eax, 0x5c
mov word [esp + ebx*2 + 0x14], ax
mov word [esp + ebx*2 + 0x16], cx
inc ebx
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x224]
push eax
call fcn.100036d0
add esp, 0xc
test eax, eax
je 0x1000609e
push 0x104
lea ecx, [esp + 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
cmp word [esp + ebp*2 + 0x422], 0x5c
je 0x10005f2c
xor eax, eax
mov edx, 0x5c
mov word [esp + ebp*2 + 0x424], dx
mov word [esp + ebp*2 + 0x426], ax
inc ebp
cmp dword [0x10012394], 0
mov eax, dword [0x100125c0]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [eax + 4]
jne 0x10006011
cmp ecx, 6
jne 0x10005f9b
cmp dword [eax + 8], 0
jne 0x10005f89
mov esi, str.rdpclip.exe.6032
push esi
lea ecx, [esp + ebx*2 + 0x18]
push ecx
call edi
push esi
lea edx, [esp + ebp*2 + 0x428]
push edx
call edi
lea eax, [esp + 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0
lea ecx, [esp + 0x428]
push ecx
lea edx, [esp + 0x1c]
push edx
jmp 0x10005fd8
cmp ecx, 6
jne 0x10005f9b
cmp dword [eax + 8], 1
jne 0x10005f9b
mov esi, str.rdpclip.exe.6132
jmp 0x10005f57
cmp ecx, 0xa
jne 0x1000604b
cmp dword [eax + 8], 0
jne 0x1000604b
push str.rfxvmt.dll
lea eax, [esp + ebx*2 + 0x18]
push eax
call edi
push str.rfxvmt.dll
lea ecx, [esp + ebp*2 + 0x428]
push ecx
call edi
push 0
lea edx, [esp + 0x428]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [0x10012394], 0
je 0x1000604b
push str.rdpclip.exe.6064
lea esi, [esp + ebx*2 + 0x18]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x14]
push ecx
call ebx
push str.rdpclip.exe.6164
push esi
call edi
lea edx, [esp + 0x14]
push edx
call ebx
jmp 0x10006073
cmp ecx, 6
jne 0x1000603b
cmp dword [eax + 8], 0
jne 0x10006026
mov esi, str.rdpclip.exe.6064
jmp 0x10005f57
cmp ecx, 6
jne 0x1000603b
cmp dword [eax + 8], 1
jne 0x1000603b
mov esi, str.rdpclip.exe.6164
jmp 0x10005f57
cmp ecx, 0xa
jne 0x10005fde
cmp dword [eax + 8], 0
jne 0x10005fde
jmp 0x10005fae
push str.rdpclip.exe.6032
lea esi, [esp + ebx*2 + 0x18]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x14]
push eax
call ebx
push str.rdpclip.exe.6132
push esi
call edi
lea ecx, [esp + 0x14]
push ecx
call ebx
push str.rfxvmt.dll
push esi
call edi
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x21c]
push eax
mov esi, 1
call ebx
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
add esp, 0x620
ret
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x21c]
push eax
call ebx
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
add esp, 0x620
ret