Function at 0x40d440
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5401a0
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x594aa4]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov eax, dword [esp + 0xfc]
xor ecx, ecx
push 0x33
mov word [esp + 0xd0], cx
mov ebp, 7
xor ebx, ebx
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall
lea ecx, [esp + 0xd0]
mov dword [esp + 0x60], eax
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xe4], ebx
call fcn.00408820
push 1
lea edx, [esp + 0xcc]
push edx
lea edi, [esp + 0xa8]
mov ecx, 0x5ab7d0
mov dword [esp + 0xfc], ebx
call fcn.004157c0
mov byte [esp + 0xf4], 1
cmp byte [esp + 0xc4], bl
jne 0x40d54c
mov esi, 8
mov dword [esp + 0xa0], vtable.Win32Reg::RegistryKey.0
cmp dword [esp + 0xc0], esi
jb 0x40d514
mov eax, dword [esp + 0xac]
push eax
call fcn.0044687d
add esp, 4
xor ecx, ecx
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], cx
cmp dword [esp + 0xe0], esi
jb 0x40d545
mov edx, dword [esp + 0xcc]
push edx
call fcn.0044687d
add esp, 4
xor eax, eax
jmp 0x40dbfc
push 1
push 0x5ab5a0
lea edi, [esp + 0x80]
lea ecx, [esp + 0xa8]
call fcn.004157c0
mov byte [esp + 0xf4], 2
cmp byte [esp + 0x9c], bl
jne 0x40d5e1
push 0x5ab5a0
lea edi, [esp + 0x34]
lea ecx, [esp + 0xa4]
call fcn.004159f0
mov esi, eax
push 0xffffffffffffffff
mov byte [esp + 0xf8], 3
mov eax, dword [esi + 4]
push ebx
lea ecx, [esi + 8]
push ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x88], eax
call fcn.00406e30
mov dl, byte [esi + 0x24]
mov byte [esp + 0xf4], 2
cmp dword [esp + 0x50], 8
mov byte [esp + 0x9c], dl
mov dword [esp + 0x30], vtable.Win32Reg::RegistryKey.0
jb 0x40d5e1
mov eax, dword [esp + 0x3c]
push eax
call fcn.0044687d
add esp, 4
cmp dword [0x5ab580], 8
mov edx, dword [0x5ab56c]
jae 0x40d5f5
mov edx, 0x5ab56c
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d610
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00408820
mov byte [esp + 0xf4], 4
push 0xb
xor edx, edx
push str.DisplayName
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
call fcn.00408820
mov ecx, dword [esp + 0x34]
mov edi, 8
cmp dword [esp + 0x48], edi
jae 0x40d664
lea ecx, [esp + 0x34]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], edi
jae 0x40d672
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x44]
lea edx, [edx + edx + 2]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [esp + 0x90]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x40d698
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x2c], edi
jb 0x40d6ab
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044687d
add esp, 4
xor edx, edx
mov byte [esp + 0xf4], 2
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], dx
cmp dword [esp + 0x48], edi
jb 0x40d6d5
mov eax, dword [esp + 0x34]
push eax
call fcn.0044687d
add esp, 4
mov edx, dword [0x5ab5dc]
cmp dword [0x5ab5f0], edi
jae 0x40d6e8
mov edx, 0x5ab5dc
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d700
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00408820
mov byte [esp + 0xf4], 5
push 0xe
xor edx, edx
push str.DisplayVersion
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
call fcn.00408820
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x48], edi
jae 0x40d74f
lea ecx, [esp + 0x34]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], edi
jae 0x40d75d
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x44]
lea edx, [edx + edx + 2]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [esp + 0x90]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x40d783
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x2c], edi
jb 0x40d796
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044687d
add esp, 4
xor edx, edx
mov byte [esp + 0xf4], 2
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], dx
cmp dword [esp + 0x48], edi
jb 0x40d7c0
mov eax, dword [esp + 0x34]
push eax
call fcn.0044687d
add esp, 4
mov edx, dword [0x5ab614]
cmp dword [0x5ab628], edi
jae 0x40d7d3
mov edx, 0x5ab614
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d7e7
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00408820
mov byte [esp + 0xf4], 6
push 0xc
xor edx, edx
push str.URLInfoAbout
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
call fcn.00408820
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x48], edi
jae 0x40d836
lea ecx, [esp + 0x34]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], edi
jae 0x40d844
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x44]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [edx + edx + 2]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [esp + 0x90]
push eax
call esi
cmp eax, ebx
je 0x40d86c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x2c], edi
jb 0x40d87f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044687d
add esp, 4
xor edx, edx
mov byte [esp + 0xf4], 2
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], dx
cmp dword [esp + 0x48], edi
jb 0x40d8a9
mov eax, dword [esp + 0x34]
push eax
call fcn.0044687d
add esp, 4
mov ecx, dword [esp + 0x58]
push str.Uninst.exe
add ecx, 0x2c
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.0040ad40
add esp, 0xc
mov byte [esp + 0xf4], 7
push 0xa
xor eax, eax
push str._nNwmpe
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
call fcn.00408820
mov byte [esp + 0xf4], 8
xor ecx, ecx
push 9
mov word [esp + 0x1c], cx
push str.Publisher
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
call fcn.00408820
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x48], edi
jae 0x40d91f
lea ecx, [esp + 0x34]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], edi
jae 0x40d92d
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x44]
lea edx, [edx + edx + 2]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [esp + 0x90]
push eax
call esi
cmp eax, ebx
je 0x40d94f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x2c], edi
jb 0x40d962
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044687d
add esp, 4
xor edx, edx
mov byte [esp + 0xf4], 7
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], dx
cmp dword [esp + 0x48], edi
jb 0x40d98c
mov eax, dword [esp + 0x34]
push eax
call fcn.0044687d
add esp, 4
mov edx, dword [esp + 0x60]
cmp dword [esp + 0x74], edi
jae 0x40d99a
lea edx, [esp + 0x60]
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d9b0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00408820
mov byte [esp + 0xf4], 9
push 0xb
xor edx, edx
push str.DisplayIcon
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
call fcn.00408820
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x48], edi
jae 0x40d9ff
lea ecx, [esp + 0x34]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], edi
jae 0x40da0d
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x44]
lea edx, [edx + edx + 2]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [esp + 0x90]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x40da33
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x2c], edi
jb 0x40da46
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044687d
add esp, 4
xor edx, edx
mov byte [esp + 0xf4], 7
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], dx
cmp dword [esp + 0x48], edi
jb 0x40da70
mov eax, dword [esp + 0x34]
push eax
call fcn.0044687d
add esp, 4
mov edx, dword [esp + 0x60]
cmp dword [esp + 0x74], edi
jae 0x40da7e
lea edx, [esp + 0x60]
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40da92
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00408820
mov byte [esp + 0xf4], 0xa
push 0xf
xor edx, edx
push str.UninstallString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
call fcn.00408820
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x48], edi
jae 0x40dae1
lea ecx, [esp + 0x34]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], edi
jae 0x40daef
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x44]
lea edx, [edx + edx + 2]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [esp + 0x90]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40db15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x2c], edi
jb 0x40db28
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044687d
add esp, 4
xor edx, edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], dx
cmp dword [esp + 0x48], edi
jb 0x40db4a
mov eax, dword [esp + 0x34]
push eax
call fcn.0044687d
add esp, 4
cmp dword [esp + 0x74], edi
jb 0x40db5d
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0044687d
add esp, 4
xor edx, edx
mov esi, vtable.Win32Reg::RegistryKey.0
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], dx
mov dword [esp + 0x78], esi
cmp dword [esp + 0x98], edi
jb 0x40db8e
mov eax, dword [esp + 0x84]
push eax
call fcn.0044687d
add esp, 4
xor ecx, ecx
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], cx
mov dword [esp + 0xa0], esi
cmp dword [esp + 0xc0], edi
jb 0x40dbc6
mov edx, dword [esp + 0xac]
push edx
call fcn.0044687d
add esp, 4
xor eax, eax
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], ax
cmp dword [esp + 0xe0], edi
jb 0x40dbf7
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.0044687d
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0047ff9f
add esp, 0xe4
ret 4