Function at 0x418d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0db5
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x539c80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x184], edi
mov dword [ebp - 4], 1
mov eax, dword [0x5396d8]
xor ebx, ebx
cmp byte [0x53ed94], bl
mov ecx, 0x5396d8
sete bl
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x188], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0
mov byte [ebp - 4], 6
mov eax, dword [0x5396d8]
mov ecx, 0x5396d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x16c], eax
mov byte [ebp - 4], 7
mov eax, 0x516f54
test eax, 0xffff0000
jne 0x418e4d
movzx esi, ax
mov ecx, esi
call fcn.00401b90
test eax, eax
je 0x418e5d
push esi
push eax
lea ecx, [ebp - 0x16c]
call fcn.00402860
jmp 0x418e5d
push 0x516f54
lea ecx, [ebp - 0x16c]
call fcn.00403570
mov byte [ebp - 4], 8
lea eax, [ebp - 0x16c]
push eax
lea edx, [ebp - 0x188]
lea ecx, [ebp - 0x180]
call fcn.0040f0c0
mov byte [ebp - 4], 9
push 0x53f000
mov edx, eax
lea ecx, [ebp - 0x194]
call fcn.0040f0c0
mov byte [ebp - 4], 0xa
push 0x516f50
mov edx, eax
lea ecx, [ebp - 0x190]
call fcn.00417c70
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x170]
call fcn.0040f0c0
add esp, 0x10
mov byte [ebp - 4], 0xc
push 0x20019
push dword [eax]
lea ecx, [ebp - 0x17c]
push ebx
call fcn.00418a70
test eax, eax
setne byte [ebp - 0x165]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x170]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x418f03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x190]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418f26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x194]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418f49
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x180]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418f6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x16c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418f8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x165], 0
jne 0x4190e3
mov ecx, dword [0x53ed90]
mov esi, 0x18
lea edx, [ecx + 1]
lea eax, [ecx + 2]
imul eax, edx
imul eax, ecx
cdq
idiv esi
mov dword [ebp - 0x18c], 0
cmp edx, 7
jne 0x419058
xor edx, edx
mov dword [ebp - 0x16c], edx
lea eax, [ebp - 0x164]
jmp 0x418fe0
xor ebx, ebx
mov dword [ebp - 0x170], eax
lea esi, [edx + 1]
mov eax, ecx
cdq
idiv esi
mov eax, ecx
sub eax, dword [ebp - 0x16c]
lea edi, [ebx + 1]
mov esi, edx
imul esi, eax
mov eax, ecx
cdq
idiv edi
add esi, eax
sub esi, ebx
push esi
push 0x516f60
call fcn.004acf3c
mov eax, dword [ebp - 0x170]
mov edx, dword [ebp - 0x16c]
mov ebx, edi
add eax, 4
add esp, 8
mov dword [ebp - 0x170], eax
cmp ebx, 5
jge 0x41903b
mov ecx, dword [0x53ed90]
jmp 0x418fe8
inc edx
mov dword [ebp - 0x16c], edx
cmp edx, 0x11
jge 0x41904f
mov ecx, dword [0x53ed90]
jmp 0x418fe0
mov edi, dword [ebp - 0x184]
or ebx, 0xffffffff
mov esi, dword [ebp - 0x17c]
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x180]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x184], 4
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4190c4
cmp dword [ebp - 0x180], 4
jne 0x4190c4
test esi, esi
je 0x4190a9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x17c], esi
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x178], 0
mov dword [edi], eax
mov byte [ebp - 0x165], 1
jmp 0x4190f0
test esi, esi
je 0x4190d7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x178], 0
jmp 0x4190e9
mov esi, dword [ebp - 0x17c]
mov byte [ebp - 0x165], 0
mov byte [ebp - 4], 3
test esi, esi
je 0x419109
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x188]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419136
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419156
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x419177
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x165]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac57a
mov esp, ebp
pop ebp
ret