Function at 0x45fd1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4600e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
cmp dword [ebp - 8], 0
sete byte [ebp - 0x1c]
cmp byte [ebp - 0x1c], 0
jne 0x45fd64
mov eax, dword [ebp - 8]
mov edx, dword [0x45f7f4]
call fcn.0040598c
cmp dword [ebp - 4], 0
sete byte [ebp - 0x1d]
cmp byte [ebp - 0x1d], 0
jne 0x45fd80
mov eax, dword [ebp - 4]
mov edx, dword [0x45f840]
call fcn.0040598c
movzx eax, byte [ebp - 0x1c]
and al, byte [ebp - 0x1d]
jne 0x4600c4
xor eax, eax
mov dword [ebp - 0x24], eax
xor edx, edx
push ebp
push 0x4600bd
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x10], 0x10000
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00402e84
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4600fc
push 0x80000004
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
jne 0x45fde4
mov edx, dword [ebp - 0x10]
add edx, edx
mov dword [ebp - 0x10], edx
cmp eax, 0xea
je 0x45fda7
test eax, eax
je 0x45fdf9
call fcn.00404380
jmp 0x4600c4
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 0x18]
add esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
dec eax
test eax, eax
jl 0x460010
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 4], 0
je 0x45fe24
cmp dword [esi + 0xc], 0xe6
je 0x45fe28
xor eax, eax
jmp 0x45fe2a
mov al, 1
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
jne 0x45fe42
cmp dword [ebp - 8], 0
je 0x45fe42
cmp dword [esi + 0xc], 0xe8
je 0x45fe46
xor eax, eax
jmp 0x45fe48
mov al, 1
mov byte [ebp - 0x1a], al
movzx eax, byte [ebp - 0x19]
or al, byte [ebp - 0x1a]
je 0x460001
mov edi, dword [esi + 8]
add edi, esi
mov eax, dword [esi + 0x20]
dec eax
test eax, eax
jl 0x45ffe4
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
cmp dword [edi + 4], 0x310
sete byte [ebp - 0x1b]
cmp byte [ebp - 0x1b], 0
jne 0x45fe8e
cmp dword [edi + 4], 0x324
je 0x45fe92
xor eax, eax
jmp 0x45fe94
mov al, 1
or al, byte [ebp - 0x1b]
je 0x45ffd5
mov ebx, dword [esi + 4]
add ebx, esi
cmp byte [ebp - 0x19], 0
je 0x45fec5
mov eax, dword [esi + 0x28]
dec eax
push eax
mov eax, dword [ebp - 4]
mov ecx, 1
mov edx, dword [0x45f840]
call fcn.00405980
add esp, 4
jmp 0x45fee0
mov eax, dword [esi + 0x28]
dec eax
push eax
mov eax, dword [ebp - 8]
mov ecx, 1
mov edx, dword [0x45f7f4]
call fcn.00405980
add esp, 4
mov eax, dword [esi + 0x28]
sub eax, 2
test eax, eax
jl 0x45ffd5
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebx]
add eax, ebx
add eax, dword [edi + 0x24]
mov eax, dword [eax]
cmp byte [ebp - 0x19], 0
je 0x45ff9c
mov edx, dword [ebp - 0x18]
add edx, edx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [ecx + edx*8], eax
test eax, eax
je 0x45ff82
lea eax, [ebp - 0x34]
mov edx, dword [ebx + 0x10]
add edx, ebx
call fcn.00405180
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
add eax, eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
lea eax, [ecx + eax*8 + 4]
call fcn.00404b14
mov eax, dword [ebp - 0x18]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 4]
mov edx, 0x46010c
call fcn.00404cb4
je 0x45ffc1
mov eax, dword [ebp - 0x18]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov edx, dword [edx + eax*8 + 4]
mov eax, dword [ebp - 0x18]
add eax, eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
lea eax, [ecx + eax*8 + 4]
mov ecx, 0x46011c
call fcn.00404ba4
jmp 0x45ffc1
mov eax, dword [ebp - 0x18]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx]
lea eax, [edx + eax*8 + 4]
mov edx, 0x46012c
call fcn.004048e0
jmp 0x45ffc1
cmp byte [ebp - 0x1b], 0
je 0x45ffb2
mov edx, dword [ebp - 0x18]
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [ecx + edx*4], eax
jmp 0x45ffc1
mov edx, dword [ebp - 0x18]
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [ecx + edx*4 + 4], eax
mov eax, dword [ebx]
add eax, ebx
mov ebx, dword [eax]
add ebx, eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x30]
jne 0x45fef9
add edi, 0x28
inc dword [ebp - 0x14]
dec dword [ebp - 0x2c]
jne 0x45fe74
movzx eax, byte [ebp - 0x1c]
or al, byte [ebp - 0x1a]
mov byte [ebp - 0x1c], al
movzx eax, byte [ebp - 0x1d]
or al, byte [ebp - 0x19]
mov byte [ebp - 0x1d], al
movzx eax, byte [ebp - 0x1c]
and al, byte [ebp - 0x1d]
jne 0x460010
mov eax, dword [esi]
add eax, esi
mov esi, eax
dec dword [ebp - 0x28]
jne 0x45fe15
cmp dword [ebp - 4], 0
je 0x46001e
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x460030
cmp dword [ebp - 8], 0
je 0x46002c
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x460030
xor eax, eax
jmp 0x460032
mov al, 1
mov byte [ebp - 0xa], al
cmp dword [ebp - 8], 0
setne al
and al, byte [ebp - 9]
je 0x4600a7
cmp byte [ebp - 9], 0
je 0x4600a7
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004057cc
test eax, eax
jl 0x4600a7
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x10]
lea ebx, [ebx + ebx*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x46009f
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [eax + ebx*4 + 4]
mov eax, esi
xor ecx, ecx
call fcn.004607a0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea eax, [eax + ebx*4 + 8]
mov ecx, dword [0x45f7b0]
call fcn.004059c8
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x460060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4600c4
mov eax, dword [ebp - 0x24]
call fcn.00402e6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4600ef
lea eax, [ebp - 0x38]
mov edx, dword [0x45f7b0]
call fcn.0040598c
lea eax, [ebp - 0x34]
call fcn.0040506c
ret