Function at 0x406b10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x439e9b
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x449570]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push esi
push edi
mov eax, dword [0x449570]
xor eax, esp
push eax
lea eax, [esp + 0x840]
mov dword fs:[0], eax
mov eax, dword [0x44c308]
test al, 1
jne 0x406b8a
or eax, 1
mov dword [0x44c308], eax
xor eax, eax
push 0x43ab10
mov dword [0x44c320], 7
mov dword [0x44c31c], 0
mov word [0x44c30c], ax
call fcn.0041e967
add esp, 4
cmp dword [0x44c31c], 0
jne 0x406e10
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x3e]
push eax
mov dword [esp + 0x20], 0
call fcn.004219e0
add esp, 0xc
xor eax, eax
push 0xffffffffffffffff
push eax
push 0x44af4c
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.00403ba0
push 0x4e
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
lea ecx, [esp + 0x24]
mov dword [esp + 0x850], 0
call fcn.00411b00
cmp dword [esp + 0x30], 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x14]
push ecx
push 1
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push 0
push eax
push 0x80000003
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406c9c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
push str.Progid
push dword [esp + 0x28]
mov dword [esp + 0x30], 0x800
call ebx
test eax, eax
jne 0x406df2
cmp dword [esp + 0x18], eax
je 0x406df2
push dword [esp + 0x14]
call edi
push str._shellopencommand
lea eax, [esp + 0x38]
push 0x400
push eax
mov dword [esp + 0x20], 0
call fcn.0041f84b
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
jmp 0x406d04
push 0xffffffffffffffff
push 0
push 0x44af4c
lea ecx, [esp + 0x28]
call fcn.00403ba0
push 0x29
push str.SoftwareClasseshttp_shellopencommand
lea ecx, [esp + 0x24]
call fcn.00411b00
cmp dword [esp + 0x30], 8
lea ecx, [esp + 0x14]
push ecx
push 1
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push 0
push eax
push 0x80000003
call esi
test eax, eax
je 0x406d18
push 0x17
push str.http_shellopencommand
lea ecx, [esp + 0x24]
call fcn.00404220
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push eax
push 0x80000000
call esi
test eax, eax
jne 0x406df2
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x406df2
mov edi, dword [esp + 0x18]
shr edi, 1
add edi, 4
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041da7f
add esp, 4
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
push 0
push 0
push 0
push dword [esp + 0x28]
call ebx
test eax, eax
je 0x406d7a
push esi
call fcn.0041ee57
add esp, 4
jmp 0x406dec
push 0x4423c4
push esi
call fcn.0041f8b7
add esp, 8
test eax, eax
jne 0x406d9b
push 0x4423cc
push edi
push esi
call fcn.0041f84b
add esp, 0xc
push esi
mov ecx, 0x44c30c
call fcn.00402fb0
mov edi, dword [0x44c320]
mov esi, dword [0x44c30c]
mov eax, dword [0x44c31c]
cmp edi, 8
mov ecx, 0x44c30c
cmovae ecx, esi
mov edx, 0x44c30c
mov ebx, 0x44c30c
lea eax, [ecx + eax*2]
cmovae edx, esi
cmovae ebx, esi
cmp edx, eax
je 0x406dec
push fcn.0041fc8f
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00414c30
add esp, 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406dfd
push eax
call edi
cmp dword [esp + 0x30], 8
jb 0x406e10
push dword [esp + 0x1c]
call fcn.0041df62
add esp, 4
mov eax, 0x44c30c
mov ecx, dword [esp + 0x840]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.0041ddb7
mov esp, ebp
pop ebp
ret