Function at 0x464540
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 0x4d81fd
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 0x4645a0
sub ecx, edx
lea eax, [ebp + 0x18]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.004025d0
cmp byte [ebp + 0x22c], 0
je 0x464849
push ecx
mov edx, 0x4f2fcc
lea ecx, [ebp]
call fcn.00406b10
add esp, 4
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 7
jbe 0x4645ea
mov edx, dword [edx]
test edx, edx
jne 0x4645f2
xor ecx, ecx
jmp 0x464606
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4645f7
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004038b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00404100
push 0x5c
push dword [ebx]
call fcn.004a222b
mov ecx, eax
add esp, 8
or esi, 0xffffffff
test ecx, ecx
je 0x464688
mov eax, dword [ebx]
sub ecx, eax
sar ecx, 1
js 0x464688
mov eax, dword [eax - 0xc]
sub eax, ecx
mov ecx, ebx
dec eax
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004089c0
mov dword [ebp - 4], 3
mov ecx, ebx
push eax
call fcn.00409970
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 0x464688
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.004a222b
add esp, 8
test eax, eax
je 0x4646e6
sub eax, dword [ebx]
sar eax, 1
js 0x4646e6
push eax
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0040af90
mov dword [ebp - 4], 5
mov ecx, ebx
push eax
call fcn.00409970
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 0x4646e6
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.00464180
mov dword [ebp - 4], 7
lea esi, [ebx + 4]
push eax
mov ecx, esi
call fcn.00409970
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 0x464741
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.00464180
mov dword [ebp - 4], 9
lea ecx, [ebx + 0x10]
push eax
call fcn.00409970
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 0x4647ac
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 0x464817
test esi, esi
je 0x46480e
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 0x464837
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
call fcn.00404710
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46493c
jmp 0x464865
mov edx, esi
mov ecx, ebx
call fcn.00480670
test al, al
jne 0x46461e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x464917
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.00403720
test al, al
jne 0x4648bc
lea ecx, [ebp + 0x18]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4648a0
sub ecx, edx
lea eax, [ebp + 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004038b0
mov dword [ebp - 4], 0xd
lea eax, [ebp - 0x10]
push eax
push str.RealUpdaterPath
mov ecx, ebx
call fcn.00464a20
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 0x4648fe
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.00464950
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebx + 0x18]
call fcn.004095a0
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.004a0c30
lea esp, [ebp + 0x224]
pop ebp
ret 4
push 0x80004005
call fcn.00402740
int3