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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427343
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 0x80000001
mov dword [ebp - 0x64], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b194
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.0040b960
mov esi, dword [ebp - 0x60]
test eax, eax
jne 0x40b118
cmp dword [ebp - 0x18], 0
je 0x40b101
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 0x40b101
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 0x40ae75
mov eax, dword [ecx]
jmp 0x40ae77
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.00404f14
lea ecx, [ebp - 0xdc]
call fcn.0040c140
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.0040c290
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
mov esi, eax
call fcn.0040c1a0
cmp esi, 2
mov esi, dword [ebp - 0x60]
jne 0x40b07e
mov ecx, edi
call fcn.0040aa70
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.0040aa70
mov ebx, eax
lea ecx, [ebp - 0x60]
cmp edi, ebx
jge 0x40b081
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
push str.FromVersion
call fcn.0040b8f0
lea ecx, [ebp - 0x60]
test eax, eax
jne 0x40b081
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
push str.ToVersion
call fcn.0040b8f0
test eax, eax
jne 0x40b07e
cmp edi, dword [ebp - 0x64]
jne 0x40b07e
mov edi, dword [ebp - 0x68]
cmp ebx, edi
jne 0x40b07e
push 0x38
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004123f0
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 0x4345ec
push str.NewUpKugoo
lea ecx, [ebp - 0x60]
mov ebx, eax
call fcn.0040bb30
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x40afcd
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.0040ab20
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 0x40b00d
cmp dword [ebp - 0x6c], 0
jne 0x40b00d
mov bl, 1
jmp 0x40b00f
xor bl, bl
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40b068
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x40b027
call fcn.0041873b
add eax, eax
cmp eax, 0x1000
jb 0x40b05f
test byte [ebp - 0x40], 0x1f
je 0x40b03b
call fcn.0041873b
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40b047
call fcn.0041873b
sub ecx, eax
cmp ecx, 4
jae 0x40b053
call fcn.0041873b
cmp ecx, 0x23
jbe 0x40b05d
call fcn.0041873b
mov ecx, eax
push ecx
call fcn.0040f771
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jmp 0x40b092
lea ecx, [ebp - 0x60]
push 0x4345ec
push str.NewUpKugoo
call fcn.0040bb30
xor bl, bl
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40b0eb
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
jbe 0x40b0aa
call fcn.0041873b
add eax, eax
cmp eax, 0x1000
jb 0x40b0e2
test byte [ebp - 0x58], 0x1f
je 0x40b0be
call fcn.0041873b
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40b0ca
call fcn.0041873b
sub ecx, eax
cmp ecx, 4
jae 0x40b0d6
call fcn.0041873b
cmp ecx, 0x23
jbe 0x40b0e0
call fcn.0041873b
mov ecx, eax
push ecx
call fcn.0040f771
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jmp 0x40b11a
push 2
push 0x4345ec
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 0x40b173
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x40b132
call fcn.0041873b
add eax, eax
cmp eax, 0x1000
jb 0x40b16a
test byte [ebp - 0x28], 0x1f
je 0x40b146
call fcn.0041873b
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40b152
call fcn.0041873b
sub ecx, eax
cmp ecx, 4
jae 0x40b15e
call fcn.0041873b
cmp ecx, 0x23
jbe 0x40b168
call fcn.0041873b
mov ecx, eax
push ecx
call fcn.0040f771
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 0x40b196
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b196
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.0040f284
mov esp, ebp
pop ebp
ret