Function at 0x4818d8
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 0x481c9f
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 0x481920
mov eax, dword [ebp - 8]
mov edx, dword [0x4813bc]
call fcn.004058d4
cmp dword [ebp - 4], 0
sete byte [ebp - 0x1d]
cmp byte [ebp - 0x1d], 0
jne 0x48193c
mov eax, dword [ebp - 4]
mov edx, dword [0x481408]
call fcn.004058d4
mov al, byte [ebp - 0x1c]
and al, byte [ebp - 0x1d]
jne 0x481c7b
xor eax, eax
mov dword [ebp - 0x24], eax
xor edx, edx
push ebp
push 0x481c74
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.004027f0
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 0x481cb0
push 0x80000004
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
jne 0x48199f
mov edx, dword [ebp - 0x10]
add edx, edx
mov dword [ebp - 0x10], edx
cmp eax, 0xea
je 0x481962
test eax, eax
je 0x4819b4
call fcn.00403e9c
jmp 0x481c7b
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 0x481bc7
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 4], 0
je 0x4819df
cmp dword [esi + 0xc], 0xe6
je 0x4819e3
xor eax, eax
jmp 0x4819e5
mov al, 1
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
jne 0x4819fd
cmp dword [ebp - 8], 0
je 0x4819fd
cmp dword [esi + 0xc], 0xe8
je 0x481a01
xor eax, eax
jmp 0x481a03
mov al, 1
mov byte [ebp - 0x1a], al
mov al, byte [ebp - 0x19]
or al, byte [ebp - 0x1a]
je 0x481bb8
mov edi, dword [esi + 8]
add edi, esi
mov eax, dword [esi + 0x20]
dec eax
test eax, eax
jl 0x481b9e
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 0x481a48
cmp dword [edi + 4], 0x324
je 0x481a4c
xor eax, eax
jmp 0x481a4e
mov al, 1
or al, byte [ebp - 0x1b]
je 0x481b8f
mov ebx, dword [esi + 4]
add ebx, esi
cmp byte [ebp - 0x19], 0
je 0x481a7f
mov eax, dword [esi + 0x28]
dec eax
push eax
mov eax, dword [ebp - 4]
mov ecx, 1
mov edx, dword [0x481408]
call fcn.004057b4
add esp, 4
jmp 0x481a9a
mov eax, dword [esi + 0x28]
dec eax
push eax
mov eax, dword [ebp - 8]
mov ecx, 1
mov edx, dword [0x4813bc]
call fcn.004057b4
add esp, 4
mov eax, dword [esi + 0x28]
sub eax, 2
test eax, eax
jl 0x481b8f
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 0x481b56
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 0x481b3c
lea eax, [ebp - 0x34]
mov edx, dword [ebx + 0x10]
add edx, ebx
call fcn.00404c54
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.004046c0
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, 0x481cc0
call fcn.00404844
je 0x481b7b
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, 0x481cd0
call fcn.00404744
jmp 0x481b7b
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, 0x481ce0
call fcn.0040448c
jmp 0x481b7b
cmp byte [ebp - 0x1b], 0
je 0x481b6c
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 0x481b7b
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 0x481ab3
add edi, 0x28
inc dword [ebp - 0x14]
dec dword [ebp - 0x2c]
jne 0x481a2e
mov al, byte [ebp - 0x1c]
or al, byte [ebp - 0x1a]
mov byte [ebp - 0x1c], al
mov al, byte [ebp - 0x1d]
or al, byte [ebp - 0x19]
mov byte [ebp - 0x1d], al
mov al, byte [ebp - 0x1c]
and al, byte [ebp - 0x1d]
jne 0x481bc7
mov eax, dword [esi]
add eax, esi
mov esi, eax
dec dword [ebp - 0x28]
jne 0x4819d0
cmp dword [ebp - 4], 0
je 0x481bd5
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x481be7
cmp dword [ebp - 8], 0
je 0x481be3
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x481be7
xor eax, eax
jmp 0x481be9
mov al, 1
mov byte [ebp - 0xa], al
cmp dword [ebp - 8], 0
setne al
and al, byte [ebp - 9]
je 0x481c5e
cmp byte [ebp - 9], 0
je 0x481c5e
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405600
test eax, eax
jl 0x481c5e
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 0x481c56
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.004822ac
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea eax, [eax + ebx*4 + 8]
mov ecx, dword [0x481378]
call fcn.00405910
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x481c17
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481c7b
mov eax, dword [ebp - 0x24]
call fcn.004027d0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481ca6
lea eax, [ebp - 0x38]
mov edx, dword [0x481378]
call fcn.004058d4
lea eax, [ebp - 0x34]
call fcn.00404b44
ret