Function at 0x405b10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6506
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x290
mov eax, dword [0x6540c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x27c], edx
mov eax, dword [ebx + 8]
xor esi, esi
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x280], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x270], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x274], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x29c], esi
mov dword [ebp - 0x298], esi
mov dword [ebp - 4], esi
mov eax, bind
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 0x34
jb 0x4062d4
cmp dword [ecx + 0x14], 7
jbe 0x405bb9
mov ecx, dword [ecx]
push edx
push ecx
push 0x34
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push ecx
push dword [ebp - 0x26c]
lea ecx, [ebp - 0x250]
call fcn.00402910
mov byte [ebp - 4], 1
mov ecx, bind
mov eax, dword [ebp - 0x274]
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 1
jb 0x4062d9
cmp dword [eax + 0x14], 7
jbe 0x405bf9
mov eax, dword [eax]
push edx
push eax
push 1
push 0x646704
push ecx
push dword [ebp - 0x26c]
lea ecx, [ebp - 0x268]
call fcn.00402910
push 1
push 0x646704
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call fcn.00409e30
mov dword [ebp - 0x228], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x238], xmm0
mov dword [ebp - 0x224], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x228], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x254]
cmp ecx, 7
jbe 0x405cb2
mov edx, dword [ebp - 0x268]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405ca8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062de
push ecx
push edx
call fcn.004392c8
add esp, 8
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x290], 0
je 0x405d14
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x405cea
mov eax, dword [edi]
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x28c]
push ecx
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x284]
push ecx
push 0x646708
push eax
call fcn.00404d80
add esp, 0x18
cmp dword [ebp - 0x23c], 7
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x274], 0
push ecx
push 0
push 0x2001f
push 0
push 0
lea eax, [ebp - 0x250]
cmova eax, dword [ebp - 0x250]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4061e5
mov edx, dword [ebp - 0x27c]
mov esi, dword [ebp - 0x274]
cmp dword [edx + 0x14], 7
jbe 0x405d75
mov edx, dword [edx]
test edx, edx
je 0x4061d8
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x27c], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405d90
sub ecx, dword [ebp - 0x27c]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.DisplayName
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4061d8
mov edx, dword [ebp - 0x280]
cmp dword [edx + 0x14], 7
jbe 0x405dd2
mov edx, dword [edx]
test edx, edx
je 0x4061d8
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x280], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405de5
sub ecx, dword [ebp - 0x280]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.DisplayIcon
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4061d8
cmp dword [edi + 0x14], 7
jbe 0x405e21
mov edi, dword [edi]
test edi, edi
je 0x4061d8
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e30
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push str.DisplayVersion
push esi
call edi
test eax, eax
jne 0x4061d8
mov edx, dword [ebp - 0x26c]
cmp dword [edx + 0x14], 7
jbe 0x405e70
mov edx, dword [edx]
test edx, edx
je 0x4061d8
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x26c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e83
sub ecx, dword [ebp - 0x26c]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.Publisher
push esi
call edi
test eax, eax
jne 0x4061d8
mov eax, dword [ebp - 0x270]
mov edx, eax
cmp dword [eax + 0x14], 7
jbe 0x405ec3
mov edx, dword [eax]
test edx, edx
je 0x4061d8
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x26c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ed6
sub ecx, dword [ebp - 0x26c]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.InstallLocation
push esi
call edi
test eax, eax
jne 0x4061d8
mov edx, dword [ebp - 0x270]
cmp dword [edx + 0x14], 7
jbe 0x405f14
mov edx, dword [edx]
test edx, edx
je 0x4061d8
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x26c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405f27
sub ecx, dword [ebp - 0x26c]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.UninstallPath
push esi
call edi
test eax, eax
jne 0x4061d8
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0048fce0
add esp, 0xc
mov dword [ebp - 0x270], 0x208
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x26c]
push eax
push 0
push str.UninstallString
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405fcc
mov eax, dword [ebp - 0x26c]
cmp eax, 1
je 0x405fad
cmp eax, 2
jne 0x405fcc
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x406276
test al, 1
jne 0x405fcc
shr eax, 1
cmp word [ebp + eax*2 - 0x222], 0
je 0x406024
cmp dword [ebp - 0x224], 7
lea edx, [ebp - 0x238]
jbe 0x405fe9
mov edx, dword [ebp - 0x238]
test edx, edx
je 0x4061d8
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x26c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ff4
sub ecx, dword [ebp - 0x26c]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.UninstallString
push esi
call edi
test eax, eax
jne 0x4061d8
push 4
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x2c7f6
push eax
push 4
push 0
push str.EstimatedSize
push esi
call edi
test eax, eax
jne 0x4061d8
push 4
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 1
push eax
push 4
push 0
push str.NoModify
push esi
call edi
test eax, eax
jne 0x4061d8
push 4
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 1
push eax
push 4
push 0
push str.NoRepair
push esi
call edi
test eax, eax
jne 0x4061d8
mov eax, dword [ebp - 0x284]
push 4
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x26c]
push eax
push 4
push 0
push str.VersionMajor
push esi
call edi
test eax, eax
jne 0x4061d8
mov eax, dword [ebp - 0x288]
push 4
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x26c]
push eax
push 4
push 0
push str.VersionMinor
push esi
call edi
test eax, eax
jne 0x4061d8
mov eax, dword [ebp - 0x278]
mov edx, eax
cmp dword [eax + 0x14], 7
jbe 0x4060fb
mov edx, dword [eax]
test edx, edx
je 0x4061d8
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x26c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406110
sub ecx, dword [ebp - 0x26c]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.HelpLink
push esi
call edi
test eax, eax
jne 0x4061d8
mov eax, dword [ebp - 0x278]
mov edx, eax
cmp dword [eax + 0x14], 7
jbe 0x406150
mov edx, dword [eax]
test edx, edx
je 0x4061d8
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x26c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406163
sub ecx, dword [ebp - 0x26c]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.URLInfoAbout
push esi
call edi
test eax, eax
jne 0x4061d8
mov edx, dword [ebp - 0x278]
cmp dword [edx + 0x14], 7
jbe 0x40619d
mov edx, dword [edx]
test edx, edx
je 0x4061d8
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x26c], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4061b0
sub ecx, dword [ebp - 0x26c]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.URLUpdateInfo
push esi
call edi
test esi, esi
je 0x4061e5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x406225
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40621b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062e3
push ecx
push edx
call fcn.004392c8
add esp, 8
mov ecx, dword [ebp - 0x23c]
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
cmp ecx, 7
jbe 0x40628e
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406284
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062e3
jmp 0x406284
xor eax, eax
mov word [ebp - 0x220], ax
jmp 0x406024
push ecx
push edx
call fcn.004392c8
add esp, 8
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
test esi, esi
je 0x4062b6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043928a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004012e0
call fcn.004012e0
call fcn.0049452a
call fcn.0049452a
int3