Function at 0x41c5c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474b18
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4a86cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x4c]
call fcn.004049e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004049e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x54]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x68], esp
lea eax, [ebp + 8]
push eax
call fcn.00404a10
mov dword [ebp - 0x7c], eax
call fcn.0041c110
add esp, 0x28
mov byte [ebp - 0x7d], al
movzx ecx, byte [ebp - 0x7d]
test ecx, ecx
jne 0x41c67f
mov byte [ebp - 0x69], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00404a50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404a50
mov al, byte [ebp - 0x69]
jmp 0x41c7bf
cmp dword [ebp - 0x54], 0x80000001
jne 0x41c6a2
lea edx, [ebp - 0x54]
push edx
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x41c6a2
mov dword [ebp - 0x54], SysStringLen
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x4c]
call fcn.00404e40
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c774
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
lea edx, [ebp - 0x60]
push edx
push 0
lea eax, [ebp - 0x5c]
push eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.00404e40
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c76a
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp + 0x24]
jne 0x41c76a
mov eax, dword [ebp - 0x60]
push eax
call fcn.0042072a
add esp, 4
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x64], ecx
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 0
lea ecx, [ebp - 0x2c]
call fcn.00404e40
push eax
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c758
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x64]
mov dword [eax], ecx
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp - 0x60]
mov dword [edx], eax
mov byte [ebp - 0x55], 1
jmp 0x41c76a
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.00421fec
add esp, 4
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x54]
and ecx, 0x80000000
cmp ecx, 0x80000000
je 0x41c78f
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x55]
mov byte [ebp - 0x75], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00404a50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404a50
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421737
mov esp, ebp
pop ebp
ret