Function at 0x100089f0
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 0x10008d15
cmp word [esp + eax*2 + 0x20e], 0x5c
je 0x10008a3b
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 [0x100121b8], esi
jne 0x10008a4d
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 0x10008b09
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 0x10008b02
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x10008afb
cmp dword [ebx], 0x4643534d
je 0x10008af4
push ebp
push ebx
call fcn.100023e0
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 0x10008b35
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.1000bd10
add esp, 0xc
test eax, eax
je 0x10008cfe
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 0x10008b8c
xor eax, eax
mov edx, 0x5c
mov word [esp + ebp*2 + 0x424], dx
mov word [esp + ebp*2 + 0x426], ax
inc ebp
cmp dword [0x100121b8], 0
mov eax, dword [0x100125f0]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [eax + 4]
jne 0x10008c71
cmp ecx, 6
jne 0x10008bfb
cmp dword [eax + 8], 0
jne 0x10008be9
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 0x10008c38
cmp ecx, 6
jne 0x10008bfb
cmp dword [eax + 8], 1
jne 0x10008bfb
mov esi, str.rdpclip.exe.6132
jmp 0x10008bb7
cmp ecx, 0xa
jne 0x10008cab
cmp dword [eax + 8], 0
jne 0x10008cab
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 [0x100121b8], 0
je 0x10008cab
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 0x10008cd3
cmp ecx, 6
jne 0x10008c9b
cmp dword [eax + 8], 0
jne 0x10008c86
mov esi, str.rdpclip.exe.6064
jmp 0x10008bb7
cmp ecx, 6
jne 0x10008c9b
cmp dword [eax + 8], 1
jne 0x10008c9b
mov esi, str.rdpclip.exe.6164
jmp 0x10008bb7
cmp ecx, 0xa
jne 0x10008c3e
cmp dword [eax + 8], 0
jne 0x10008c3e
jmp 0x10008c0e
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