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

Disassembly:
sub esp, 0x624
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x620], eax
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 0x10010a6e
cmp word [esp + eax*2 + 0x20e], 0x5c
je 0x100107a9
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 [0x1001fe0c], esi
jne 0x100107bb
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 0x10010877
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 0x10010870
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x10010869
cmp dword [ebx], 0x4643534d
je 0x10010862
push ebp
push ebx
call fcn.10017310
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 0x100108a3
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.10012ca0
add esp, 0xc
test eax, eax
je 0x10010a57
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 0x100108fa
xor eax, eax
mov edx, 0x5c
mov word [esp + ebp*2 + 0x424], dx
mov word [esp + ebp*2 + 0x426], ax
inc ebp
cmp dword [0x1001fe0c], 0
mov eax, dword [0x10020360]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [eax + 4]
jne 0x100109df
cmp ecx, 6
jne 0x10010969
cmp dword [eax + 8], 0
jne 0x10010957
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 0x100109a6
cmp ecx, 6
jne 0x10010969
cmp dword [eax + 8], 1
jne 0x10010969
mov esi, str.rdpclip.exe.6132
jmp 0x10010925
cmp ecx, 0xa
jne 0x10010a19
cmp dword [eax + 8], 0
jne 0x10010a19
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 [0x1001fe0c], 0
je 0x10010a19
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 0x10010a41
cmp ecx, 6
jne 0x10010a09
cmp dword [eax + 8], 0
jne 0x100109f4
mov esi, str.rdpclip.exe.6064
jmp 0x10010925
cmp ecx, 6
jne 0x10010a09
cmp dword [eax + 8], 1
jne 0x10010a09
mov esi, str.rdpclip.exe.6164
jmp 0x10010925
cmp ecx, 0xa
jne 0x100109ac
cmp dword [eax + 8], 0
jne 0x100109ac
jmp 0x1001097c
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
mov esi, 1
jmp 0x10010a61
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 ecx, dword [esp + 0x624]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10008464
add esp, 0x624
ret