Function at 0x4165b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50f9cb
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
lea esi, [ebx + 0x5c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], esi
je 0x416634
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x416634
mov edx, dword [esp + 0x2c]
push esi
push edx
call fcn.0041d580
jmp 0x416925
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
mov ecx, ebx
call edx
test al, al
je 0x416927
mov dword [esp + 0x10], edi
mov dword [esp + 0x98], edi
mov eax, 7
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], edi
mov word [esp + 0x70], di
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], edi
mov word [esp + 0x54], di
lea eax, [esp + 0x10]
push eax
push 1
push edi
push str.SoftwareTencentQQBrowserCommon
mov bl, 2
mov byte [esp + 0xa8], bl
or esi, 0xffffffff
push Ordinal_4
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x416816
push str.MainPageDIY
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0x58]
call fcn.0043c180
test al, al
jne 0x4166e2
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4166d9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jmp 0x41680b
mov eax, 4
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push str.MainPageDIY_
push edx
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x416739
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4166d9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jmp 0x41680b
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x41674c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], edi
call fcn.00416d90
push esi
push edi
push eax
lea eax, [esp + 0x78]
mov byte [esp + 0xa4], 3
call fcn.00401610
mov byte [esp + 0x98], bl
cmp dword [esp + 0x4c], 8
jb 0x41678d
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004e7d7e
add esp, 4
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x6c]
push edx
call fcn.00409760
mov esi, dword [esp + 0x24]
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x74]
push eax
lea eax, [esi + 0xd0]
call fcn.00401610
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x58]
push ecx
lea eax, [esi + 0x290]
call fcn.00401610
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x34]
call fcn.0042c2c0
push 0xffffffffffffffff
push edi
push eax
mov eax, dword [esp + 0x30]
add eax, 0x2ac
mov byte [esp + 0xa4], 4
call fcn.00401610
mov byte [esp + 0x98], bl
cmp dword [esp + 0x4c], 8
jb 0x416807
mov edx, dword [esp + 0x38]
push edx
call fcn.004e7d7e
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x41681a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
push eax
push 1
push edi
push str.SoftwareTencentQQBrowserLaunch
push Ordinal_4
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x416844
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
jmp 0x4168b4
mov eax, 4
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push edi
push str.MainPageType
push ecx
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x416892
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4168b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
jmp 0x4168b0
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4168a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [eax + 4], edx
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call fcn.0041d580
mov ebx, 8
cmp dword [esp + 0x68], ebx
jb 0x4168db
mov eax, dword [esp + 0x54]
push eax
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x84], ebx
mov esi, 7
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], edi
mov word [esp + 0x54], di
jb 0x416903
mov ecx, dword [esp + 0x70]
push ecx
call fcn.004e7d7e
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], edi
mov word [esp + 0x70], di
je 0x416925
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004e7d6f
mov esp, ebp
pop ebp
ret 4