Function at 0x409f7d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x228
lea ebp, [esp - 4]
mov eax, dword [0x446074]
xor eax, ebp
mov dword [ebp + 0x228], eax
push 0x30
mov eax, 0x43a3b8
call fcn.00436abd
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.0041be10
mov esi, 0x104
add esp, 0xc
mov dword [ebp - 0x1c], esi
call fcn.00409c09
test eax, eax
jne 0x40a058
call fcn.00409c86
test eax, eax
jne 0x40a058
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 0x40a181
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 0x40a03e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40a183
cmp dword [ebp - 0x14], edi
je 0x40a02e
push esi
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
call fcn.0041faff
xor edi, edi
add esp, 0xc
inc edi
jmp 0x40a02e
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.00409d00
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00409274
push edi
push 1
lea esi, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00409471
push 0x43d960
lea eax, [ebp]
push eax
call fcn.0040911b
push str.SOFTWARETencentQQPCMgrDownloader
lea eax, [ebp]
push eax
call fcn.0040911b
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40a0bc
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 0x40a176
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.00409aed
test eax, eax
je 0x40a112
push 0
push 1
lea esi, [ebp]
call fcn.00409471
test ebx, ebx
je 0x40a181
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a181
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x40a153
push 0x103
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
call fcn.0041faff
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
cmp ebx, esi
je 0x40a13c
push ebx
call edi
xor ebx, ebx
push esi
push 1
lea esi, [ebp]
call fcn.00409471
test ebx, ebx
je 0x40a14e
push ebx
call edi
xor eax, eax
inc eax
jmp 0x40a183
cmp ebx, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a162
push ebx
call edi
xor ebx, ebx
push esi
push 1
lea esi, [ebp]
call fcn.00409471
test ebx, ebx
je 0x40a181
push ebx
call edi
jmp 0x40a181
push edi
push 1
lea esi, [ebp]
call fcn.00409471
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.0041bf18
add ebp, 0x22c
leave
ret