Function at 0x409376
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x278
mov eax, 0x417beb
call fcn.0040caca
lea eax, [ebp - 0x250]
push eax
push 0x20019
xor ebx, ebx
push ebx
mov edi, 0x41a1e8
push edi
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
mov dword [ebp - 0x254], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4094c9
xor eax, eax
push 0x1fe
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.0040c330
add esp, 0xc
lea eax, [ebp - 0x284]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x24c], ebx
push ebx
jmp 0x40949f
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
cmp esi, ebx
je 0x4094bf
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
neg eax
sbb al, al
inc al
push esi
mov byte [ebp - 0x241], al
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp - 0x241], bl
je 0x40947b
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]
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 4], ebx
call fcn.00409312
mov eax, dword [ebp - 0x214]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x40947b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x24c]
lea eax, [ebp - 0x284]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x24c]
push dword [ebp - 0x250]
mov dword [ebp - 0x248], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4093f6
jmp 0x4094ea
push 0x8007000e
call fcn.00401148
push ebx
lea eax, [ebp - 0x250]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409658
mov ecx, dword [ebp - 0x254]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x40964c
mov dword [ebp - 0x27c], 0x41a198
mov dword [ebp - 0x278], 0x41a148
mov dword [ebp - 0x274], 0x41a0f8
mov dword [ebp - 0x270], 0x41a0a8
mov dword [ebp - 0x26c], 0x41a058
mov dword [ebp - 0x268], 0x41a008
mov dword [ebp - 0x264], 0x419fb8
mov dword [ebp - 0x260], 0x419f68
mov dword [ebp - 0x25c], 0x419f18
mov dword [ebp - 0x258], 0x419ec8
mov dword [ebp - 0x248], ebx
mov eax, dword [ebp - 0x248]
mov edi, dword [ebp + eax*4 - 0x27c]
cmp edi, ebx
jne 0x409582
xor esi, esi
jmp 0x409593
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
cmp esi, ebx
je 0x4094bf
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
neg eax
sbb al, al
inc al
push esi
mov byte [ebp - 0x241], al
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp - 0x241], bl
je 0x409639
push ebx
lea eax, [ebp - 0x24c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push dword [ebp - 0x250]
mov dword [ebp - 0x24c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409639
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.00409312
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x22c]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x409639
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x248]
cmp dword [ebp - 0x248], 0xa
jb 0x40956d
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040cb4d
ret