Function at 0x45a530
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 0x4ae9fd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4e4050]
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 edi, ecx
push 0x104
lea eax, [ebp + 0x18]
push eax
push dword [0x4e53fc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp + 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45a586
sub ecx, edx
lea eax, [ebp + 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x14]
call fcn.00402670
cmp byte [ebp + 0x22c], 0
je 0x45a7f7
push ecx
mov edx, 0x4c8eac
lea ecx, [ebp]
call fcn.00406250
add esp, 4
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x45a5d1
mov edx, dword [edx]
test edx, edx
jne 0x45a5d9
xor ecx, ecx
jmp 0x45a5ef
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45a5e0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004037d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00403f40
push 0x5c
push dword [edi + 0x14]
call fcn.0047f493
mov ecx, eax
add esp, 8
or ebx, 0xffffffff
test ecx, ecx
je 0x45a666
mov eax, dword [edi + 0x14]
sub ecx, eax
sar ecx, 1
js 0x45a666
mov eax, dword [eax - 0xc]
sub eax, ecx
lea ecx, [edi + 0x14]
dec eax
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408020
mov dword [ebp - 4], 3
lea ecx, [edi + 0x14]
push eax
call fcn.00408f80
mov dword [ebp - 4], ebx
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a666
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x2e
push dword [edi + 0x14]
call fcn.0047f493
add esp, 8
test eax, eax
je 0x45a6bc
sub eax, dword [edi + 0x14]
sar eax, 1
js 0x45a6bc
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x14]
call fcn.0040a260
mov dword [ebp - 4], 5
lea ecx, [edi + 0x14]
push eax
call fcn.00408f80
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a6bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str..exe
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0045a190
mov dword [ebp - 4], 7
lea ecx, [edi + 4]
push eax
call fcn.00408f80
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a6fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [edi + 4]
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x80
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str..ini
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0045a190
mov dword [ebp - 4], 9
lea ecx, [edi + 0x10]
push eax
call fcn.00408f80
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a75b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x4c258c
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xb
lea eax, [ebp - 0x1c]
push 0
push eax
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xfeff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x45a7ca
test esi, esi
je 0x45a7bc
push esi
call eax
mov dword [ebp - 0x14], 0
xor esi, esi
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x4c258c
test esi, esi
je 0x45a7e6
push esi
call eax
mov dword [ebp - 0x14], 0
call fcn.00404500
mov ecx, eax
test ecx, ecx
je 0x45a8d0
jmp 0x45a814
mov edx, edi
lea ecx, [edi + 0x14]
call fcn.004742b0
test al, al
jne 0x45a607
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x45a8ab
mov eax, dword [ecx]
call dword [eax + 0xc]
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.00403660
test al, al
jne 0x45a85c
lea ecx, [ebp + 0x18]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45a840
sub ecx, edx
lea eax, [ebp + 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004037d0
mov dword [ebp - 4], 0xd
lea eax, [ebp - 0x10]
push eax
push str.RealUpdaterPath
mov ecx, edi
call fcn.0045a9b0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45a892
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 4]
mov ecx, edi
push eax
call fcn.0045a8e0
lea eax, [edi + 0x10]
push eax
lea ecx, [edi + 0x18]
call fcn.00408b40
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.0047de56
lea esp, [ebp + 0x224]
pop ebp
ret 4
push 0x80004005
call fcn.004027c0
int3