Function at 0x40a34b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x228
lea ebp, [esp - 4]
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp + 0x228], eax
push 0x30
mov eax, 0x43db08
call fcn.0043a0bf
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.0041ef10
mov esi, 0x104
add esp, 0xc
mov dword [ebp - 0x1c], esi
call fcn.00409fd7
test eax, eax
jne 0x40a426
call fcn.0040a054
test eax, eax
jne 0x40a426
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 0x40a54f
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 0x40a40c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40a551
cmp dword [ebp - 0x14], edi
je 0x40a3fc
push esi
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
call fcn.00422c5d
xor edi, edi
add esp, 0xc
inc edi
jmp 0x40a3fc
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.0040a0ce
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00409620
push edi
push 1
lea esi, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00409826
push 0x441990
lea eax, [ebp]
push eax
call fcn.004094c7
push str.SOFTWARETencentQQPCMgrDownloader
lea eax, [ebp]
push eax
call fcn.004094c7
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40a48a
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 0x40a544
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.00409ebd
test eax, eax
je 0x40a4e0
push 0
push 1
lea esi, [ebp]
call fcn.00409826
test ebx, ebx
je 0x40a54f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a54f
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x40a521
push 0x103
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
call fcn.00422c5d
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
cmp ebx, esi
je 0x40a50a
push ebx
call edi
xor ebx, ebx
push esi
push 1
lea esi, [ebp]
call fcn.00409826
test ebx, ebx
je 0x40a51c
push ebx
call edi
xor eax, eax
inc eax
jmp 0x40a551
cmp ebx, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a530
push ebx
call edi
xor ebx, ebx
push esi
push 1
lea esi, [ebp]
call fcn.00409826
test ebx, ebx
je 0x40a54f
push ebx
call edi
jmp 0x40a54f
push edi
push 1
lea esi, [ebp]
call fcn.00409826
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.0041f018
add ebp, 0x22c
leave
ret