Function at 0x42f4d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4316da
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x441cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402580
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402d90
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0x14]
push edx
call fcn.00413d8a
add esp, 4
test eax, eax
je 0x42f5a9
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.00402580
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x58]
push edx
push 0x43a4a4
lea eax, [ebp - 0x3c]
push eax
call fcn.004012d0
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401070
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.00402b70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00402b70
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.0042ee90
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x42f5d9
cmp dword [ebp - 0x10], 2
je 0x42f5d9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00402b70
jmp 0x42f761
mov ecx, dword [ebp - 0x50]
call fcn.0042e460
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], 0x20019
mov edx, dword [ebp - 0x50]
cmp dword [edx + 0x14], 0
je 0x42f5ff
mov eax, dword [ebp - 0x30]
or eax, 0x100
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0
lea ecx, [ebp - 0x2c]
call fcn.00402600
push eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x50]
cmp dword [edx + 4], 0
je 0x42f648
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.0042e2f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00402b70
jmp 0x42f761
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push ecx
push 0
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x50]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x50]
cmp dword [eax + 4], 0
je 0x42f681
mov dword [ebp - 0x18], 0
jmp 0x42f6f2
mov ecx, dword [ebp - 0x28]
shr ecx, 1
add ecx, 1
mov dword [ebp - 0x34], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x34]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004063dc
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x50]
cmp dword [edx + 4], 0
je 0x42f6e5
mov dword [ebp - 0x18], 0
jmp 0x42f6f2
xor eax, eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
mov word [edx + ecx*2 - 2], ax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.0042e2f0
cmp dword [ebp - 0x18], 0
jne 0x42f71c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00402b70
jmp 0x42f761
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x44]
call fcn.00402580
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004020d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00402b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00402b70
xor edx, edx
jne 0x42f527
cmp dword [ebp - 0x20], 0
je 0x42f779
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004063d1
add esp, 4
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402d90
mov eax, dword [ebp - 0x4c]
or eax, 1
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402b70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10