Function at 0x41a0f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3e76
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x540c80]
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 dword [ebp - 0x83c], ecx
mov dword [ebp - 4], 0
mov eax, dword [0x5406d8]
xor ebx, ebx
cmp byte [0x545d94], bl
mov ecx, 0x5406d8
sete bl
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x830], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x545d90]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0x12
idiv ecx
mov eax, dword [0x545ff8]
mov ecx, 0x41e5b7e4
cmp edx, 0x10
cmove eax, ecx
mov dword [0x545ff8], eax
mov eax, dword [0x5406d8]
mov ecx, 0x5406d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
mov byte [ebp - 4], 6
mov eax, 0x51d480
test eax, 0xffff0000
jne 0x41a1e6
movzx esi, ax
mov ecx, esi
call fcn.00401b90
test eax, eax
je 0x41a1f6
push esi
push eax
lea ecx, [ebp - 0x818]
call fcn.00402a00
jmp 0x41a1f6
push 0x51d480
lea ecx, [ebp - 0x818]
call fcn.00403700
mov byte [ebp - 4], 7
lea eax, [ebp - 0x818]
push eax
lea edx, [ebp - 0x830]
lea ecx, [ebp - 0x840]
call fcn.0040f160
mov byte [ebp - 4], 8
push 0x546034
mov edx, eax
lea ecx, [ebp - 0x838]
call fcn.0040f160
mov byte [ebp - 4], 9
push 0x51d47c
mov edx, eax
lea ecx, [ebp - 0x834]
call fcn.00418660
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x81c]
call fcn.0040f160
add esp, 0x10
mov byte [ebp - 4], 0xb
push 1
push dword [eax]
lea ecx, [ebp - 0x828]
push ebx
call fcn.00419460
test eax, eax
setne bl
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x81c]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41a295
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x834]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a2b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x838]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a2db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x840]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a2fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x818]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a321
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x41a337
mov ebx, dword [ebp - 0x828]
mov byte [ebp - 0x811], 0
jmp 0x41a500
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
mov dword [ebp - 0x82c], 0x400
call fcn.004b4a90
mov ebx, dword [ebp - 0x828]
add esp, 0xc
xor edi, edi
call fcn.00419770
test al, al
jne 0x41a3ae
mov esi, dword [0x545d90]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x7b]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004aed89
push eax
call fcn.004afe1b
add esp, 8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
inc edi
mov dword [ebp - 0x81c], edi
test esi, esi
je 0x41a3e5
cmp esi, 0x103
jne 0x41a497
mov eax, dword [0x5406d8]
mov ecx, 0x5406d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x810]
test eax, 0xffff0000
jne 0x41a589
movzx edi, ax
mov ecx, edi
call fcn.00401b90
test eax, eax
je 0x41a42b
push edi
push eax
lea ecx, [ebp - 0x818]
call fcn.00402a00
mov edi, dword [ebp - 0x81c]
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x818]
cmp dword [eax - 0xc], 0
je 0x41a453
mov ecx, dword [ebp - 0x83c]
lea eax, [ebp - 0x818]
push eax
call fcn.0041aa70
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
mov dword [ebp - 0x82c], 0x400
call fcn.004b4a90
add esp, 0xc
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x818]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a497
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x41a367
test ebx, ebx
je 0x41a4b2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x828], ebx
mov ecx, dword [0x545d90]
mov dword [ebp - 0x824], 0
lea edx, [ecx + 2]
lea eax, [ecx + 1]
imul edx, eax
imul edx, ecx
and edx, 0x8000000f
jns 0x41a4db
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 0xb
jne 0x41a4f6
call fcn.004aff67
mov ecx, dword [0x545d90]
cmp ecx, eax
jne 0x41a4f6
dec ecx
mov dword [0x545d90], ecx
mov byte [ebp - 0x811], 1
or esi, 0xffffffff
mov byte [ebp - 4], 2
test ebx, ebx
je 0x41a519
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x830]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a546
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x41a567
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x811]
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.004af5ba
mov esp, ebp
pop ebp
ret
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a590
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x818]
call fcn.00402790
jmp 0x41a431