Function at 0x40a290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459b91
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x98], 0
push 0x26
xor eax, eax
push str.95B7759C_8C7F_4BF1_B163_73684A933233
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
call fcn.00402900
mov dword [ebp - 4], 0
push 0x2c
xor eax, eax
push str.SOFTWAREMicrosoftInternet_ExplorerToolbar
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x98], 1
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.00402900
mov dword [ebp - 4], 1
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x98], 3
jae 0x40a33f
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x94]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a3ad
cmp dword [ebp - 0x60], 8
mov eax, dword [ebp - 0x74]
jae 0x40a369
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0xa0]
push ecx
push 0
lea ecx, [ebp - 0x9c]
push ecx
push 0
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x94]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete bl
call esi
test bl, bl
je 0x40a3b3
mov ebx, 3
mov byte [ebp - 0x8d], 1
jmp 0x40a41d
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x2e
xor eax, eax
push str.TypeLibCCC7A320_B3CA_4199_B1A6_9F516DD69829
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00402900
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov ebx, 7
jae 0x40a3e7
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x94]
push ecx
push 0x20019
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a416
push dword [ebp - 0x94]
call esi
mov byte [ebp - 0x8d], 1
jmp 0x40a41d
mov byte [ebp - 0x8d], 0
test bl, 4
je 0x40a44a
and ebx, 0xfffffffb
cmp dword [ebp - 0x18], 8
jb 0x40a436
push dword [ebp - 0x2c]
call fcn.0043d3af
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
test bl, 2
je 0x40a477
and ebx, 0xfffffffd
cmp dword [ebp - 0x30], 8
jb 0x40a463
push dword [ebp - 0x44]
call fcn.0043d3af
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40a494
cmp dword [ebp - 0x60], 8
jb 0x40a494
push dword [ebp - 0x74]
call fcn.0043d3af
add esp, 4
cmp byte [ebp - 0x8d], 0
je 0x40a55b
mov dword [ebp - 4], 2
push 5
xor eax, eax
push str.Flags
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
call fcn.00402900
mov byte [ebp - 4], 3
push 0x5d
xor eax, eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExtSettings95B7759C_8C7F_4BF1_B163_73684A933233
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
call fcn.00402900
lea eax, [ebp - 0x8c]
push eax
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.0042c310
add esp, 4
cmp eax, 1
setne bl
cmp dword [ebp - 0x48], 8
jb 0x40a525
push dword [ebp - 0x5c]
call fcn.0043d3af
add esp, 4
xor eax, eax
cmp dword [ebp - 0x78], 8
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
jb 0x40a54d
push dword [ebp - 0x8c]
call fcn.0043d3af
add esp, 4
test bl, bl
je 0x40a55b
mov al, 1
jmp 0x40a55d
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 - 0x14]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret