Function at 0x40a331
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x278
mov eax, 0x41974c
call fcn.0040d10c
lea eax, [ebp - 0x24c]
push eax
push 0x20019
xor edi, edi
push edi
mov ebx, str.SOFTWARETENCENTPLATFORM_CLSID_LIST
push ebx
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
mov dword [ebp - 0x254], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40a476
push 0x1fe
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.0040c750
add esp, 0xc
lea eax, [ebp - 0x284]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x248], edi
push edi
jmp 0x40a456
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x250]
call fcn.00406f11
mov eax, dword [eax]
lea ecx, [ebp - 0x238]
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp - 0x250]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, bl
je 0x40a432
lea esi, [ebp - 0x238]
lea edi, [ebp - 0x228]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 4], esi
call fcn.0040a2dc
mov eax, dword [ebp - 0x214]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x40a430
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor edi, edi
inc dword [ebp - 0x248]
lea eax, [ebp - 0x284]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
mov dword [ebp - 0x244], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40a3af
jmp 0x40a497
push edi
lea eax, [ebp - 0x24c]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40a5f3
mov ecx, dword [ebp - 0x254]
call fcn.00408aec
test eax, eax
jne 0x40a5e7
mov dword [ebp - 0x27c], str.DA9916AC_F2E9_4c50_95B7_2EED08CD1D0A
mov dword [ebp - 0x278], str.657DA82D_0659_42a2_87B7_66E100E5E6EB
mov dword [ebp - 0x274], str.E19BDCB0_15B8_4e06_A01B_2C56F3EA6511
mov dword [ebp - 0x270], str.6AB8D027_CE95_4ced_B5D0_076E2D90C44F
mov dword [ebp - 0x26c], str.80629D78_C717_41fb_8B67_929FA63BA923
mov dword [ebp - 0x268], str.4B34393B_7422_4eb6_8EAF_2AE0DC2077C1
mov dword [ebp - 0x264], str.F77CE52C_FDD7_4487_9EE1_ACC80BAAB3CC
mov dword [ebp - 0x260], str.E67EFC33_6FC0_430c_8440_972A291FBD8A
mov dword [ebp - 0x25c], str.8E7C0645_2A15_4996_8099_C08D653EC5CC
mov dword [ebp - 0x258], str.2D616D8F_F1BA_43a1_BEF0_E2A82A0FBD56
mov dword [ebp - 0x244], edi
mov eax, dword [ebp - 0x244]
mov esi, dword [ebp + eax*4 - 0x27c]
push esi
lea ecx, [ebp - 0x250]
call fcn.00406f11
mov eax, dword [eax]
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp - 0x250]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, bl
je 0x40a5d4
xor ebx, ebx
push ebx
lea eax, [ebp - 0x248]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0x24c]
mov dword [ebp - 0x248], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40a5d4
lea esi, [ebp - 0x220]
lea edi, [ebp - 0x240]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x240]
push eax
mov dword [ebp - 4], 1
call fcn.0040a2dc
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x22c]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x40a5d4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x244]
cmp dword [ebp - 0x244], 0xa
jb 0x40a514
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040d18f
ret