Function at 0x404f40
Capabilities:
Copy file
Create process on windows
Create thread
Delete file
Hide graphical window
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x688
mov eax, dword [0x469f40]
xor eax, esp
mov dword [esp + 0x684], eax
mov eax, dword [ebp + 8]
push esi
push edi
push str.updater_xenone
push 0
push 0x100002
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
je 0x404f81
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.updater_xenone
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp byte [0x46edb8], 0
je 0x404fdb
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 1
call fcn.0040ef26
add esp, 4
push eax
push 0x45903c
push str.CONOUT_
call fcn.0040ee05
add esp, 0xc
push 0
call fcn.0040ef26
add esp, 4
push eax
push 0x459684
push str.CONIN_
call fcn.0040ee05
add esp, 0xc
push 0x104
lea eax, [esp + 0x7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x78]
push str..new.exe
push eax
call fcn.00408290
add esp, 8
test eax, eax
jne 0x405114
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x184]
push str._s.new.exe
push eax
call fcn.004012e0
add esp, 0xc
lea eax, [esp + 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call fcn.0040fe22
add esp, 4
push eax
call fcn.0040ee4c
mov eax, dword [esp + 0x18]
add esp, 4
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x34], 0
push 0x7f00
push 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x2c], 0x404d50
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], str.Update_Checker
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x40], 6
call dword [sym.imp.USER32.dll_RegisterClassA]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
push 0
push dword [esp + 0x18]
mov ecx, eax
lea eax, [edi - 0x190]
cdq
push 0
sub eax, edx
mov esi, eax
lea eax, [ecx - 0x96]
push 0
push 0x96
cdq
push 0x190
sub eax, edx
sar esi, 1
sar eax, 1
push eax
push esi
push 0x10c20000
push str.Update_Checker
push str.Update_Checker
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
jne 0x405215
pop edi
pop esi
mov ecx, dword [esp + 0x684]
xor ecx, esp
call fcn.00406aa2
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call edi
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
mov al, byte [esp + ecx + 0x78]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x17f], al
test al, al
jne 0x405130
lea ecx, [esp + 0x78]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405150
sub ecx, edx
add ecx, 0xfffffff8
cmp ecx, 0x104
jae 0x4052e9
mov byte [esp + ecx + 0x78], al
xor esi, esi
nop
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40502f
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40502f
push 0x64
call edi
inc esi
cmp esi, 0xa
jl 0x405170
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x184]
push eax
lea eax, [esp + 0x290]
push str.Failed_to_replace_updater_file_n_nPlease_manually_rename__s_to__s
push eax
call fcn.004012e0
add esp, 0x10
lea eax, [esp + 0x288]
push 0x30
push str.Updater
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 5
push 0
push 0
push 0x459910
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 4
call fcn.00406ce6
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [eax], 0x404520
push ecx
push 0
push eax
push 0x4055a0
push 0
push 0
call fcn.0040f106
add esp, 0x18
mov dword [esp + 0x48], eax
test eax, eax
je 0x4052fa
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4052f3
push ecx
push eax
call fcn.004067f1
add esp, 8
test eax, eax
jne 0x4052f3
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
xorps xmm0, xmm0
push eax
push eax
push eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x5c]
push eax
movlpd qword [esp + 0x58], xmm0
movaps xmmword [esp + 0x60], xmm0
movq qword [esp + 0x70], xmm0
call esi
test eax, eax
je 0x4052c7
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x50]
push eax
call edi
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x5c]
push eax
call esi
test eax, eax
jne 0x4052a4
cmp dword [esp + 0x4c], 0
jne 0x4052ee
mov ecx, dword [esp + 0x68c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00406aa2
mov esp, ebp
pop ebp
ret 0x10
call fcn.00406c09
call fcn.0040f49e
push 1
call fcn.004064dd
push 6
mov dword [esp + 0x50], 0
call fcn.004064dd
int3