Function at 0x41ee40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f62f7
mov eax, dword fs:[0]
push eax
sub esp, 0x544
mov eax, dword [0x542488]
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 - 0x540], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x544], edi
mov dword [ebp - 0x544], ebx
cmp dword [eax + 0x10], 0
je 0x41f0d3
cmp dword [esi + 0x10], 0
je 0x41f0d3
cmp dword [eax + 0x14], 8
jb 0x41eeab
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x53c]
call fcn.0041be30
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x41eec6
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x538]
call fcn.0041be30
mov dword [ebp - 0x550], 0
mov dword [ebp - 0x54c], 0
mov dword [ebp - 0x548], 0
lea eax, [ebp - 0x534]
mov byte [ebp - 4], 2
push eax
push 0x20019
push 0
push dword [ebp - 0x53c]
mov dword [ebp - 0x534], 0
push dword [ebp - 0x540]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f083
mov ebx, dword [ebp - 0x534]
push 0x401
push eax
mov dword [ebp - 0x54c], eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x550], ebx
call fcn.004b8860
add esp, 0xc
mov dword [ebp - 0x534], 0x400
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x540]
push eax
push 0
push dword [ebp - 0x538]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x41efbc
mov eax, dword [ebp - 0x540]
cmp eax, 1
je 0x41ef98
cmp eax, 2
je 0x41ef98
mov esi, 0xd
jmp 0x41efbc
mov eax, dword [ebp - 0x534]
test eax, eax
je 0x41efb3
cmp byte [ebp + eax - 0x415], 0
je 0x41efba
mov esi, 0xd
jmp 0x41efbc
mov byte [ebp - 0x414], 0
xor esi, esi
lea eax, [ebp - 0x52c]
mov dword [ebp - 0x530], eax
lea ecx, [ebp - 0x530]
push 3
lea eax, [ebp - 0x414]
push eax
call fcn.0041cbd0
push dword [ebp - 0x530]
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 3
call fcn.00402260
mov eax, dword [ebp - 0x530]
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 5
cmp eax, ecx
je 0x41f00e
push eax
call fcn.004c6d10
add esp, 4
test esi, esi
lea eax, [ebp - 0x42c]
mov ecx, edi
cmovne eax, dword [ebp - 0x544]
push eax
call fcn.00402970
lea ecx, [ebp - 0x42c]
call fcn.00402400
test ebx, ebx
je 0x41f03b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x538]
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 0x41f05f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x53c]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x41f0db
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x41f0db
push ebx
mov ecx, edi
call fcn.00402970
mov edx, dword [ebp - 0x538]
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 0x41f0af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x53c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41f0db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41f0db
push ebx
mov ecx, edi
call fcn.00402970
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.004b5e78
mov esp, ebp
pop ebp
ret