Function at 0x100089b0
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 0x10008cd5
cmp word [esp + eax*2 + 0x20e], 0x5c
je 0x100089fb
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 [0x1001234c], esi
jne 0x10008a0d
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 0x10008ac9
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 0x10008ac2
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x10008abb
cmp dword [ebx], 0x4643534d
je 0x10008ab4
push ebp
push ebx
call fcn.1000cc00
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 0x10008af5
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.1000d5d0
add esp, 0xc
test eax, eax
je 0x10008cbe
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 0x10008b4c
xor eax, eax
mov edx, 0x5c
mov word [esp + ebp*2 + 0x424], dx
mov word [esp + ebp*2 + 0x426], ax
inc ebp
cmp dword [0x1001234c], 0
mov eax, dword [0x100125c0]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [eax + 4]
jne 0x10008c31
cmp ecx, 6
jne 0x10008bbb
cmp dword [eax + 8], 0
jne 0x10008ba9
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 0x10008bf8
cmp ecx, 6
jne 0x10008bbb
cmp dword [eax + 8], 1
jne 0x10008bbb
mov esi, str.rdpclip.exe.6132
jmp 0x10008b77
cmp ecx, 0xa
jne 0x10008c6b
cmp dword [eax + 8], 0
jne 0x10008c6b
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 [0x1001234c], 0
je 0x10008c6b
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 0x10008c93
cmp ecx, 6
jne 0x10008c5b
cmp dword [eax + 8], 0
jne 0x10008c46
mov esi, str.rdpclip.exe.6064
jmp 0x10008b77
cmp ecx, 6
jne 0x10008c5b
cmp dword [eax + 8], 1
jne 0x10008c5b
mov esi, str.rdpclip.exe.6164
jmp 0x10008b77
cmp ecx, 0xa
jne 0x10008bfe
cmp dword [eax + 8], 0
jne 0x10008bfe
jmp 0x10008bce
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