Function at 0x40dba0
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 0x692fa6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x290
mov eax, dword [0x75d580]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x278], 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 - 0x28c], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 4], 0
mov eax, bind
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 0x34
jb 0x40e356
cmp dword [ecx + 0x14], 7
mov eax, ecx
jbe 0x40dc5b
mov eax, dword [ecx]
push edx
push eax
push 0x34
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push ecx
push dword [ebp - 0x26c]
lea ecx, [ebp - 0x250]
call fcn.00402140
mov eax, dword [ebp - 0x28c]
mov ecx, bind
mov byte [ebp - 4], 1
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 1
jb 0x40e35b
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x40dc9d
mov ecx, dword [eax]
push edx
push ecx
push 1
push 0x734fc8
push eax
push dword [ebp - 0x26c]
lea ecx, [ebp - 0x268]
call fcn.00402140
push 1
push 0x734fc8
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call fcn.004021f0
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 0x40dd56
mov edx, dword [ebp - 0x268]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40dd4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e360
push ecx
push edx
call fcn.0048a4f6
add esp, 8
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x290], 0
je 0x40ddb8
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x40dd8e
mov eax, dword [esi]
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x280]
push ecx
push str._d._d._d._d
push eax
call fcn.0040a5f0
add esp, 0x18
cmp dword [ebp - 0x23c], 7
lea eax, [ebp - 0x250]
cmova eax, dword [ebp - 0x250]
sub esp, 0x14
push eax
push ecx
lea ecx, [ebp - 0x29c]
call fcn.0040a640
mov esi, dword [ebp - 0x29c]
test eax, eax
jne 0x40e258
cmp dword [edi + 0x14], 7
jbe 0x40ddf2
mov edi, dword [edi]
test edi, edi
je 0x40e258
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40de00
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.DisplayName
push esi
call edi
test eax, eax
jne 0x40e258
mov edx, dword [ebp - 0x278]
cmp dword [edx + 0x14], 7
jbe 0x40de40
mov edx, dword [edx]
test edx, edx
je 0x40e258
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x278], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40de53
sub ecx, dword [ebp - 0x278]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.DisplayIcon
push esi
call edi
test eax, eax
jne 0x40e258
mov edx, dword [ebp - 0x27c]
cmp dword [edx + 0x14], 7
jbe 0x40de91
mov edx, dword [edx]
test edx, edx
je 0x40e258
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x27c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dea4
sub ecx, dword [ebp - 0x27c]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.DisplayVersion
push esi
call edi
test eax, eax
jne 0x40e258
mov edx, dword [ebp - 0x26c]
cmp dword [edx + 0x14], 7
jbe 0x40dee2
mov edx, dword [edx]
test edx, edx
je 0x40e258
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x26c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40def5
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 0x40e258
mov eax, dword [ebp - 0x270]
mov edx, eax
cmp dword [eax + 0x14], 7
jbe 0x40df35
mov edx, dword [eax]
test edx, edx
je 0x40e258
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x26c], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40df50
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 0x40e258
mov edx, dword [ebp - 0x270]
cmp dword [edx + 0x14], 7
jbe 0x40df8e
mov edx, dword [edx]
test edx, edx
je 0x40e258
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x26c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dfa1
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 0x40e258
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0053fb70
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 0x40e046
mov eax, dword [ebp - 0x26c]
cmp eax, 1
je 0x40e027
cmp eax, 2
jne 0x40e046
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x40e2fc
test al, 1
jne 0x40e046
shr eax, 1
cmp word [ebp + eax*2 - 0x222], 0
je 0x40e0a0
cmp dword [ebp - 0x224], 7
lea edx, [ebp - 0x238]
jbe 0x40e063
mov edx, dword [ebp - 0x238]
test edx, edx
je 0x40e258
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x26c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e070
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 0x40e258
push 4
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x2ec00
push eax
push 4
push 0
push str.EstimatedSize
push esi
call edi
test eax, eax
jne 0x40e258
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 0x40e258
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 0x40e258
mov eax, dword [ebp - 0x280]
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 0x40e258
mov eax, dword [ebp - 0x284]
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 0x40e258
mov eax, dword [ebp - 0x274]
mov edx, eax
cmp dword [eax + 0x14], 7
jbe 0x40e177
mov edx, dword [eax]
test edx, edx
je 0x40e258
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x26c], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e190
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 0x40e258
mov eax, dword [ebp - 0x274]
mov edx, eax
cmp dword [eax + 0x14], 7
jbe 0x40e1d0
mov edx, dword [eax]
test edx, edx
je 0x40e258
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x26c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e1e3
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 0x40e258
mov edx, dword [ebp - 0x274]
cmp dword [edx + 0x14], 7
jbe 0x40e21d
mov edx, dword [edx]
test edx, edx
je 0x40e258
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 0x40e230
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
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40e267
push esi
call edi
xor esi, esi
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x40e2a7
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e29d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e365
push ecx
push edx
call fcn.0048a4f6
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 0x40e314
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e30a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e365
jmp 0x40e30a
xor eax, eax
mov word [ebp - 0x220], ax
jmp 0x40e0a0
push ecx
push edx
call fcn.0048a4f6
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 0x40e338
push esi
call edi
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.0048a267
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401460
call fcn.00401460
call fcn.00543627
call fcn.00543627
int3