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

Disassembly:
sub esp, 0x62c
lea eax, [esp + 0x218]
push ebx
push eax
push 0x104
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x10001332
push 0x5c
pop ecx
cmp word [esp + eax*2 + 0x21a], cx
je 0x1000109a
mov word [esp + eax*2 + 0x21c], cx
xor ecx, ecx
mov word [esp + eax*2 + 0x21e], cx
inc eax
cmp dword [0x10026880], ebx
mov ecx, str.w32.dat
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
lea edi, [esp + 0x228]
lea edi, [edi + eax*2]
mov eax, str.w64.dat
cmove eax, ecx
push eax
push edi
call esi
pop ecx
pop ecx
push ebx
mov ebp, str.wex.dat
lea eax, [esp + 0x22c]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebp
push edi
call esi
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
lea eax, [esp + 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000115b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 4
push ebx
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
je 0x10001158
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x10001155
cmp dword [ecx], 0x4643534d
je 0x1000114e
mov edx, dword [esp + 0x18]
call fcn.1000a5e7
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call ebp
push esi
call ebp
lea eax, [esp + 0x20]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x5c
pop edi
mov dword [esp + 0x1c], eax
cmp word [esp + eax*2 + 0x1e], di
je 0x1000118b
xor ecx, ecx
mov word [esp + eax*2 + 0x20], di
mov word [esp + eax*2 + 0x22], cx
inc eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
lea ecx, [esp + 0x22c]
call fcn.1000494b
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ecx
test eax, eax
je 0x10001325
push esi
lea eax, [esp + 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
mov dword [esp + 0x18], eax
cmp word [esp + esi*2 + 0x42e], di
je 0x100011e1
xor eax, eax
mov word [esp + esi*2 + 0x430], di
mov word [esp + esi*2 + 0x432], ax
inc esi
mov dword [esp + 0x18], esi
mov ecx, str.rfxvmt.dll
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x10027a24]
mov dword [esp + 0x14], ebx
cmp dword [0x10026880], ebx
jne 0x10001221
cmp dword [eax + 4], 6
jne 0x10001287
mov eax, dword [eax + 8]
test eax, eax
jne 0x10001215
mov eax, str.rdpclip.exe.6032
jmp 0x1000123f
cmp eax, 1
jne 0x10001296
mov eax, str.rdpclip.exe.6132
jmp 0x1000123f
cmp dword [eax + 4], 6
jne 0x10001287
mov eax, dword [eax + 8]
test eax, eax
jne 0x10001235
mov eax, str.rdpclip.exe.6064
jmp 0x1000123f
cmp eax, 1
jne 0x10001296
mov eax, str.rdpclip.exe.6164
push eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x24]
mov eax, dword [esp + 0x20]
lea eax, [ecx + eax*2]
push eax
call edi
push dword [esp + 0x10]
lea eax, [esp + 0x434]
lea eax, [eax + esi*2]
push eax
call edi
lea eax, [esp + 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push ebx
lea eax, [esp + 0x434]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x10001296
cmp dword [eax + 4], 0xa
jne 0x10001296
cmp dword [eax + 8], ebx
jne 0x10001296
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x1c]
lea esi, [esp + 0x20]
lea esi, [esi + eax*2]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100012d7
push eax
push esi
call edi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x430]
push eax
mov eax, dword [esp + 0x1c]
lea eax, [ecx + eax*2]
push eax
call edi
push ebx
lea eax, [esp + 0x434]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [0x10026880], ebx
je 0x100012f5
push str.rdpclip.exe.6064
push esi
call edi
lea eax, [esp + 0x20]
push eax
call ebp
push str.rdpclip.exe.6164
jmp 0x10001309
push str.rdpclip.exe.6032
push esi
call edi
lea eax, [esp + 0x20]
push eax
call ebp
push str.rdpclip.exe.6132
push esi
call edi
lea eax, [esp + 0x20]
push eax
call ebp
push str.rfxvmt.dll
push esi
call edi
lea eax, [esp + 0x20]
push eax
call ebp
xor ebx, ebx
inc ebx
lea eax, [esp + 0x228]
push eax
call ebp
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x62c
ret