Function at 0x46d470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5112a8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x568e30]
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.004012d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004012d0
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.00401300
mov dword [ebp - 0x7c], eax
call fcn.0046cfc0
add esp, 0x28
mov byte [ebp - 0x7d], al
movzx ecx, byte [ebp - 0x7d]
test ecx, ecx
jne 0x46d52f
mov byte [ebp - 0x69], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401340
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401340
mov al, byte [ebp - 0x69]
jmp 0x46d66f
cmp dword [ebp - 0x54], reloc.WS2_32.dll_accept
jne 0x46d552
lea edx, [ebp - 0x54]
push edx
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x46d552
mov dword [ebp - 0x54], reloc.WS2_32.dll_accept
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x4c]
call fcn.00401850
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46d624
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.00401850
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46d61a
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp + 0x24]
jne 0x46d61a
mov eax, dword [ebp - 0x60]
push eax
call fcn.004809a6
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.00401850
push eax
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46d608
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 0x46d61a
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.004ba1cb
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 0x46d63f
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.00401340
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401340
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.004b8dd5
mov esp, ebp
pop ebp
ret