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

Disassembly:
push 0x220
mov eax, 0x459174
call fcn.0043ccad
mov edi, ecx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [0x478fc8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
call fcn.00441e1e
pop ecx
push eax
lea eax, [ebp - 0x21c]
lea esi, [edi + 0x14]
push eax
mov ecx, esi
call fcn.004019fa
cmp byte [ebp + 8], 0
je 0x429ca8
push 0x46c2fc
lea ecx, [ebp - 0x220]
call fcn.00402eb5
and dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
mov edx, edi
call fcn.0040559e
or dword [ebp - 4], 0xffffffff
mov bl, al
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00401b8a
test bl, bl
jne 0x429cb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x429e97
mov edx, edi
mov ecx, esi
call fcn.004350ea
test al, al
jmp 0x429c9b
push 0x5c
push dword [esi]
call fcn.0043e594
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x429d04
sub ecx, dword [esi]
sar ecx, 1
js 0x429d04
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004027aa
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00402825
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
push 0x2e
push dword [esi]
call fcn.0043e594
pop ecx
pop ecx
test eax, eax
je 0x429d49
sub eax, dword [esi]
sar eax, 1
js 0x429d49
push eax
lea eax, [ebp - 0x220]
mov ecx, esi
push eax
call fcn.0040276a
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00402825
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
push str..exe
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.00429b0e
lea ebx, [edi + 4]
mov dword [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.00402825
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
push 0
push dword [ebx]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, 0x80
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str..ini
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.00429b0e
lea ebx, [edi + 0x10]
mov dword [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00402825
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
xor eax, eax
push eax
push esi
push 2
push eax
push eax
push 0x40000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x220], 0xfeff
push 0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x228], esi
push eax
push 2
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x429e34
test esi, esi
je 0x429e2c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x228], 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x467a50
call fcn.00404635
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00402eb5
push eax
push str.RealUpdaterPath
mov ecx, edi
mov dword [ebp - 4], 5
call fcn.00429f0b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
lea eax, [edi + 4]
mov ecx, edi
push eax
call fcn.00429e9f
push ebx
lea ecx, [edi + 0x18]
call fcn.004041ca
xor eax, eax
call fcn.0043cc57
ret 4