Function at 0x40d750
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x94
mov eax, 0x4ad746
call fcn.0048f48f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x78], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x5c], ebx
call fcn.0042f326
mov eax, dword [0x507340]
imul eax, eax
push 0x11
cdq
pop ecx
idiv ecx
mov dword [ebp - 4], ebx
cmp edx, 0xe
jne 0x40d7a8
push 4
call fcn.0048e498
pop ecx
mov ecx, dword [0x507340]
mov dword [eax], ecx
mov edi, 0x505ab0
push edi
lea ecx, [ebp - 0x64]
call fcn.00408fd9
push edi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00408fd9
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00408fd9
push str.hive
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0042f676
sub esp, 0x18
mov ecx, eax
push esp
call fcn.0042fc5e
lea eax, [ebp - 0x54]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.00402394
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.00407864
mov edi, dword [ebp - 0x64]
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x74], esp
push eax
mov dword [ebp - 0x54], eax
call fcn.00403b5b
pop ecx
mov ecx, dword [ebp - 0x74]
add eax, 0x10
mov dword [ecx], eax
call fcn.0040fb03
pop ecx
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x40d8e5
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x50]
push str.enumRegKeys_hive_error_
push eax
call fcn.00409288
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 6
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 7
call fcn.0042f275
push 0x4c0c00
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 8
call fcn.0042f5f2
lea ecx, [ebp - 0x88]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 7
call fcn.0042f451
lea ecx, [ebp - 0x2c]
call fcn.00401056
mov ecx, dword [ebp - 0x50]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x54]
call fcn.00407864
mov byte [ebp - 4], bl
mov edi, dword [ebp - 0x78]
jmp 0x40dc15
push 0x4c1028
mov ecx, esi
call fcn.0042f676
sub esp, 0x18
mov ecx, eax
push esp
call fcn.0042fc5e
lea eax, [ebp - 0x74]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 9
call fcn.00402394
mov eax, dword [ebp - 0x74]
mov byte [ebp - 4], 4
lea ecx, [eax - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x50]
push 0x4c1034
mov esi, ebx
call fcn.00430238
test al, al
je 0x40d94d
mov ecx, dword [ebp - 0x50]
push 0x4c1034
call fcn.0042f676
mov ecx, eax
call fcn.0042fb76
mov esi, eax
mov ecx, 0x20019
cmp esi, 0x20
jne 0x40d95e
mov ecx, 0x20219
jmp 0x40d969
mov eax, 0x20119
cmp esi, 0x40
cmove ecx, eax
mov esi, dword [ebp - 0x6c]
lea eax, [ebp - 0x5c]
push eax
push ecx
push ebx
push esi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40da2b
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0042c341
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x50]
push str.enumRegKeys_RegOpenKeyEx_
push eax
mov byte [ebp - 4], 0xa
call fcn.00409288
add esp, 0xc
mov ecx, dword [ebp - 0x58]
mov byte [ebp - 4], 0xc
lea ecx, [ecx - 0x10]
call fcn.00407864
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xd
call fcn.0042f275
push 0x4c0c00
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xe
call fcn.0042f5f2
lea ecx, [ebp - 0x88]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xd
call fcn.0042f451
lea ecx, [ebp - 0x2c]
call fcn.00401056
mov ecx, dword [ebp - 0x50]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.00407864
lea ecx, [esi - 0x10]
jmp 0x40d8cd
push 0x505ab0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x70], 0x104
call fcn.00408fd9
mov eax, dword [ebp - 0x70]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x60]
call fcn.00406eed
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x70]
push ecx
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x58], eax
cmp eax, 0x103
je 0x40dae3
push 0xffffffffffffffff
lea ecx, [ebp - 0x60]
call fcn.00409a5b
cmp dword [ebp - 0x58], 0
jne 0x40dacb
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x10
call fcn.0042f275
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x11
call fcn.0042fa35
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x10
call fcn.0042f451
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call fcn.00401056
lea ecx, [ebp - 0x60]
call fcn.00404b74
inc dword [ebp - 0x50]
mov eax, 0x104
mov dword [ebp - 0x70], eax
jmp 0x40da49
lea ecx, [ebp - 0x98]
call fcn.0042fe3a
test al, al
je 0x40db33
push str.empty
lea ecx, [ebp - 0x88]
call fcn.0042f2f7
push 0x4c0c00
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x12
call fcn.0042f5f2
lea ecx, [ebp - 0x88]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xf
call fcn.0042f451
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00407864
lea ecx, [esi - 0x10]
call fcn.00407864
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.00407864
jmp 0x40d8dd
cmp dword [ebp - 0x5c], 0
push 8
pop esi
je 0x40dc2a
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x5c], ebx
lea ecx, [ebp - 0x4c]
call fcn.00430a82
push 0x505ab0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x17
call fcn.00408fd9
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x18
call fcn.00432bf9
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x19
jb 0x40dc66
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401027
lea eax, [ebp - 0x58]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x1a
call fcn.00402394
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00407864
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x18
call fcn.00401056
mov word [edi], si
mov esi, dword [ebp - 0x54]
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x40dcba
call fcn.00409bd9
lea ecx, [esi - 0x10]
mov dword [edi + 8], eax
call fcn.00407864
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.004090f2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.0042f451
call fcn.0048f3e1
ret