Function at 0x40fa85
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc48
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x8005
lea esi, [ebp - 0x30]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x1388
call fcn.004061eb
mov esi, dword [ebp - 0x30]
push 0x1fe
lea eax, [ebp - 0x442]
mov byte [esi + 0x8000], bl
mov byte [esi + 0x8001], bl
mov byte [esi + 0x8002], bl
push ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0xff
mov word [ebp - 0x444], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x208
lea eax, [ebp - 0x242]
push ebx
push eax
mov dword [ebp - 0x14], 0x8000
mov word [ebp - 0x244], bx
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 0x14]
add esp, 0xc
cmp word [edi], bx
mov dword [ebp - 0x24], ebx
je 0x40fb47
lea eax, [ebp - 0x24]
push eax
push str.NodeSlot
push dword [ebp + 0xc]
call fcn.0040f14e
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
add esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call fcn.0040f96d
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x444]
push eax
push ebx
jmp 0x40fdb1
lea eax, [ebp - 0x444]
push eax
call sub.msvcrt.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00405396
test eax, eax
pop ecx
pop ecx
je 0x40fd88
movzx edi, byte [esi + 2]
cmp edi, 0x74
jne 0x40fba0
movzx eax, byte [esi + 4]
lea ebx, [ebp - 0x244]
call fcn.0040f60d
xor ebx, ebx
cmp edi, 0x2f
jne 0x40fbe9
cmp byte [esi + 4], 0x3a
jne 0x40fcf2
cmp byte [esi + 5], 0x5c
jne 0x40fcf2
movzx ax, byte [esi + 3]
mov word [ebp - 0x244], ax
movzx ax, byte [esi + 4]
mov word [ebp - 0x242], ax
movzx ax, byte [esi + 5]
mov word [ebp - 0x240], ax
mov word [ebp - 0x23e], bx
jmp 0x40fcf2
cmp edi, 0x42
je 0x40fbf6
cmp edi, 0xc3
jne 0x40fc1a
lea eax, [esi + 5]
cmp byte [eax], 0x5c
jne 0x40fc1a
push 0xfa
lea ecx, [ebp - 0x244]
push ecx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x40fcf2
cmp edi, 0x31
jne 0x40fcf2
push 0x24
pop edi
call fcn.00404f50
cmp dword [eax + 4], 5
jbe 0x40fc34
push 0x36
pop edi
lea eax, [esi + 0xe]
push eax
call sub.msvcrt.dll_strlen
pop ecx
mov dword [ebp - 8], eax
add edi, eax
mov dword [ebp - 0x1c], ebx
call fcn.00404f50
mov ecx, dword [eax + 4]
cmp ecx, 6
jne 0x40fc5b
cmp dword [eax + 8], 3
jae 0x40fc5d
cmp ecx, ecx
jbe 0x40fc73
mov eax, dword [ebp - 8]
cmp byte [esi + eax + 0x18], bl
jne 0x40fc6c
cmp byte [esi + eax + 0x19], bl
je 0x40fc73
mov dword [ebp - 0x1c], 1
mov eax, edi
and eax, 0x80000001
jns 0x40fc81
dec eax
or eax, 0xfffffffe
inc eax
je 0x40fc84
dec edi
call fcn.00404f50
cmp dword [eax + 4], 5
jbe 0x40fcaa
cmp dword [ebp - 0x1c], ebx
je 0x40fc97
add edi, 8
push 0xa
pop eax
cmp byte [esi + edi], bl
jne 0x40fca7
cmp byte [esi + edi + 1], bl
jne 0x40fca7
inc edi
inc edi
dec eax
jne 0x40fc9a
cmp dword [ebp - 8], ebx
jle 0x40fcf2
add edi, esi
push edi
call sub.msvcrt.dll_wcslen
pop ecx
push dword [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x244]
push eax
call sub.msvcrt.dll_wcscpy
cmp dword [ebp - 8], 0xfa
pop ecx
pop ecx
jge 0x40fcf2
lea esi, [ebp - 0x244]
call fcn.004049c4
push 0x104
push edi
mov edi, esi
call fcn.004056bd
mov esi, dword [ebp - 0x30]
pop ecx
pop ecx
lea eax, [ebp - 0x20]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fd88
push 0x7fe
lea eax, [ebp - 0xc42]
push ebx
push eax
mov word [ebp - 0xc44], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
mov eax, 0x3ff
lea edi, [ebp - 0xc44]
call fcn.00404c75
mov dword [esp], 0x3ff
push 0x415790
call fcn.004056bd
lea eax, [ebp - 0x444]
push 0x3ff
push eax
call fcn.004056bd
mov ecx, dword [ebp - 0x18]
add esp, 0x10
mov eax, edi
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.0040fa85
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x14], 0x8000
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40fb62
lea esi, [ebp - 0x30]
call fcn.004061d6
pop edi
pop esi
pop ebx
leave
ret 0x14