Function at 0x42d914
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x27
push 0
push 0
dec ecx
jne 0x42d91d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42dbc6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
push ebp
push 0x42db9e
push dword fs:[eax]
mov dword fs:[eax], esp
test cl, cl
je 0x42d9b5
mov eax, dword [ebp - 8]
call fcn.00408f4c
mov eax, dword [ebp - 8]
call fcn.00408d00
test al, al
jne 0x42d9b5
push 0
mov eax, dword [ebp - 8]
call fcn.00404b74
push eax
mov eax, dword [ebp - 4]
call fcn.00404b74
mov ebx, eax
push ebx
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x42d9b5
mov edx, ebx
lea eax, [ebp - 0x114]
call fcn.004048ac
mov eax, dword [ebp - 0x114]
call fcn.00408f4c
test al, al
je 0x42d9b5
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42dba8
mov eax, dword [0x470080]
cmp dword [eax], 2
jne 0x42d9dd
push 5
mov eax, dword [ebp - 8]
call fcn.00404b74
push eax
mov eax, dword [ebp - 4]
call fcn.00404b74
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x42db94
mov dl, 1
mov eax, dword [0x415ca0]
call fcn.004037f8
mov dword [ebp - 0x10], eax
push 0xff
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
xor eax, eax
push ebp
push 0x42daa0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.00404924
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0x118]
call fcn.0040d17c
lea eax, [ebp - 0x118]
mov edx, 0x42dbe0
call fcn.0040497c
mov eax, dword [ebp - 0x118]
call fcn.00408d00
test al, al
je 0x42da96
lea eax, [ebp - 0x124]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.00404924
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x120]
call fcn.0040d17c
lea eax, [ebp - 0x120]
mov edx, 0x42dbe0
call fcn.0040497c
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42dab2
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x12c]
lea edx, [ebp - 0x128]
call fcn.004083d4
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, 0x42dbf4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x42dafc
mov edx, 0x42dbf4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 8]
call fcn.00409250
push dword [ebp - 0x134]
push 0x42dc08
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 4]
call fcn.00409250
push dword [ebp - 0x138]
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.00404a34
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.00404924
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.0040d17c
lea eax, [ebp - 0x13c]
mov edx, 0x42dbe0
call fcn.0040497c
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x10]
call fcn.00403828
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42dba8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dbcd
lea eax, [ebp - 0x140]
mov edx, 0xc
call fcn.004046c8
ret