Function at 0x4042f0
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Hide graphical window

Disassembly:
sub esp, 0xa68
push ebx
mov ebx, dword [esp + 0xa70]
push ebp
push esi
cmp ebx, 6
push edi
mov esi, ecx
je 0x4048ad
jle 0x404921
cmp ebx, 9
jg 0x404921
lea edi, [esi + 0x10]
xor eax, eax
mov ecx, edi
mov dword [edi + 0x2694], eax
mov dword [edi + 0x2690], eax
call fcn.0040a7a0
mov ecx, edi
call fcn.0040aa40
mov ax, word [0x4d6e34]
mov ecx, 0x81
mov word [esp + 0x258], ax
xor eax, eax
lea edi, [esp + 0x25a]
lea ebp, [esi + 0x62904]
rep stosd dword es:[edi], eax
push str.Update.ini
push ebp
push 0x4634d4
lea ecx, [esp + 0x264]
push 0x103
push ecx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
cmp ebx, 8
jne 0x404416
mov ecx, esi
call fcn.00403900
test eax, eax
jne 0x404637
mov dx, word [0x4d6e34]
mov ecx, 0x81
lea edi, [esp + 0x52]
mov word [esp + 0x50], dx
rep stosd dword es:[edi], eax
mov ecx, dword [0x4d5dd4]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x54]
push eax
push 0xe0
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x40000
push 0xf
call fcn.0040f770
add esp, 4
lea edx, [esp + 0x54]
push eax
mov eax, dword [0x4d5ddc]
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [0x4d5ddc]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x628f8]
push 0
push 0
push 0x12
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x404637
cmp ebx, 7
jne 0x404637
mov ax, word [0x4d6e34]
mov ecx, 0x81
mov word [esp + 0x50], ax
xor eax, eax
lea edi, [esp + 0x52]
lea ebx, [esi + 0x5cf30]
rep stosd dword es:[edi], eax
push 0x5c
push ebx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x404637
sub eax, ebx
lea ecx, [esp + 0x50]
sar eax, 1
inc eax
push eax
push ebx
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
lea edx, [esp + 0x5c]
push edx
push ebx
call fcn.004052d0
add esp, 0x14
test eax, eax
je 0x404637
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x628ec]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea ecx, [edx + eax*4 + 0x620]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404605
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x628ec]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea ecx, [edx + eax*4 + 0x620]
push ecx
call fcn.0040f890
add esp, 4
test eax, eax
je 0x404605
lea edx, [esp + 0x258]
push 0
push edx
mov edi, 2
call fcn.0040ef80
add esp, 8
test eax, eax
je 0x404503
mov edi, 1
lea eax, [esp + 0x258]
push edi
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], 0
call fcn.004264b0
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x404630
mov ecx, esi
call fcn.00403900
test eax, eax
je 0x404551
mov edx, dword [esp + 0x10]
push 1
push str.IsSilenceUpdate
push str.globalsetting
push edx
call fcn.00426e20
add esp, 0x10
mov ecx, dword [esi + 0xc]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 4
add eax, ecx
mov ecx, dword [esi + 0x628ec]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
mov dword [ecx + eax*4 + 4], 1
mov ecx, dword [esi + 0xc]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x628ec]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x10]
lea ecx, [eax + 0x620]
add eax, 0x418
push ecx
push eax
push str.rename
push edx
call fcn.00426b40
mov ecx, dword [esi + 0xc]
add esp, 0x10
lea eax, [ecx*8]
sub eax, ecx
shl eax, 4
add eax, ecx
mov ecx, dword [esi + 0x628ec]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x4045f4
mov edx, dword [esp + 0x10]
add eax, 0x418
push 1
push eax
push str.register
push edx
call fcn.00426e20
add esp, 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00426640
add esp, 8
jmp 0x404630
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x628ec]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4 + 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0xa80]
push ecx
mov ecx, esi
call fcn.00404160
test eax, eax
jne 0x404921
lea edx, [esp + 0x258]
push eax
push edx
call fcn.0040ef80
add esp, 8
test eax, eax
je 0x40488d
mov ecx, esi
call fcn.00403900
test eax, eax
jne 0x404677
call fcn.00410e10
mov dx, word [0x4d6e34]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x66a]
mov word [esp + 0x668], dx
mov word [esp + 0x460], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x462]
mov word [esp + 0x50], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x52]
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [0x4d5dd4]
stosw word es:[edi], ax
lea eax, [esp + 0x464]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x668]
push 0x104
lea eax, [esp + 0x464]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push str._360seup.exe
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x4634d4
lea ecx, [esp + 0x5c]
push 0x103
push ecx
call ebp
lea edx, [esp + 0x64]
push 0
push edx
call fcn.0040ef80
add esp, 0x1c
test eax, eax
jne 0x40474d
lea eax, [esp + 0x50]
push eax
call fcn.0040f210
add esp, 4
lea ecx, [esp + 0x50]
lea edx, [esp + 0x668]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [0x4dc328]
mov ebx, str.open
test eax, eax
je 0x404760
mov ebx, str.runas
mov ax, word [0x4d6e34]
mov ecx, 0x81
mov word [esp + 0x870], ax
xor eax, eax
lea edi, [esp + 0x872]
lea edx, [esp + 0x870]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x258]
push ecx
push str._update__s
push 0x103
push edx
stosw word es:[edi], ax
call ebp
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x10
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x870]
push edx
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x1c], 0x440
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40488d
mov eax, dword [esp + 0x4c]
xor ebx, ebx
push 0xffffffffffffffff
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x404882
cmp dword [esp + 0x10], 1
jne 0x404882
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor edi, edi
mov eax, dword [esi + 0x628ec]
test eax, eax
je 0x404882
mov ecx, dword [esi + 0x628f0]
sub ecx, eax
mov eax, 0x4d542005
imul ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
jae 0x404882
mov ecx, dword [esi + 0x628ec]
lea eax, [ecx + ebx]
mov ecx, dword [ecx + ebx + 4]
test ecx, ecx
je 0x404879
lea edx, [esi + 0x62b0c]
lea ecx, [eax + 0x210]
push edx
add eax, 8
push ecx
push eax
push 0x4637b8
call ebp
inc edi
add ebx, 0x1a7c
jmp 0x404828
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x628f8]
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa68
ret 8
mov eax, dword [esi + 0x628ec]
mov ebx, dword [esi + 0x5cf20]
mov ebp, dword [esi + 0x5cf24]
test eax, eax
je 0x404921
mov ecx, dword [esi + 0x628f0]
sub ecx, eax
mov eax, 0x4d542005
imul ecx
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, edx
je 0x404921
mov edx, ebx
or edx, ebp
je 0x404921
mov eax, 0x64
xor edx, edx
div ecx
mov edi, eax
mov eax, dword [esi + 0x5cf2c]
push eax
mov eax, dword [esi + 0x5cf28]
push eax
push 0
push edi
call fcn.004474e0
push ebp
push ebx
push edx
push eax
call fcn.00447470
mov ecx, dword [esi + 0xc]
imul ecx, edi
add eax, ecx
push eax
call fcn.00410dd0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa68
ret 8