Function at 0x404100
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa7c
mov dword [ebp - 0x280], 0x45
lea eax, [ebp - 0x888]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 0x100
mov dword [ebp - 0x260], 1
mov dword [ebp - 0x284], 0xffff0001
mov dword [ebp - 0x288], 0xffff0000
mov esi, dword [0x40d144]
mov ebx, dword [sym.imp.user32.dll_LoadStringW]
push 0x100
push eax
push 0xe6
push dword [esi + 0x1c]
call ebx
push 0x60c
push 1
call dword [sym.imp.ucrtbase.dll_calloc]
add esp, 8
mov byte [eax], 1
movups xmm0, xmmword [str.Interface_]
movups xmmword [eax + 2], xmm0
movsd xmm0, qword [0x40d698]
movsd qword [eax + 0x10], xmm0
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x288]
push eax
push 0
push 0x1132
push dword [esi + 0x10]
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [0x419688], eax
push 0x100
push dword [ebp - 0x270]
push 0xdc
push dword [esi + 0x1c]
call ebx
push 0x60c
push 1
mov edi, dword [sym.imp.ucrtbase.dll_calloc]
call edi
add esp, 8
mov byte [eax], 1
movups xmm0, xmmword [str.TypeLib_]
movups xmmword [eax + 2], xmm0
mov word [eax + 0x12], 0
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x288]
push eax
push 0
push 0x1132
push dword [esi + 0x10]
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [0x419684], eax
push 0x100
push dword [ebp - 0x270]
push 0xd2
push dword [esi + 0x1c]
call ebx
push 0x60c
push 1
call edi
add esp, 8
mov byte [eax], 3
mov dword [eax + 2], 0x700041
mov dword [eax + 6], 0x490070
mov dword [eax + 0xa], 0x5c0044
mov word [eax + 0xe], 0
mov dword [ebp - 0x25c], eax
lea edi, [ebp - 0x288]
push edi
push 0
push 0x1132
push dword [esi + 0x10]
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [0x419680], eax
push 0x100
push dword [ebp - 0x270]
push 0xc8
push dword [esi + 0x1c]
call ebx
mov dword [ebp - 0x25c], 0
push edi
push 0
push 0x1132
push dword [esi + 0x10]
mov eax, dword [sym.imp.user32.dll_SendMessageW]
call eax
mov dword [0x41966c], eax
mov dword [ebp - 0x288], eax
push 0x100
push dword [ebp - 0x270]
push 0xcc
push dword [esi + 0x1c]
call ebx
mov edi, ebx
push 0x60c
push 1
call dword [sym.imp.ucrtbase.dll_calloc]
add esp, 8
mov byte [eax], 1
mov dword [eax + 2], 0x4c0043
mov dword [eax + 6], 0x490053
mov dword [eax + 0xa], 0x5c0044
mov word [eax + 0xe], 0
mov dword [ebp - 0x25c], eax
lea ebx, [ebp - 0x288]
push ebx
push 0
push 0x1132
push dword [esi + 0x10]
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [0x41967c], eax
push 0x100
push dword [ebp - 0x270]
push 0xcb
push dword [esi + 0x1c]
call edi
push ebx
push 0
push 0x1132
push dword [esi + 0x10]
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
call ebx
mov dword [0x419678], eax
push 0x100
push dword [ebp - 0x270]
push 0xca
push dword [esi + 0x1c]
call edi
mov dword [ebp - 0x25c], 0
lea eax, [ebp - 0x288]
push eax
push 0
push 0x1132
push dword [esi + 0x10]
call ebx
mov edi, ebx
mov dword [0x419674], eax
push 0x100
push dword [ebp - 0x270]
push 0xc9
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_LoadStringW]
push 0x60c
push 1
call dword [sym.imp.ucrtbase.dll_calloc]
lea ebx, [ebp - 0x288]
add esp, 8
mov byte [eax], 3
movups xmm0, xmmword [str.Component_Categories_]
movups xmmword [eax + 2], xmm0
movups xmm0, xmmword [0x40d6e8]
movups xmmword [eax + 0x12], xmm0
movups xmm0, xmmword [0x40d6f4]
movups xmmword [eax + 0x1e], xmm0
mov dword [ebp - 0x25c], eax
push ebx
push 0
push 0x1132
push dword [esi + 0x10]
call edi
mov dword [0x419670], eax
push dword [0x41966c]
push 2
push 0x1102
push dword [esi + 0x10]
call edi
call dbg.AddComponentCategories
call dbg.AddCOMandAll
mov dword [ebp - 0x480], 5
mov dword [ebp - 0x46c], 0x100
mov dword [ebp - 0x484], 0xffff0001
mov eax, dword [0x419680]
mov dword [ebp - 0x488], eax
lea esi, [ebp - 0x688]
push esi
push str.AppID_
push 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
jne 0x40449a
push 0x100
lea ebx, [ebp - 0x888]
push ebx
push 0
push dword [ebp - 0x688]
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
test eax, eax
je 0x4045cd
push dword [ebp - 0x688]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push dword [0x419680]
push 0
push 0x1113
mov eax, dword [0x40d144]
push dword [eax + 0x10]
call dword [sym.imp.user32.dll_SendMessageW]
lea ebx, [ebp - 0x288]
lea esi, [ebp - 0x688]
movups xmm0, xmmword [str.___s__s_]
movups xmmword [ebp - 0x88], xmm0
mov word [ebp - 0x78], 0
mov dword [ebp - 0x28], 0x73
mov dword [ebp - 0x2c], 0x25005c
mov dword [ebp - 0x30], 0x730025
mov dword [ebp - 0x6c], 5
mov dword [ebp - 0x58], 0x100
mov dword [ebp - 0x70], 0xffff0001
mov eax, dword [0x419684]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x14]
push eax
push str.TypeLib_
push 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
jne 0x40453b
push 0x100
push ebx
push 0
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
test eax, eax
je 0x4046db
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push dword [0x419684]
push 0
push 0x1113
mov eax, dword [0x40d144]
push dword [eax + 0x10]
call dword [sym.imp.user32.dll_SendMessageW]
lea esi, [ebp - 0x688]
mov dword [ebp - 0x480], 5
mov dword [ebp - 0x46c], 0x100
mov dword [ebp - 0x484], 0xffff0001
mov eax, dword [0x419688]
mov dword [ebp - 0x488], eax
push esi
push str.Interface_
push 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
jne 0x4045c2
push 0x100
lea ebx, [ebp - 0x888]
push ebx
push 0
push dword [ebp - 0x688]
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
test eax, eax
je 0x4048ff
push dword [ebp - 0x688]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push dword [0x419688]
push 0
push 0x1113
mov eax, dword [0x40d144]
push dword [eax + 0x10]
call dword [sym.imp.user32.dll_SendMessageW]
add esp, 0xa7c
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
lea edi, [ebp - 0xa88]
jmp 0x4045fc
inc esi
push 0x100
push ebx
push esi
push dword [ebp - 0x688]
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
test eax, eax
jne 0x404467
push edi
push ebx
push dword [ebp - 0x688]
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
jne 0x4045e0
mov dword [ebp - 0x74], 0x200
lea eax, [ebp - 0x74]
push eax
lea edi, [ebp - 0x288]
push edi
push 0
push dword [ebp - 0xa88]
call dword [sym.imp.advapi32.dll_RegQueryValueW]
cmp word [ebp - 0x288], 0
mov ecx, ebx
cmovne ecx, edi
test eax, eax
cmovne ecx, ebx
mov dword [ebp - 0x470], ecx
push dword [ebp - 0xa88]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push 0x60c
push 1
call dword [sym.imp.ucrtbase.dll_calloc]
add esp, 8
mov byte [eax], 2
xor ecx, ecx
nop word [eax + eax]
movzx edx, word [ebp + ecx - 0x888]
mov word [eax + ecx + 2], dx
add ecx, 2
test dx, dx
jne 0x404670
xor ecx, ecx
nop word [eax + eax]
movzx edx, word [ebp + ecx - 0x888]
mov word [eax + ecx + 0x202], dx
add ecx, 2
test dx, dx
jne 0x404690
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x488]
push eax
push 0
push 0x1132
mov eax, dword [0x40d144]
push dword [eax + 0x10]
call dword [sym.imp.user32.dll_SendMessageW]
lea ebx, [ebp - 0x888]
lea edi, [ebp - 0xa88]
jmp 0x4045e0
xor esi, esi
jmp 0x404708
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea ebx, [ebp - 0x288]
inc esi
push 0x100
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
test eax, eax
jne 0x404511
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
jne 0x4046ef
push 0x100
lea edi, [ebp - 0x888]
push edi
push 0
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
test eax, eax
jne 0x4046e0
xor ebx, ebx
mov dword [ebp - 0x24], esi
jmp 0x404755
inc ebx
push 0x100
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
test eax, eax
jne 0x4046e0
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
jne 0x404740
mov dword [ebp - 0x18], 0x200
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x488]
push eax
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.advapi32.dll_RegQueryValueW]
test eax, eax
jne 0x40483b
cmp word [ebp - 0x488], 0
je 0x40483b
push 0x100
lea eax, [ebp - 0x688]
push eax
push 0xdd
mov eax, dword [0x40d144]
push dword [eax + 0x1c]
call dword [sym.imp.user32.dll_LoadStringW]
mov eax, 0xfffffffe
nop
cmp word [ebp + eax - 0x486], 0
lea eax, [eax + 2]
jne 0x4047c0
add eax, ebp
add eax, 0xfffffb78
lea edi, [ebp - 0x888]
push edi
lea esi, [ebp - 0x688]
push esi
lea ecx, [ebp - 0x88]
push ecx
push eax
mov esi, dword [sym.imp.user32.dll_wsprintfW]
call esi
add esp, 0x10
lea eax, [ebp - 0x488]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x18], 0x100
lea eax, [ebp - 0x20]
push eax
push str.0win32
push dword [ebp - 0x1c]
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xa88]
push eax
push 0
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegQueryValueW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
call esi
jmp 0x40484a
lea edi, [ebp - 0x888]
mov dword [ebp - 0x5c], edi
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
push dword [ebp - 0x1c]
call esi
push edi
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x688]
push eax
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0x10
push 0x60c
push 1
call dword [sym.imp.ucrtbase.dll_calloc]
add esp, 8
mov byte [eax], 2
xor ecx, ecx
movzx edx, word [ebp + ecx - 0x688]
mov word [eax + ecx + 2], dx
add ecx, 2
test dx, dx
jne 0x404880
xor ecx, ecx
mov esi, dword [ebp - 0x24]
nop word [eax + eax]
movzx edx, word [ebp + ecx - 0x288]
mov word [eax + ecx + 0x202], dx
add ecx, 2
test dx, dx
jne 0x4048a0
xor ecx, ecx
nop word [eax + eax]
movzx edx, word [ebp + ecx - 0xa88]
mov word [eax + ecx + 0x402], dx
add ecx, 2
test dx, dx
jne 0x4048c0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0x1132
mov eax, dword [0x40d144]
push dword [eax + 0x10]
call dword [sym.imp.user32.dll_SendMessageW]
lea edi, [ebp - 0x888]
jmp 0x404740
xor esi, esi
lea edi, [ebp - 0xa88]
jmp 0x40492c
inc esi
push 0x100
push ebx
push esi
push dword [ebp - 0x688]
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
test eax, eax
jne 0x40459b
push edi
push ebx
push dword [ebp - 0x688]
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
jne 0x404910
mov dword [ebp - 0x74], 0x200
lea eax, [ebp - 0x74]
push eax
lea edi, [ebp - 0x288]
push edi
push 0
push dword [ebp - 0xa88]
call dword [sym.imp.advapi32.dll_RegQueryValueW]
cmp word [ebp - 0x288], 0
mov ecx, ebx
cmovne ecx, edi
test eax, eax
cmovne ecx, ebx
mov dword [ebp - 0x470], ecx
push dword [ebp - 0xa88]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push 0x60c
push 1
call dword [sym.imp.ucrtbase.dll_calloc]
add esp, 8
mov byte [eax], 0xa
xor ecx, ecx
nop word [eax + eax]
movzx edx, word [ebp + ecx - 0x888]
mov word [eax + ecx + 2], dx
add ecx, 2
test dx, dx
jne 0x4049a0
xor ecx, ecx
nop word [eax + eax]
movzx edx, word [ebp + ecx - 0x888]
mov word [eax + ecx + 0x202], dx
add ecx, 2
test dx, dx
jne 0x4049c0
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x488]
push eax
push 0
push 0x1132
mov eax, dword [0x40d144]
push dword [eax + 0x10]
call dword [sym.imp.user32.dll_SendMessageW]
lea ebx, [ebp - 0x888]
lea edi, [ebp - 0xa88]
jmp 0x404910