Function at 0x40d680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480b86
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x4c33d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
test edi, edi
je 0x40d937
test esi, esi
je 0x40d937
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
push edi
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes_s
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
xor edi, edi
call fcn.00444df0
test al, al
mov ecx, 0x200
cmovne edi, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x490], 0
call sub.MSVCR110.dll_memset
add esp, 0x28
lea eax, [ebp - 0x484]
push eax
or edi, 1
push edi
push 0
lea eax, [ebp - 0x420]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x488], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d844
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x490]
push eax
push 0
push 0x491b94
push dword [ebp - 0x484]
call ebx
test eax, eax
jne 0x40d844
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x468]
call fcn.00401e60
mov edx, eax
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
call fcn.0043a9e0
lea ecx, [ebp - 0x468]
mov dword [ebp - 4], 0xffffffff
call fcn.00401ec0
mov edx, dword [ebp - 0x424]
lea ecx, [ebp - 0x438]
cmp edx, 8
cmovae ecx, dword [ebp - 0x438]
lea eax, [ecx + 2]
mov dword [ebp - 0x48c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d7f2
sub ecx, dword [ebp - 0x48c]
sar ecx, 1
je 0x40d839
cmp edx, 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push 0x104
push esi
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x438]
call fcn.00401ec0
mov al, 1
jmp 0x40d939
lea ecx, [ebp - 0x438]
call fcn.00401ec0
lea eax, [ebp - 0x484]
push eax
push edi
push 0
lea eax, [ebp - 0x420]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d937
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x490]
push eax
push 0
push 0x491b94
push dword [ebp - 0x484]
mov dword [ebp - 0x488], 0x208
call ebx
test eax, eax
jne 0x40d937
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x480]
call fcn.00401e60
mov edx, eax
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 1
call fcn.0043a9e0
lea ecx, [ebp - 0x480]
call fcn.00401ec0
mov edx, dword [ebp - 0x43c]
mov edi, dword [ebp - 0x450]
lea ecx, [ebp - 0x450]
cmp edx, 8
cmovae ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d8f0
sub ecx, ebx
sar ecx, 1
je 0x40d92c
cmp edx, 8
lea eax, [ebp - 0x450]
cmovae eax, edi
push eax
push 0x104
push esi
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x450]
call fcn.00401ec0
mov al, 1
jmp 0x40d939
lea ecx, [ebp - 0x450]
call fcn.00401ec0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret