Function at 0x4064f0
Capabilities:
Copy file
Create process on windows
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x437eab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x474
mov eax, dword [0x44a1e0]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
mov dword [esp + 0x480], eax
push 0x104
lea eax, [esp + 0x27c]
push eax
call esi
push 0x104
lea ecx, [esp + 0x74]
push ecx
call esi
lea edi, [esp + 0x278]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406544
mov ebx, dword [esp + 0x494]
mov ebp, dword [ebx + 0xc]
mov dx, word [0x43ac14]
mov eax, ebp
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406564
lea edi, [esp + 0x278]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406577
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x70]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406592
mov ax, word [0x43ac14]
mov word [edi], ax
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4065a7
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4065b5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x70]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4065d2
mov cx, word [0x43b1c4]
lea edx, [ebx + 0x10]
push edx
lea eax, [ebx + 0x3c]
mov word [edi], cx
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00406370
lea ecx, [ebx + 0xc]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x498], 0
call fcn.00406370
mov eax, dword [eax]
push 0
lea ecx, [esp + 0x74]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40663e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x48c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406667
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 5
lea eax, [esp + 0x27c]
push eax
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edx, dword [ebx + 0x34]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x406788
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x38]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x44b18c]
push ecx
mov dword [esp + 0x30], 0x44
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x388]
push str._s_s__s
push eax
call fcn.0041c813
lea ecx, [esp + 0x390]
push ecx
lea edx, [esp + 0x18c]
push 0x43b1ac
push edx
call fcn.0041c813
mov ecx, dword [0x44b18c]
add esp, 0x20
lea eax, [esp + 0x174]
push eax
call fcn.00405510
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [esp + 0x39c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40678c
mov ecx, dword [ebx + 4]
mov eax, dword [0x44b18c]
mov edx, dword [ebx + 0x34]
push ecx
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x180]
push str._s_s
push eax
call fcn.0041c813
add esp, 0x14
lea ecx, [esp + 0x174]
push ecx
mov ecx, dword [0x44b18c]
call fcn.00405510
mov edx, dword [0x44b18c]
mov ecx, dword [edx]
test ecx, ecx
je 0x406788
push 0
push 0x43b184
lea eax, [esp + 0x17c]
push eax
call fcn.0042c437
xor eax, eax
jmp 0x4067c1
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x474]
pop ebx
call fcn.0041c40e
add esp, 0x480
ret 4