Function at 0x4052c0
Capabilities:
Copy file
Create process on windows
Delete file
Get common file path
Get disk size
Move file

Disassembly:
push 0xffffffffffffffff
push 0x411e36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4f4
mov eax, dword [0x4161c0]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x10000000
push str.write.test
mov dword [esp + 0x514], eax
mov edi, ecx
call esi
cmp eax, 0xffffffff
jne 0x405342
nop
push 5
push 0x70
push 0
call fcn.004043f0
cmp eax, 2
je 0x40566d
push 0
push 0x80
push 2
push 0
push 0
push 0x10000000
push str.write.test
call esi
cmp eax, 0xffffffff
je 0x405310
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.write.test
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x4178f4]
mov ecx, 0x4178f4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x2f0]
push ecx
push 0x104
mov dword [esp + 0x50c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [esp + 0x2f0]
push edx
call fcn.00408fe6
add esp, 4
lea eax, [esp + 0x10]
push eax
push 0x71
call fcn.00404330
push 0x413438
push edi
call fcn.00407624
add eax, 4
push eax
call fcn.00408f82
mov esi, eax
push esi
push edi
push str.PreUpdate:_lpCmdline_s__Space_uM_n
call fcn.00403310
add esp, 0x18
test esi, esi
jg 0x4053d0
mov esi, 0x1e
movzx edx, word [esp + 0x2f0]
mov eax, dword [esp + 0x10]
push ebx
push ebp
add esi, 0xa
lea ecx, [esi + 1]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00408ac3
mov ebp, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
shrd ecx, eax, 0x14
shr eax, 0x14
push esi
push eax
push ecx
push str.FreeSpace:__uM__need__uM_n
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
call fcn.00403310
mov ecx, dword [esp + 0x24]
mov eax, esi
cdq
mov ebx, edx
add esp, 0x10
cmp ecx, ebx
mov dword [esp + 0x20], eax
ja 0x405508
jb 0x405451
mov edx, dword [esp + 0x10]
cmp edx, eax
ja 0x405508
mov eax, dword [0x4178f4]
mov ecx, 0x4178f4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
push ecx
push 0x6b
mov byte [esp + 0x514], 1
call fcn.00404330
mov edi, dword [esp + 0x1c]
push 5
push edi
lea edx, [esp + 0x30]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
mov byte [esp + 0x50c], 0
je 0x405620
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
shrd ecx, eax, 0x14
shr eax, 0x14
push esi
push eax
push ecx
push str.FreeSpace:__uM__need__uM_n
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
call fcn.00403310
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp ecx, ebx
jb 0x405451
ja 0x405508
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x20]
jbe 0x405451
mov ebx, 1
call fcn.004050b0
test eax, eax
jge 0x405569
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x50c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40553f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0xfffffffe
pop ebp
pop ebx
mov ecx, dword [esp + 0x4fc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4f4]
pop esi
call fcn.004077be
add esp, 0x500
ret
push 0
push str.RemoveService.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esi + 0x412be0]
push eax
lea ecx, [esp + 0xf4]
push ecx
call edi
push str..DEL
lea edx, [esp + 0xf4]
push edx
call ebx
mov ecx, dword [esi + 0x412be0]
push 1
lea eax, [esp + 0xf4]
push eax
push ecx
call ebp
mov edx, dword [esi + 0x412be0]
push 1
push edx
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0xf0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 4
cmp esi, 0x20
jb 0x405590
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x50c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405619
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x405544
add edi, 0xfffffff0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40563a
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x50c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405663
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0xfffffffd
jmp 0x405544
or eax, 0xffffffff
jmp 0x405546