Function at 0x464a90
Capabilities:
Copy file
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x224]
sub esp, 0x224
push 0xffffffffffffffff
push 0x4d8b8d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x514080]
xor eax, ebp
mov dword [ebp + 0x220], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0x104
lea eax, [ebp + 0x18]
push eax
push dword [0x515d44]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp + 0x18]
lea ebx, [esi + 0x14]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x464af0
sub ecx, edx
lea eax, [ebp + 0x18]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.004025b0
cmp byte [ebp + 0x22c], 0
je 0x464d99
push ecx
mov edx, 0x4f2fcc
lea ecx, [ebp]
call fcn.00406ae0
add esp, 4
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 7
jbe 0x464b3a
mov edx, dword [edx]
test edx, edx
jne 0x464b42
xor ecx, ecx
jmp 0x464b56
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x464b47
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00403890
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004040e0
push 0x5c
push dword [ebx]
call fcn.004a2b4b
mov ecx, eax
add esp, 8
or esi, 0xffffffff
test ecx, ecx
je 0x464bd8
mov eax, dword [ebx]
sub ecx, eax
sar ecx, 1
js 0x464bd8
mov eax, dword [eax - 0xc]
sub eax, ecx
mov ecx, ebx
dec eax
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004089a0
mov dword [ebp - 4], 3
mov ecx, ebx
push eax
call fcn.00409950
mov dword [ebp - 4], esi
mov eax, esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x464bd8
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
or esi, 0xffffffff
push 0x2e
push dword [ebx]
call fcn.004a2b4b
add esp, 8
test eax, eax
je 0x464c36
sub eax, dword [ebx]
sar eax, 1
js 0x464c36
push eax
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0040af80
mov dword [ebp - 4], 5
mov ecx, ebx
push eax
call fcn.00409950
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x464c36
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push str..exe
push eax
mov ecx, ebx
call fcn.004646d0
mov dword [ebp - 4], 7
lea esi, [ebx + 4]
push eax
mov ecx, esi
call fcn.00409950
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x464c91
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
or edi, 0xffffffff
lea esi, [ebx + 4]
push 0
push dword [esi]
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str..ini
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.004646d0
mov dword [ebp - 4], 9
lea ecx, [ebx + 0x10]
push eax
call fcn.00409950
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x464cfc
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
or edi, 0xffffffff
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], 0x4ec614
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0xb
mov eax, 0xfeff
push 0
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x464d67
test esi, esi
je 0x464d5e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
xor esi, esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x4ec614
test esi, esi
je 0x464d87
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
call fcn.004046f0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x464e8c
jmp 0x464db5
mov edx, esi
mov ecx, ebx
call fcn.00480be0
test al, al
jne 0x464b6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x464e67
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e1514]
mov ecx, dword [ebp - 0x14]
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xc
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403700
test al, al
jne 0x464e0c
lea ecx, [ebp + 0x18]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x464df0
sub ecx, edx
lea eax, [ebp + 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00403890
mov dword [ebp - 4], 0xd
lea eax, [ebp - 0x10]
push eax
push str.RealUpdaterPath
mov ecx, ebx
call fcn.00464f70
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x464e4e
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
lea eax, [ebx + 4]
mov ecx, ebx
push eax
call fcn.00464ea0
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebx + 0x18]
call fcn.00409580
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x220]
xor ecx, ebp
call fcn.004a1550
lea esp, [ebp + 0x224]
pop ebp
ret 4
push 0x80004005
call fcn.00402720
int3