Function at 0x40fa90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x447c80
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x44]
test eax, eax
mov edi, dword [esp + 0x40]
mov ebx, 1
mov dword [esp + 0x28], ebx
jle 0x40fb9e
cmp eax, 2
jle 0x40fb8e
cmp eax, 3
jne 0x40fb9e
push ebx
push edi
sub esp, 8
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00401050
sub esp, 8
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x44], 2
call fcn.00401050
mov eax, dword [esi]
add eax, 0x14
mov eax, dword [eax]
mov ecx, esi
mov byte [esp + 0x40], bl
call eax
test eax, eax
je 0x40fc99
push 2
push edi
sub esp, 8
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00401050
sub esp, 8
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x44], 3
call fcn.00401050
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
add eax, 0x14
mov ecx, esi
mov byte [esp + 0x40], bl
call edx
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x28], 0
call fcn.00411520
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0xffffffff
call fcn.00411520
mov eax, esi
jmp 0x40fd17
push eax
call fcn.0040ed80
add esp, 4
mov esi, eax
jmp 0x40fc9d
cmp dword [0x466c08], 0
jne 0x40fbb9
mov dword [0x466c08], ebx
call fcn.0041bd80
mov dword [0x466c04], eax
jmp 0x40fbbe
mov eax, dword [0x466c04]
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x20219
mov esi, eax
mov eax, dword [esp + 0x34]
cmp dword [eax - 4], ebx
mov ebp, 0x2bc
jle 0x40fbed
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x38]
call fcn.00401df0
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
push ecx
push esi
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fcf6
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], ebx
cmp dword [eax - 4], ebx
jle 0x40fc2b
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x40]
call fcn.00401df0
mov eax, dword [esp + 0x3c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x44]
push ecx
push 0
lea edx, [esp + 0x48]
push edx
push 0
push eax
mov eax, dword [esp + 0x28]
push eax
call esi
test eax, eax
jne 0x40fcf6
cmp dword [esp + 0x40], ebx
jne 0x40fcf6
mov eax, dword [esp + 0x44]
test eax, eax
jbe 0x40fcf6
mov edx, dword [edi]
push ebx
push eax
mov eax, dword [edx + 8]
mov ecx, edi
call eax
test eax, eax
jne 0x40fccb
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], al
call fcn.00411520
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0xffffffff
call fcn.00411520
mov eax, 0x64
jmp 0x40fd17
mov esi, dword [esp + 0x44]
test esi, esi
jne 0x40fbce
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00411520
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0xffffffff
call fcn.00411520
mov eax, 0x2bc
jmp 0x40fd17
mov edi, dword [edi + 0xc]
test edi, edi
je 0x40fcf6
lea ecx, [esp + 0x44]
push ecx
push edi
lea edx, [esp + 0x48]
push edx
push 0
lea ecx, [esp + 0x48]
call fcn.0040ef00
push eax
mov eax, dword [esp + 0x28]
push eax
call esi
test eax, eax
jne 0x40fcf6
xor ebp, ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00411520
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0xffffffff
call fcn.00411520
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x18