Function at 0x412d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
mov ecx, 0x4ae214
call edx
lea esi, [eax + 0x10]
xor ebx, ebx
push 0x499728
lea ecx, [ebp - 0x18]
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.00405690
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x412d97
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x412da8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x412dca
mov dword [ebp - 0x10], ebx
jmp 0x412e1a
push str.Start_Page
lea ecx, [ebp - 0x14]
call fcn.00405690
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
lea esi, [ebp - 8]
call fcn.00426640
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x412e17
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
call fcn.00406190
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x412e4a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x412e5b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftInternet_ExplorerMain
push 0x80000001
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412f7d
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x412f7d
push 0x802
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push ebx
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea ecx, [ebp - 0x18]
push ecx
mov edx, eax
push edx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push str.Secondary_Start_Pages
push esi
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x18], 0x802
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412f73
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov word [ebp - 0x2c], cx
cmp eax, ebx
jle 0x412f73
shr eax, 1
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jle 0x412f73
lea esi, reloc.NETAPI32.dll_NetApiBufferFree
cmp edi, 0x400
jae 0x412f73
movzx eax, word [esi]
test ax, ax
jne 0x412f58
test ebx, ebx
jle 0x412f6b
cmp word [esi - 2], ax
je 0x412f58
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 8]
call fcn.00405690
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x412f4e
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
call fcn.00406190
mov edi, dword [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.00405660
jmp 0x412f6b
test ebx, ebx
jle 0x412f6b
test ax, ax
je 0x412f6b
cmp word [esi - 2], 0
jne 0x412f6b
mov dword [ebp - 0x1c], esi
inc ebx
add esi, 2
cmp ebx, edi
jl 0x412f11
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4