Function at 0x51218c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1b
push 0
push 0
dec ecx
jne 0x512195
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00405bbc
xor eax, eax
push ebp
push 0x51285b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov ecx, 0x20019
mov dl, 1
mov eax, dword [0x42c3b0]
call fcn.0042c560
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.0042c5f8
mov dl, 1
mov eax, dword [0x41af60]
call fcn.004047b0
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x41af60]
call fcn.004047b0
mov dword [ebp - 0x20], eax
mov edx, 0x512878
mov eax, ebx
call fcn.0042c784
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.0042cb34
mov eax, ebx
call fcn.0042c5c8
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5124ee
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x5128a4
call fcn.00405a54
mov edx, dword [ebp - 0x3c]
mov eax, ebx
call fcn.0042c784
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.0042cb34
mov eax, ebx
call fcn.0042c5c8
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5124d6
inc eax
mov dword [ebp - 0x34], eax
xor esi, esi
push 0x5128a4
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x48]
push 0x5128d0
lea ecx, [ebp - 0x4c]
mov edx, esi
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x4c]
push 0x5128dc
lea eax, [ebp - 0x44]
mov edx, 5
call fcn.00405ad0
mov edx, dword [ebp - 0x44]
mov eax, ebx
call fcn.0042cfa0
test al, al
je 0x5124cc
push 0x5128a4
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x54]
push 0x5128d0
lea ecx, [ebp - 0x58]
mov edx, esi
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x58]
push 0x5128dc
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.00405ad0
mov edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.0042c784
mov edx, 0x5128f8
mov eax, ebx
call fcn.0042cef8
test al, al
je 0x5123c5
mov edi, dword [ebp - 4]
test edi, edi
je 0x512341
sub edi, 4
mov edi, dword [edi]
lea ecx, [ebp - 0x5c]
mov edx, 0x5128f8
mov eax, ebx
call fcn.0042ccfc
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x51236d
mov eax, dword [ebp - 0x38]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x68]
mov edx, edi
sub edx, 4
mov eax, dword [ebp - 4]
call fcn.00446354
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.0040a494
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
mov edx, 0x5128f8
mov eax, ebx
call fcn.0042ccfc
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x70]
mov edx, dword [ebp - 0x38]
sub edx, 4
call fcn.00446354
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.0040a494
mov edx, dword [ebp - 0x6c]
pop eax
call fcn.00405b64
sete al
jmp 0x5123fb
lea ecx, [ebp - 0x7c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
call fcn.0040a494
mov eax, dword [ebp - 0x78]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
call fcn.0040a494
mov edx, dword [ebp - 0x80]
pop eax
call fcn.00405d18
test eax, eax
setg al
test al, al
je 0x5124c5
mov eax, ebx
call fcn.0042c5c8
push 0x5128a4
lea ecx, [ebp - 0x88]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x88]
push 0x5128d0
lea ecx, [ebp - 0x8c]
mov edx, esi
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x8c]
lea eax, [ebp - 0x84]
mov edx, 4
call fcn.00405ad0
mov edx, dword [ebp - 0x84]
mov eax, ebx
call fcn.0042c784
lea ecx, [ebp - 0x94]
mov edx, 0x512910
mov eax, ebx
call fcn.0042ccfc
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x90]
call fcn.0040a494
mov eax, dword [ebp - 0x90]
push eax
lea edx, [ebp - 0x98]
mov eax, 0x512920
call fcn.0040a494
mov edx, dword [ebp - 0x98]
pop eax
call fcn.00405b64
jne 0x5124be
lea ecx, [ebp - 8]
mov edx, 0x512934
mov eax, ebx
call fcn.0042ccfc
mov eax, ebx
call fcn.0042c5c8
jmp 0x5124d6
mov eax, ebx
call fcn.0042c5c8
mov eax, ebx
call fcn.0042c5c8
inc esi
dec dword [ebp - 0x34]
jne 0x51228b
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp esi, eax
jl 0x5124ee
inc dword [ebp - 0x28]
dec dword [ebp - 0x30]
jne 0x51223b
mov dl, 1
mov eax, dword [0x41af60]
call fcn.004047b0
mov dword [ebp - 0x1c], eax
mov dl, 1
mov eax, dword [0x41af60]
call fcn.004047b0
mov dword [ebp - 0x24], eax
mov edx, 0x512948
mov eax, ebx
call fcn.0042c784
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.0042cb34
mov eax, ebx
call fcn.0042c5c8
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5127fc
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0xa0]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax]
call dword [esi + 0xc]
mov ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x9c]
mov edx, 0x512978
call fcn.00405a54
mov edx, dword [ebp - 0x9c]
mov eax, ebx
call fcn.0042c784
mov edx, dword [ebp - 0x24]
mov eax, ebx
call fcn.0042cb34
mov eax, ebx
call fcn.0042c5c8
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5127e4
inc eax
mov dword [ebp - 0x34], eax
xor esi, esi
push 0x512978
lea ecx, [ebp - 0xa8]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0xa8]
push 0x5128d0
lea ecx, [ebp - 0xac]
mov edx, esi
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0xac]
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.00405ad0
mov edx, dword [ebp - 0xa4]
mov eax, ebx
call fcn.0042c784
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 8]
call fcn.0040a494
mov eax, dword [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xb8]
mov edx, 0x512934
mov eax, ebx
call fcn.0042ccfc
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.0040a494
mov edx, dword [ebp - 0xb4]
pop eax
call fcn.00405b64
jne 0x5127d3
mov edx, 0x5129a8
mov eax, ebx
call fcn.0042cc74
cmp al, 1
jne 0x512671
lea ecx, [ebp - 0xbc]
mov edx, 0x5129a8
mov eax, ebx
call fcn.0042ccfc
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0x10]
call fcn.00405790
jmp 0x5126c0
mov edx, 0x5129a8
mov eax, ebx
call fcn.0042cc4c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
inc eax
call fcn.00402f38
mov edi, eax
mov edx, dword [ebp - 0x2c]
inc edx
mov eax, edi
xor ecx, ecx
call fcn.00403b7c
lea eax, [ebp - 0x2c]
push eax
push edi
push 0
push 0
push 0x5129b4
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0x10]
mov edx, edi
call fcn.00405934
mov eax, edi
call fcn.00402f54
lea ecx, [ebp - 0xc0]
mov edx, 0x5129c8
mov eax, ebx
call fcn.0042ccfc
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xc]
add eax, 0x3dc
call fcn.00405790
mov eax, ebx
call fcn.0042c5c8
push 0x512978
lea ecx, [ebp - 0xc8]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0xc8]
push 0x5128d0
lea ecx, [ebp - 0xcc]
mov edx, esi
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0xcc]
push 0x5128dc
lea eax, [ebp - 0xc4]
mov edx, 5
call fcn.00405ad0
mov edx, dword [ebp - 0xc4]
mov eax, ebx
call fcn.0042cfa0
test al, al
je 0x5127d3
push 0x512978
lea ecx, [ebp - 0xd4]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0xd4]
push 0x5128d0
lea ecx, [ebp - 0xd8]
mov edx, esi
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0xd8]
push 0x5128dc
lea eax, [ebp - 0xd0]
mov edx, 5
call fcn.00405ad0
mov edx, dword [ebp - 0xd0]
mov eax, ebx
call fcn.0042c784
lea ecx, [ebp - 0xdc]
mov edx, 0x5129dc
mov eax, ebx
call fcn.0042ccfc
mov edx, dword [ebp - 0xdc]
mov eax, dword [ebp + 8]
call fcn.00405790
mov eax, ebx
call fcn.0042c5c8
mov byte [ebp - 0x11], 1
jmp 0x5127e4
mov eax, ebx
call fcn.0042c5c8
inc esi
dec dword [ebp - 0x34]
jne 0x5125a1
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp esi, eax
jl 0x5127fc
inc dword [ebp - 0x28]
dec dword [ebp - 0x30]
jne 0x512545
mov eax, ebx
call fcn.004047e0
lea eax, [ebp - 0x18]
call fcn.00411948
lea eax, [ebp - 0x20]
call fcn.00411948
lea eax, [ebp - 0x1c]
call fcn.00411948
lea eax, [ebp - 0x24]
call fcn.00411948
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512862
lea eax, [ebp - 0xdc]
mov edx, 0x1f
call fcn.00405760
lea eax, [ebp - 0x5c]
mov edx, 9
call fcn.00405760
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405760
ret