Function at 0x40406c
Capabilities:
Set registry value

Disassembly:
mov eax, 0x406844
call fcn.00406070
sub esp, 0x238
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
lea eax, [edi + 0x26c]
push eax
lea eax, [ebp - 0x244]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x244]
push str.WinWB.ime
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x244]
push 0x40b094
push eax
call sub.IMM32.dll_ImmInstallIMEA
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareWinWB
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4040fc
lea eax, [ebp - 0x18]
push 0x408a00
push eax
mov dword [ebp - 0x18], 1
call sub.MSVCRT.dll__CxxThrowException
push dword [edi + 0x5d8]
lea esi, [edi + 0x5d8]
lea eax, [ebp - 0x140]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [esi]
pop ecx
pop ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [eax - 8]
lea eax, [ebp - 0x140]
push eax
push 1
push ebx
push str.User
push dword [ebp + 8]
call esi
test eax, eax
je 0x40414e
lea eax, [ebp - 0x30]
push 0x408a00
push eax
mov dword [ebp - 0x30], 1
call sub.MSVCRT.dll__CxxThrowException
push dword [edi + 0x60]
lea eax, [ebp - 0x140]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [edi + 0x5d4]
pop ecx
pop ecx
push dword [eax - 8]
lea eax, [ebp - 0x140]
push eax
push 1
push ebx
push str.Company
push dword [ebp + 8]
call esi
test eax, eax
je 0x404195
lea eax, [ebp - 0x20]
push 0x408a00
push eax
mov dword [ebp - 0x20], 1
call sub.MSVCRT.dll__CxxThrowException
push dword [edi + 0x5d4]
lea eax, [ebp - 0x140]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [edi + 0x5d4]
pop ecx
pop ecx
push dword [eax - 8]
lea eax, [ebp - 0x140]
push eax
push 1
push ebx
push str.Serialize
push dword [ebp + 8]
call esi
test eax, eax
je 0x4041df
lea eax, [ebp - 0x38]
push 0x408a00
push eax
mov dword [ebp - 0x38], 1
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallWinWB
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404222
lea eax, [ebp - 0x34]
push 0x408a00
push eax
mov dword [ebp - 0x34], 1
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x140]
push 0x40b094
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x140]
pop ecx
push 0x104
push eax
push 1
push ebx
push str.DisplayName
push dword [ebp + 8]
call esi
test eax, eax
je 0x404267
lea eax, [ebp - 0x14]
push 0x408a00
push eax
mov dword [ebp - 0x14], 1
call sub.MSVCRT.dll__CxxThrowException
lea eax, [edi + 0x168]
push eax
lea eax, [ebp - 0x140]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x140]
push str.WBUnins.exe
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x140]
push 0x104
push eax
push 1
push ebx
push str.UninstallString
push dword [ebp + 8]
call esi
test eax, eax
je 0x4042c0
lea eax, [ebp - 0x1c]
push 0x408a00
push eax
mov dword [ebp - 0x1c], 1
call sub.MSVCRT.dll__CxxThrowException
lea eax, [edi + 0x370]
push eax
lea eax, [ebp - 0x140]
push eax
call sub.MSVCRT.dll_strcpy
movsx eax, byte [edi + 0x370]
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x140]
push eax
push 1
push ebx
push str.Setup_Directory
push dword [ebp + 8]
call esi
test eax, eax
je 0x40430a
lea eax, [ebp - 0x24]
push 0x408a00
push eax
mov dword [ebp - 0x24], 1
call sub.MSVCRT.dll__CxxThrowException
add edi, 0x474
lea eax, [ebp - 0x140]
push edi
push eax
call sub.MSVCRT.dll_strcpy
movsx eax, byte [edi]
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x140]
push eax
push 1
pop edi
push edi
push ebx
push str.Setup_Folder
push dword [ebp + 8]
call esi
test eax, eax
je 0x404372
lea eax, [ebp - 0x2c]
push 0x408a00
push eax
mov dword [ebp - 0x2c], edi
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x3c]
dec eax
jne 0x404368
push 0x10
push 0x40b56c
push 0x40b55c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x40436e
ret
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret