Function at 0x40b0f9
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x278
mov eax, 0x41f79d
call fcn.0040cc3e
mov edi, ecx
mov dword [ebp - 0x278], edi
lea eax, [ebp - 0x26c]
xor esi, esi
push eax
push 0x20019
push esi
mov ebx, str.SOFTWARETENCENTPLATFORM_CLSID_LIST
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b232
push 0x200
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040f250
add esp, 0xc
lea eax, [ebp - 0x284]
mov ebx, esi
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
jmp 0x40b212
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x274]
call fcn.00407128
lea ecx, [ebp - 0x248]
push ecx
push dword [eax]
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp - 0x274]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jne 0x40b1f6
lea esi, [ebp - 0x248]
lea edi, [ebp - 0x268]
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 - 0x258], esi
mov dword [ebp - 0x254], esi
mov edi, dword [ebp - 0x278]
lea eax, [ebp - 0x268]
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00408f9d
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x40b1f0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
jmp 0x40b1f8
xor esi, esi
lea eax, [ebp - 0x284]
inc ebx
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x26c]
mov dword [ebp - 0x270], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40b16d
jmp 0x40b257
push esi
lea eax, [ebp - 0x26c]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b3a7
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x40b39b
mov dword [ebp - 0x238], str.DA9916AC_F2E9_4c50_95B7_2EED08CD1D0A
mov ebx, esi
mov dword [ebp - 0x234], str.657DA82D_0659_42a2_87B7_66E100E5E6EB
mov dword [ebp - 0x230], str.E19BDCB0_15B8_4e06_A01B_2C56F3EA6511
mov dword [ebp - 0x22c], str.6AB8D027_CE95_4ced_B5D0_076E2D90C44F
mov dword [ebp - 0x228], str.80629D78_C717_41fb_8B67_929FA63BA923
mov dword [ebp - 0x224], str.4B34393B_7422_4eb6_8EAF_2AE0DC2077C1
mov dword [ebp - 0x220], str.F77CE52C_FDD7_4487_9EE1_ACC80BAAB3CC
mov dword [ebp - 0x21c], str.E67EFC33_6FC0_430c_8440_972A291FBD8A
mov dword [ebp - 0x218], str.8E7C0645_2A15_4996_8099_C08D653EC5CC
mov dword [ebp - 0x214], str.2D616D8F_F1BA_43a1_BEF0_E2A82A0FBD56
push dword [ebp + ebx*4 - 0x238]
lea ecx, [ebp - 0x274]
call fcn.00407128
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp - 0x274]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jne 0x40b391
push esi
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + ebx*4 - 0x238]
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b391
lea esi, [ebp - 0x260]
lea edi, [ebp - 0x250]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebp - 0x240], eax
and dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 4], 4
call fcn.00408f9d
push dword [ebp - 0x27c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 4], 5
test ecx, ecx
je 0x40b38d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
inc ebx
cmp ebx, 0xa
jb 0x40b2d0
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040cbe8
ret