Function at 0x403040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42c68c]
push edi
mov edi, ecx
cmp dword [eax + 0x38], 0
jne 0x403426
cmp dword [eax + 0x40], 0
jne 0x403426
mov eax, dword [edi + 8]
test eax, eax
je 0x403082
push 0x423c5c
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [edi + 4]
push esi
test edi, edi
je 0x4030b2
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x408
push edi
call esi
inc eax
mov ecx, 0x64
cmp eax, ecx
push 0
cmovg eax, ecx
push eax
push 0x402
push edi
call esi
push ebx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00413c30
add esp, 0xc
call fcn.004055a0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea eax, [ebp - 0x414]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x414]
push str.unins000.exe__uninstall
push eax
call edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.00413c30
add esp, 0xc
call fcn.004055a0
push eax
lea eax, [ebp - 0x61c]
push eax
call ebx
push str.unins000.exe
lea eax, [ebp - 0x61c]
push eax
call edi
mov eax, dword [0x42c68c]
mov ecx, str.4177SBox
mov esi, str.Smalbox
push 0x206
cmp dword [eax + 0x38], 0
cmove esi, ecx
xor eax, eax
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00413c30
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push eax
call ebx
push esi
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4031f0
lea eax, [ebp - 0x61c]
push eax
call esi
add eax, eax
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0x628]
call ebx
push dword [ebp - 0x628]
call edi
mov edi, dword [0x42c68c]
push dword [edi + 0x14]
call esi
test eax, eax
jne 0x40321b
cmp dword [edi + 0x38], 0
mov eax, dword [sym.imp.KERNEL32.dll_lstrcpyW]
je 0x403211
push str.7k7k
jmp 0x403216
push str.4177
push dword [edi + 0x14]
call eax
mov edi, dword [edi + 0x14]
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403277
push edi
call esi
add eax, eax
push eax
push edi
push 1
push 0
push str.DisplayName
push dword [ebp - 0x628]
call ebx
push dword [ebp - 0x628]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x40327d
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4032d6
push str.1.1.15.615
call esi
add eax, eax
push eax
push str.1.1.15.615
push 1
push 0
push str.DisplayVersion
push dword [ebp - 0x628]
call ebx
push dword [ebp - 0x628]
call edi
call fcn.004055a0
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x620]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40333c
push dword [ebp - 0x628]
call esi
add eax, eax
push eax
push dword [ebp - 0x628]
push 1
push 0
push str.InstallLocation
push dword [ebp - 0x620]
call ebx
push dword [ebp - 0x620]
call edi
mov edi, dword [0x42c68c]
push dword [edi + 0x14]
call esi
test eax, eax
jne 0x403365
cmp dword [edi + 0x38], eax
je 0x403357
push str.7k7k
jmp 0x40335c
push str.4177
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [edi + 0x14]
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x620]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4033c1
push edi
call esi
add eax, eax
push eax
push edi
push 1
push 0
push str.Publisher
push dword [ebp - 0x620]
call ebx
push dword [ebp - 0x620]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x4033c7
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x620]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403424
lea eax, [ebp - 0x414]
push eax
call esi
add eax, eax
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 0x620]
call ebx
push dword [ebp - 0x620]
call edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040e6b9
mov esp, ebp
pop ebp
ret