Function at 0x45bfc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404930
xor eax, eax
push ebp
push 0x45c23e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402aec
lea eax, [ebp - 0x1c]
call fcn.00404490
mov dl, 1
mov eax, dword [0x4194a4]
call fcn.0040370c
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x45c0a8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x45c24c
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0x45c27c
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ecx, dword [ebp - 0x2c]
dec ecx
lea eax, [ebp - 0x1c]
xor edx, edx
call fcn.00404580
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x45c27c
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c0c7
mov edx, dword [ebp - 0x1c]
mov eax, 0x45c290
call fcn.00404a84
test eax, eax
jle 0x45c0ef
push ebp
lea eax, [ebp - 0x38]
call fcn.0045bf50
pop ecx
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x14]
call fcn.00404528
jmp 0x45c140
lea eax, [ebp - 0x3c]
call fcn.0045b978
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x45c125
or eax, 0xffffffff
call fcn.00403024
lea ecx, [ebp - 0x14]
mov edx, 8
call fcn.0040883c
jmp 0x45c140
lea ecx, [ebp - 0x40]
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.0041c84c
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x30]
call fcn.0041ca2c
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jle 0x45c1a4
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
call fcn.0041c84c
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x30]
call fcn.0041ca2c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x14]
call fcn.0040488c
jae 0x45c19c
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
call fcn.0041c84c
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x30]
call fcn.0041ca2c
inc dword [ebp - 0x10]
dec dword [ebp - 0x34]
jne 0x45c157
mov eax, dword [ebp - 0x30]
call fcn.0040373c
call fcn.0045ba7c
test eax, eax
jne 0x45c1c4
lea eax, [ebp - 0x18]
mov edx, 0x45c2a0
call fcn.00404528
jmp 0x45c1da
call fcn.0045ba7c
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x18]
mov eax, 8
call fcn.00408878
mov eax, dword [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0x45c2b0
push dword [ebp - 0x14]
push 0x45c2bc
push dword [ebp - 0x18]
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.00404808
mov edx, dword [ebp - 0x50]
mov ecx, 0x45c2c8
mov eax, dword [ebp - 4]
call fcn.0045bc78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c245
lea eax, [ebp - 0x50]
mov edx, 7
call fcn.004044b4
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004044b4
lea eax, [ebp - 8]
call fcn.00404490
ret