Function at 0x10057060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006506d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x100a00e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x68], ecx
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x5c], 0
call fcn.100530b0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x100570c3
mov eax, dword [eax]
lea ecx, [ebp - 0x5c]
push ecx
push 0x101
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x44]
mov ebx, eax
cmp edx, 8
jb 0x10057114
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005710a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005710a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1005c099
add esp, 8
test ebx, ebx
je 0x1005713f
push edi
mov ecx, esi
call fcn.1000e450
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x100573d3
mov dword [ebp - 4], 2
push eax
jmp 0x100573cd
push dword [ebp - 0x68]
lea eax, [ebp - 0x28]
push eax
call fcn.100530b0
add esp, 8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x60]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push 0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
push ecx
push 0
push eax
push dword [ebp - 0x5c]
call ebx
test eax, eax
jne 0x1005735b
cmp dword [ebp - 0x64], 1
jne 0x1005735b
push eax
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
shr eax, 1
push eax
call fcn.10052650
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x60]
push edx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x64]
push ecx
push 0
push eax
push dword [ebp - 0x5c]
call ebx
test eax, eax
je 0x10057293
push edi
mov ecx, esi
call fcn.1000e450
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x1005720f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10057205
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057393
push edx
push ecx
call fcn.1005c099
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x10057260
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10057256
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057393
push edx
push ecx
call fcn.1005c099
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], 7
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x100573d3
mov dword [ebp - 4], 6
push eax
jmp 0x100573cd
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.100532a0
mov edx, dword [ebp - 0x2c]
add esp, 8
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x100572de
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100572d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057393
push edx
push ecx
call fcn.1005c099
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x1005732b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10057321
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057393
push edx
push ecx
call fcn.1005c099
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], 7
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x100573d3
mov dword [ebp - 4], 7
push eax
jmp 0x100573cd
push edi
mov ecx, esi
call fcn.1000e450
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x100573a3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10057399
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10057399
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1005c099
add esp, 8
mov ecx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x100573d3
mov dword [ebp - 4], 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005c0a7
mov esp, ebp
pop ebp
ret