Function at 0x41e740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4caadc
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x50e3e0]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x840], edi
mov dword [ebp - 0x840], ebx
cmp dword [eax + 0x10], 0
je 0x41e9a0
cmp dword [esi + 0x10], 0
je 0x41e9a0
cmp dword [eax + 0x14], 8
jb 0x41e7ab
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x838]
call fcn.0041b7f0
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x41e7c6
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x834]
call fcn.0041b7f0
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0
lea eax, [ebp - 0x830]
mov byte [ebp - 4], 2
push eax
push 0x20019
push 0
push dword [ebp - 0x838]
mov dword [ebp - 0x830], 0
push dword [ebp - 0x83c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e950
mov ebx, dword [ebp - 0x830]
push 0x802
push eax
mov dword [ebp - 0x848], eax
lea eax, [ebp - 0x814]
push eax
mov dword [ebp - 0x84c], ebx
call fcn.0048fe50
add esp, 0xc
mov dword [ebp - 0x830], 0x800
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x83c]
push eax
push 0
push dword [ebp - 0x834]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41e8c5
mov eax, dword [ebp - 0x83c]
cmp eax, 1
je 0x41e898
cmp eax, 2
je 0x41e898
mov esi, 0xd
jmp 0x41e8c5
mov eax, dword [ebp - 0x830]
test eax, eax
je 0x41e8ba
test al, 1
jne 0x41e8b3
shr eax, 1
cmp word [ebp + eax*2 - 0x816], 0
je 0x41e8c3
mov esi, 0xd
jmp 0x41e8c5
xor eax, eax
mov word [ebp - 0x814], ax
xor esi, esi
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x82c]
call fcn.004028c0
test esi, esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x82c]
mov ecx, edi
cmovne eax, dword [ebp - 0x840]
push eax
call fcn.00402fd0
lea ecx, [ebp - 0x82c]
call fcn.00402a60
test ebx, ebx
je 0x41e908
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x834]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e92c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x838]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x41e9a8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x41e9a8
push ebx
mov ecx, edi
call fcn.00402fd0
mov edx, dword [ebp - 0x834]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e97c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x838]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41e9a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41e9a8
push ebx
mov ecx, edi
call fcn.00402fd0
mov eax, edi
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.0048d65c
mov esp, ebp
pop ebp
ret