Function at 0x5d7ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x81d0f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov eax, dword [esp + 0x90]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x18], esi
call fcn.005d7300
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x98], ebx
mov dword [esi], 0x869e2c
call dword [0x869e30]
test al, al
je 0x5d7b83
cmp dword [esi + 0x28], ebx
je 0x5d7b14
mov eax, dword [esi + 0x24]
cmp eax, ebx
jne 0x5d7b16
mov eax, 0x8522f8
jmp 0x5d7b16
xor eax, eax
mov edx, dword [esi + 0x1c]
lea ecx, [esi + 0x34]
push ecx
push 1
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esi + 0x18], eax
lea eax, [esi + 4]
cmp eax, ebx
je 0x5d7b37
lea edi, [eax + 4]
jmp 0x5d7b39
xor edi, edi
push str.RegOpenKeyExW__
call fcn.007ac4d2
add esp, 4
mov ecx, edi
push eax
push str.RegOpenKeyExW__
call fcn.00403980
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test al, al
je 0x5d7b7f
push esi
lea ecx, [esp + 0x1c]
call fcn.00537590
lea ecx, [esp + 0x18]
push 0x8c1574
push ecx
mov dword [esp + 0x20], 0x869e24
call fcn.007ac5c6
mov byte [esi + 0x30], 1
lea ebp, [esi + 0x38]
mov dword [esp + 0x98], 1
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov ecx, esi
mov byte [esp + 0x98], 2
mov dword [esi], 0x869f34
call dword [0x869f3c]
test al, al
jne 0x5d7d59
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x10], ebx
cmp dword [eax + 8], ebx
je 0x5d7bdc
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x5d7bde
mov eax, 0x8522f8
jmp 0x5d7bde
xor eax, eax
lea edx, [esp + 0x10]
lea ecx, [esi + 0x4c]
push edx
push ebx
push ecx
push ebx
push eax
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edi, [esi + 4]
mov dword [esi + 0x18], eax
cmp edi, ebx
je 0x5d7c01
lea ebx, [edi + 4]
push str.RegQueryValueExW__
call fcn.007ac4d2
add esp, 4
mov ecx, ebx
push eax
push str.RegQueryValueExW__
call fcn.00403980
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test al, al
je 0x5d7c47
push esi
lea ecx, [esp + 0x1c]
call fcn.00537590
lea eax, [esp + 0x18]
push 0x8c1574
push eax
mov dword [esp + 0x20], 0x869e24
call fcn.007ac5c6
mov eax, dword [esp + 0xac]
mov ecx, dword [esi + 0x4c]
cmp ecx, eax
je 0x5d7caa
cmp eax, 0xffffffff
je 0x5d7caa
test edi, edi
mov dword [esi + 0x18], 0x70c
je 0x5d7c6a
lea ebx, [edi + 4]
jmp 0x5d7c6c
xor ebx, ebx
push str.RegQueryValueExW__
call fcn.007ac4d2
add esp, 4
mov ecx, ebx
push eax
push str.RegQueryValueExW__
call fcn.00403980
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test al, al
je 0x5d7caa
push esi
lea ecx, [esp + 0x1c]
call fcn.005daf90
lea eax, [esp + 0x18]
push 0x8c1574
push eax
call fcn.007ac5c6
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov ecx, ebp
call fcn.0042c390
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x5d7cd4
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x5d7cd6
mov ebx, 0x8522f8
jmp 0x5d7cd6
xor ebx, ebx
cmp dword [ebp], 0
je 0x5d7cf3
push 0x141
push str.C:ReposBvSrcNoCrtLibdatavect.h
push 0x8fcf74
call fcn.006d2b10
add esp, 0xc
mov eax, dword [ebp + 4]
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esi + 0x4c]
push eax
mov eax, dword [esi + 0x34]
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test edi, edi
mov dword [esi + 0x18], eax
je 0x5d7d19
add edi, 4
jmp 0x5d7d1b
xor edi, edi
push str.RegQueryValueExW__
call fcn.007ac4d2
add esp, 4
mov ecx, edi
push eax
push str.RegQueryValueExW__
call fcn.00403980
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test al, al
je 0x5d7d59
push esi
lea ecx, [esp + 0x1c]
call fcn.005daf90
lea eax, [esp + 0x18]
push 0x8c1574
push eax
call fcn.007ac5c6
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
test al, al
je 0x5d7d71
mov ecx, dword [esp + 0xa8]
push ebp
call fcn.004485e0
mov ecx, dword [esp + 0x90]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 0x10