Function at 0x4da950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x60
push 0xffffffffffffffff
push 0x52df9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov dword [ebp + 0x5c], ecx
mov dword [ebp + 0x58], 0
mov ecx, dword [ebp + 0x5c]
call fcn.004dc190
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
push 0
push 0
lea ecx, [ebp + 0x18]
call fcn.004072e0
mov dword [ebp - 4], 0
lea eax, [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x6c]
push ecx
call fcn.00477ca0
add esp, 8
cmp dword [ebp + 0x2c], 8
jb 0x4da9c7
mov edx, dword [ebp]
mov dword [ebp + 0x48], edx
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x48], eax
jmp 0x4da9cd
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x48], ecx
lea edx, [ebp + 0x54]
push edx
push 0
lea eax, [ebp + 0x44]
push eax
push 0
mov ecx, dword [ebp + 0x48]
push ecx
mov edx, dword [ebp + 0x5c]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4da9fa
cmp dword [ebp + 0x44], 1
je 0x4daa43
cmp dword [ebp + 0x44], 2
je 0x4daa43
mov ecx, dword [ebp + 0x6c]
push ecx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp + 0x5c]
call fcn.004dc760
mov dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x30], eax
mov byte [ebp - 4], 1
push 0
mov ecx, dword [ebp + 0x30]
push ecx
lea ecx, [ebp - 0x80]
call fcn.00453f40
push 0x563ef0
lea edx, [ebp - 0x80]
push edx
call fcn.004be2db
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.00407040
cmp dword [ebp + 0x54], 0
jbe 0x4dab9f
mov eax, dword [ebp + 0x54]
shr eax, 1
mov dword [ebp + 0x4c], eax
mov ecx, dword [ebp + 0x4c]
add ecx, 1
push ecx
lea ecx, [ebp + 8]
call fcn.0046d3b0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x10]
mov dword [ebp + 0x40], edx
cmp dword [ebp + 0x2c], 8
jb 0x4daa82
mov eax, dword [ebp + 4]
mov dword [ebp + 0x50], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x50], ecx
jmp 0x4daa88
lea edx, [ebp + 0x18]
mov dword [ebp + 0x50], edx
lea eax, [ebp + 0x54]
push eax
mov ecx, dword [ebp + 0x40]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x50]
push edx
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp + 0x4c]
cmp edx, dword [ebp + 0xc]
jb 0x4daac4
push 0x132
push str...FoundationincludePoco_Buffer.h
push str.index____used
call fcn.00465360
add esp, 0xc
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edx, dword [ebp + 0x4c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x3c], eax
mov ecx, dword [ebp + 0x3c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00406cf0
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0
push 0
lea ecx, [ebp - 0x24]
call fcn.00407040
mov byte [ebp - 4], 4
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00478010
add esp, 8
mov ecx, dword [ebp + 0x68]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 0x68]
mov dword [edx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 0x68]
call fcn.00407040
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x68]
call fcn.00416490
mov ecx, dword [ebp + 0x58]
or ecx, 1
mov dword [ebp + 0x58], ecx
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.00407040
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004072e0
mov byte [ebp - 4], 0
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x4dab87
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x38], eax
mov ecx, dword [ebp + 0x38]
push ecx
call fcn.004ba0bc
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.004072e0
mov eax, dword [ebp + 0x68]
jmp 0x4dabde
mov edx, dword [ebp + 0x68]
mov dword [edx + 0x10], 0
mov eax, dword [ebp + 0x68]
mov dword [eax + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 0x68]
call fcn.00407040
mov ecx, dword [ebp + 0x58]
or ecx, 1
mov dword [ebp + 0x58], ecx
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.004072e0
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x60
mov esp, ebp
pop ebp
ret 8