Function at 0x40b4c0
Capabilities:
Check if file exists
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427cb3
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push str.SoftwareKuGouUpgrade
push SysReAllocString
mov dword [ebp - 0x64], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b8e4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push str.NewUpKugoo
lea ecx, [ebp - 0x60]
call fcn.0040c0b0
mov esi, dword [ebp - 0x60]
test eax, eax
jne 0x40b868
cmp dword [ebp - 0x18], 0
je 0x40b851
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b851
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 8
jb 0x40b5c5
mov eax, dword [ecx]
jmp 0x40b5c7
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.00404f44
lea ecx, [ebp - 0xdc]
call fcn.0040c890
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.0040c9e0
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
mov esi, eax
call fcn.0040c8f0
cmp esi, 2
mov esi, dword [ebp - 0x60]
jne 0x40b7ce
mov ecx, edi
call fcn.0040b1c0
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.0040b1c0
mov ebx, eax
lea ecx, [ebp - 0x60]
cmp edi, ebx
jge 0x40b7d1
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
push str.FromVersion
call fcn.0040c040
lea ecx, [ebp - 0x60]
test eax, eax
jne 0x40b7d1
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
push str.ToVersion
call fcn.0040c040
test eax, eax
jne 0x40b7ce
cmp edi, dword [ebp - 0x64]
jne 0x40b7ce
mov edi, dword [ebp - 0x68]
cmp ebx, edi
jne 0x40b7ce
push 0x38
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00412b70
add esp, 0xc
mov dword [ebp - 0xa8], 0x3c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x8c], 1
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa4], 0x800140
mov dword [ebp - 0x9c], str.open
mov dword [ebp - 0x94], str._NoFinishPage
mov dword [ebp - 0x6c], 0xfffffff6
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0x434940
push str.NewUpKugoo
lea ecx, [ebp - 0x60]
mov ebx, eax
call fcn.0040c280
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x40b71d
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x40]
push edi
call fcn.0040b270
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x40]
add esp, 4
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x68]
cmovae ecx, dword [ebp - 0x40]
push 4
push eax
push 4
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x40b75d
cmp dword [ebp - 0x6c], 0
jne 0x40b75d
mov bl, 1
jmp 0x40b75f
xor bl, bl
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40b7b8
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x40b777
call fcn.00418f5c
add eax, eax
cmp eax, 0x1000
jb 0x40b7af
test byte [ebp - 0x40], 0x1f
je 0x40b78b
call fcn.00418f5c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40b797
call fcn.00418f5c
sub ecx, eax
cmp ecx, 4
jae 0x40b7a3
call fcn.00418f5c
cmp ecx, 0x23
jbe 0x40b7ad
call fcn.00418f5c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jmp 0x40b7e2
lea ecx, [ebp - 0x60]
push 0x434940
push str.NewUpKugoo
call fcn.0040c280
xor bl, bl
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40b83b
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
jbe 0x40b7fa
call fcn.00418f5c
add eax, eax
cmp eax, 0x1000
jb 0x40b832
test byte [ebp - 0x58], 0x1f
je 0x40b80e
call fcn.00418f5c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40b81a
call fcn.00418f5c
sub ecx, eax
cmp ecx, 4
jae 0x40b826
call fcn.00418f5c
cmp ecx, 0x23
jbe 0x40b830
call fcn.00418f5c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jmp 0x40b86a
push 2
push 0x434940
push 1
push 0
push str.NewUpKugoo
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor bl, bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40b8c3
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x40b882
call fcn.00418f5c
add eax, eax
cmp eax, 0x1000
jb 0x40b8ba
test byte [ebp - 0x28], 0x1f
je 0x40b896
call fcn.00418f5c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40b8a2
call fcn.00418f5c
sub ecx, eax
cmp ecx, 4
jae 0x40b8ae
call fcn.00418f5c
cmp ecx, 0x23
jbe 0x40b8b8
call fcn.00418f5c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test esi, esi
je 0x40b8e6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b8e6
xor bl, bl
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f9d4
mov esp, ebp
pop ebp
ret