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

Disassembly:
push 0xffffffffffffffff
push 0x474fb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x844
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x497d6c
lea ecx, [esp + 0x34]
call fcn.00465900
push 0x497cf4
lea ecx, [esp + 0x38]
mov dword [esp + 0x860], 0
call fcn.00465900
push 0x497cb4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x860], 1
call fcn.00465900
push 0x497c68
lea ecx, [esp + 0x40]
mov byte [esp + 0x860], 2
call fcn.00465900
push 0x497c0c
lea ecx, [esp + 0x44]
mov byte [esp + 0x860], 3
call fcn.00465900
lea ebx, [esp + 0x30]
mov dword [esp + 0x28], 5
mov eax, dword [0x49aec0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
lea ecx, [esp + 0x24]
push ecx
push 8
mov eax, dword [eax - 8]
push 0
push eax
mov ecx, ebx
mov byte [esp + 0x86c], 6
call fcn.00465cc2
push eax
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40defe
mov dword [esp + 0x20], eax
lea edx, [esp + 0x4c]
lea eax, [esp + 0x44]
push edx
mov edx, dword [esp + 0x24]
push 0
push 0
push 0
lea ecx, [esp + 0x464]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov edi, 0x400
push edx
push eax
mov dword [esp + 0x64], edi
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40def3
push ebx
lea ecx, [esp + 0x18]
call fcn.004659cb
push 0x497b80
lea ecx, [esp + 0x18]
call fcn.00465c6e
mov ecx, dword [0x49aec0]
lea edx, [esp + 0x454]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00465a1b
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x860], 7
call fcn.00465caa
lea ecx, [esp + 0x1c]
mov byte [esp + 0x85c], 6
call fcn.00465892
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 1
push 0
push edx
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40deea
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x54]
push eax
push ecx
push 0
push 0
mov dword [esp + 0x3c], edi
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
push 0x497c00
push edx
call edi
test eax, eax
je 0x40de17
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x54]
push eax
push ecx
push 0
push 0
push 0x497bf4
push edx
call edi
test eax, eax
jne 0x40deea
lea eax, [esp + 0x54]
lea ecx, [esp + 0x10]
push eax
call fcn.00465a42
jmp 0x40de25
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x14]
call fcn.00465a1b
mov eax, dword [esi + 8]
test eax, eax
je 0x40dec7
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov eax, 0x7a44c6b
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x40dec7
xor edi, edi
xor ebp, ebp
mov eax, dword [esi + 8]
test eax, eax
je 0x40de8e
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov eax, 0x7a44c6b
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edi, edx
jae 0x40de8e
mov eax, dword [esi + 8]
lea edx, [eax + ebp]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00441a0b
add esp, 8
test eax, eax
je 0x40de8e
inc edi
add ebp, 0x10c
jmp 0x40de4c
mov eax, dword [esi + 8]
test eax, eax
jne 0x40de99
xor edx, edx
jmp 0x40deaf
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov eax, 0x7a44c6b
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edi, edx
je 0x40dec7
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
inc dword [esp + 0x20]
jmp 0x40dd09
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
call fcn.00465607
mov ecx, esi
call fcn.0040d8d0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
inc dword [esp + 0x20]
jmp 0x40dd09
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x85c], 5
call fcn.00465892
lea ecx, [esp + 0x14]
mov byte [esp + 0x85c], 4
call fcn.00465892
mov eax, dword [esp + 0x28]
add ebx, 4
dec eax
mov dword [esp + 0x28], eax
jne 0x40dcc6
lea ecx, [esp + 0x40]
mov byte [esp + 0x85c], 3
call fcn.00465892
lea ecx, [esp + 0x3c]
mov byte [esp + 0x85c], 2
call fcn.00465892
lea ecx, [esp + 0x38]
mov byte [esp + 0x85c], 1
call fcn.00465892
lea ecx, [esp + 0x34]
mov byte [esp + 0x85c], 0
call fcn.00465892
lea ecx, [esp + 0x30]
mov dword [esp + 0x85c], 0xffffffff
call fcn.00465892
mov ecx, dword [esp + 0x854]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x850
ret