Function at 0x40a260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x228
lea ebp, [esp - 4]
mov eax, dword [0x447074]
xor eax, ebp
mov dword [ebp + 0x228], eax
push 0x30
mov eax, 0x43a948
call fcn.0043705d
mov eax, dword [ebp + 0x234]
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
push 0x20a
lea eax, [ebp + 0x1e]
push edi
mov dword [ebp - 4], edi
push eax
mov word [ebp + 0x1c], di
call fcn.0041c3b0
mov esi, 0x104
add esp, 0xc
mov dword [ebp - 0x1c], esi
call fcn.00409eec
test eax, eax
jne 0x40a33b
call fcn.00409f69
test eax, eax
jne 0x40a33b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
push str.SOFTWARETencentQQPCMgrDownloader
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a464
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40a321
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40a466
cmp dword [ebp - 0x14], edi
je 0x40a311
push esi
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
call fcn.0042009f
xor edi, edi
add esp, 0xc
inc edi
jmp 0x40a311
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], edi
mov word [ebp + 4], di
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 1
call fcn.00409fe3
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00409549
push edi
push 1
lea esi, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00409746
push 0x43e960
lea eax, [ebp]
push eax
call fcn.004093f0
push str.SOFTWARETencentQQPCMgrDownloader
lea eax, [ebp]
push eax
call fcn.004093f0
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40a39f
lea eax, [ebp + 4]
lea ecx, [ebp - 0x10]
push ecx
push 0x2001f
push edi
push eax
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40a459
push dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 0x1c]
lea esi, [ebp + 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.00409dd0
test eax, eax
je 0x40a3f5
push 0
push 1
lea esi, [ebp]
call fcn.00409746
test ebx, ebx
je 0x40a464
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a464
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x40a436
push 0x103
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
call fcn.0042009f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
cmp ebx, esi
je 0x40a41f
push ebx
call edi
xor ebx, ebx
push esi
push 1
lea esi, [ebp]
call fcn.00409746
test ebx, ebx
je 0x40a431
push ebx
call edi
xor eax, eax
inc eax
jmp 0x40a466
cmp ebx, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a445
push ebx
call edi
xor ebx, ebx
push esi
push 1
lea esi, [ebp]
call fcn.00409746
test ebx, ebx
je 0x40a464
push ebx
call edi
jmp 0x40a464
push edi
push 1
lea esi, [ebp]
call fcn.00409746
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x228]
xor ecx, ebp
call fcn.0041c4b8
add ebp, 0x22c
leave
ret