Function at 0x4017f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a21c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c8
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
push eax
xor ebx, ebx
push 0x20019
push ebx
push str.SOFTWARETENCENTPLATFORM_CLSID_LIST
mov dword [ebp - 0x2c], ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp - 0x10], ebx
jne 0x401b39
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
push ecx
push ebx
push ebx
lea edx, [ebp - 0x24]
push ebx
lea ecx, [ebp - 0x144]
push edx
push ecx
push ebx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4019a7
lea edx, [ebp - 0x144]
test edx, edx
jne 0x40187b
xor edi, edi
jmp 0x4018b0
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00404c20
mov edi, esp
push esi
push edi
lea ecx, [ebp - 0x144]
push 0xffffffffffffffff
push ecx
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 0x3c]
mov esi, eax
push edx
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x401964
push 0x14
call fcn.0040465b
add esp, 4
mov dword [ebp - 0x20], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x401903
mov edx, dword [ebp - 0x3c]
mov ecx, eax
mov esi, eax
mov dword [ecx], edx
mov edx, dword [ebp - 0x38]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x34]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x10], ebx
mov dword [ecx + 0xc], edx
jmp 0x401905
xor esi, esi
or edi, 0xffffffff
cmp esi, ebx
mov dword [ebp - 4], edi
je 0x401bee
push 8
call fcn.0040465b
add esp, 4
mov dword [ebp - 0x20], eax
cmp eax, ebx
mov dword [ebp - 4], 1
je 0x401932
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x401934
xor eax, eax
cmp eax, ebx
mov dword [ebp - 4], edi
je 0x40195a
mov ecx, dword [ebp - 0x2c]
mov dword [eax], esi
cmp dword [ecx + 8], ebx
jne 0x40194a
mov dword [ecx + 8], eax
jmp 0x401950
mov edx, dword [ecx + 0xc]
mov dword [edx + 4], eax
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 0x10]
inc eax
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
push ecx
push ebx
push ebx
lea edx, [ebp - 0x24]
push ebx
lea ecx, [ebp - 0x144]
inc eax
push edx
mov edx, dword [ebp - 0x28]
push ecx
push eax
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40186d
cmp dword [ebp - 0x10], ebx
jne 0x401be4
mov ecx, 9
mov esi, str.DA9916AC_F2E9_4c50_95B7_2EED08CD1D0A
lea edi, [ebp - 0x1d4]
mov dword [ebp - 0x14], ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 9
mov esi, str.657DA82D_0659_42a2_87B7_66E100E5E6EB
lea edi, [ebp - 0x1ac]
mov byte [ebp - 0x1ad], bl
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 9
mov esi, str.E19BDCB0_15B8_4e06_A01B_2C56F3EA6511
lea edi, [ebp - 0x184]
mov byte [ebp - 0x185], bl
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 9
mov esi, str.6AB8D027_CE95_4ced_B5D0_076E2D90C44F
lea edi, [ebp - 0x15c]
mov byte [ebp - 0x15d], bl
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 9
mov esi, str.80629D78_C717_41fb_8B67_929FA63BA923
lea edi, [ebp - 0x134]
mov byte [ebp - 0x135], bl
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 9
mov esi, str.4B34393B_7422_4eb6_8EAF_2AE0DC2077C1
lea edi, [ebp - 0x10c]
mov byte [ebp - 0x10d], bl
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 9
mov esi, str.F77CE52C_FDD7_4487_9EE1_ACC80BAAB3CC
lea edi, [ebp - 0xe4]
mov byte [ebp - 0xe5], bl
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 9
mov esi, str.E67EFC33_6FC0_430c_8440_972A291FBD8A
lea edi, [ebp - 0xbc]
mov byte [ebp - 0xbd], bl
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 9
mov esi, str.8E7C0645_2A15_4996_8099_C08D653EC5CC
lea edi, [ebp - 0x94]
mov byte [ebp - 0x95], bl
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 9
mov esi, str.2D616D8F_F1BA_43a1_BEF0_E2A82A0FBD56
lea edi, [ebp - 0x6c]
mov byte [ebp - 0x6d], bl
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [ebp - 0x1d4]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x45], bl
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x1d4]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x401bc4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401bc4
push 0x14
call fcn.0040465b
add esp, 4
mov dword [ebp - 0x20], eax
cmp eax, ebx
mov dword [ebp - 4], 2
je 0x401b64
mov edx, dword [ebp - 0x3c]
mov ecx, eax
mov esi, eax
mov dword [ecx], edx
mov edx, dword [ebp - 0x38]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x34]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x10], ebx
mov dword [ecx + 0xc], edx
jmp 0x401b66
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWARETENCENTPLATFORM_CLSID_LIST
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401bee
jmp 0x4019a7
xor esi, esi
or edi, 0xffffffff
cmp esi, ebx
mov dword [ebp - 4], edi
je 0x401bee
push 8
call fcn.0040465b
add esp, 4
mov dword [ebp - 0x20], eax
cmp eax, ebx
mov dword [ebp - 4], 3
je 0x401b8f
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x401b91
xor eax, eax
cmp eax, ebx
mov dword [ebp - 4], edi
je 0x401bb7
mov ecx, dword [ebp - 0x2c]
mov dword [eax], esi
cmp dword [ecx + 8], ebx
jne 0x401ba7
mov dword [ecx + 8], eax
jmp 0x401bad
mov edx, dword [ecx + 0xc]
mov dword [edx + 4], eax
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 0x10]
inc eax
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
inc eax
add edx, 0x28
cmp eax, 0xa
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
jl 0x401ab8
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x1e0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret