Function at 0x407770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dcf2
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5723f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 3
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ecx
push dword [ebp + 8]
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4077e3
lea eax, [ebp + 0x3c]
mov ecx, edi
push eax
call fcn.00406bb0
jmp 0x407927
sub esp, 0x18
mov eax, esp
mov dword [eax], vtable.._AV___Func_impl_U___Callable_obj_V_lambda_6515cd5f182255bd908f9e3ba3897189____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
lea ecx, [ebp - 0x78]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x4c]
mov dword [eax + 0x10], eax
mov byte [ebp - 4], 3
call fcn.004027a0
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x80]
push ecx
push 0
lea ecx, [ebp - 0x7c]
push ecx
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push 0
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407909
cmp dword [ebp - 0x7c], 1
jne 0x407909
mov esi, dword [ebp - 0x80]
add esi, 2
push esi
call fcn.00451025
push esi
push 0
push eax
mov dword [ebp - 0x70], eax
call fcn.0045abe0
sub esp, 8
mov eax, esp
mov dword [eax], vtable.._AV___Func_impl_U___Callable_obj_V_lambda_65e25225a088a4f2cae9faf440a5494d____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
lea ecx, [ebp - 0x70]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x6c]
mov dword [eax + 0x10], eax
mov byte [ebp - 4], 5
call fcn.004027a0
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp - 0x70]
lea ecx, [ebp - 0x7c]
push ecx
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push 0
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4078fd
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x70]
call fcn.00403570
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00406bb0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x74], 1
call fcn.004028d0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.00402690
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00402690
lea ecx, [ebp + 0xc]
call fcn.004028d0
lea ecx, [ebp + 0x24]
call fcn.004028d0
lea ecx, [ebp + 0x3c]
call fcn.004028d0
jmp 0x40797a
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.00402690
lea eax, [ebp + 0x3c]
mov ecx, edi
push eax
call fcn.00406bb0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x74], 1
mov byte [ebp - 4], 3
call fcn.00402690
cmp dword [ebp + 0x20], 8
jb 0x407938
push dword [ebp + 0xc]
call fcn.0044ef7f
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
cmp dword [ebp + 0x38], 8
mov dword [ebp + 0x1c], eax
mov word [ebp + 0xc], ax
jb 0x407959
push dword [ebp + 0x24]
call fcn.0044ef7f
add esp, 4
xor eax, eax
mov dword [ebp + 0x38], 7
cmp dword [ebp + 0x50], 8
mov dword [ebp + 0x34], eax
mov word [ebp + 0x24], ax
jb 0x40797a
push dword [ebp + 0x3c]
call fcn.0044ef7f
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ed21
mov esp, ebp
pop ebp
ret