Function at 0x418730
Capabilities:
Check os version
Copy file
Create process on windows
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585b12
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5e9750]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00447243
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41877a
push 0x80004005
call fcn.00405920
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x22c], esi
push 0x208
lea edx, [ebp - 0x222]
xor ecx, ecx
push ebx
mov dword [ebp - 4], ebx
push edx
mov word [ebp - 0x224], cx
call fcn.005474c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4187ee
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4187e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x418baa
lea eax, [ebp - 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4187f7
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00405970
call fcn.00447243
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x418833
push 0x80004005
call fcn.00405920
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x230], esi
push 0x208
lea edx, [ebp - 0x222]
xor ecx, ecx
push ebx
mov byte [ebp - 4], 1
push edx
mov word [ebp - 0x224], cx
call fcn.005474c0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4188b1
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41889c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
jmp 0x4187ce
lea eax, [ebp - 0x224]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4188c0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00405970
mov eax, 0x5c
lea ebx, [ebp - 0x230]
call fcn.00406d60
push 1
push 0x5c
lea ecx, [ebp - 0x228]
call fcn.00406ad0
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.004071a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418939
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00447243
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x418953
push 0x80004005
call fcn.00405920
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x230]
push ecx
push ecx
lea ebx, [edi - 0x10]
mov dword [ebp - 0x228], esp
mov esi, esp
push ebx
call fcn.00405300
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00418220
add esp, 8
test eax, eax
jne 0x4189f4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4189c2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4189df
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
jmp 0x4187ce
mov esi, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x22c]
push 0
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x418a29
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4189c2
mov ecx, dword [esi]
push esi
jmp 0x4189bb
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x418a90
lea ecx, [ebp - 0x228]
call fcn.004292e0
movzx ecx, word [ebp + 8]
push ecx
lea edx, [ebp - 0x228]
push str._Drive:_c
push edx
mov byte [ebp - 4], 4
call fcn.004075c0
mov eax, dword [ebp - 0x228]
add esp, 0xc
push 1
push edi
push eax
push esi
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setge cl
mov edi, ecx
lea ecx, [ebp - 0x228]
call fcn.00405410
test edi, edi
jne 0x418b2e
push 0x40
lea edx, [ebp - 0x288]
push 0
push edx
call fcn.005474c0
xor eax, eax
add esp, 0xc
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x28c], 0x44
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
call fcn.004292e0
movzx eax, word [ebp + 8]
push eax
push esi
lea ecx, [ebp - 0x228]
push str.__s___Drive:_c
push ecx
mov byte [ebp - 4], 5
call fcn.004075c0
mov ecx, dword [ebp - 0x228]
add esp, 0x10
lea edx, [ebp - 0x244]
push edx
lea eax, [ebp - 0x28c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x228]
mov edi, eax
call fcn.00405410
test edi, edi
je 0x418b3b
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x418b42
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x418b62
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418b7f
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418ba8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00545559
mov esp, ebp
pop ebp
ret 4