Function at 0x5da440
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x81d44b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.005d9c40
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x1c], ebx
mov dword [esi], 0x869eb0
call dword [0x869eb4]
test al, al
je 0x5da4e3
cmp dword [esi + 0x28], ebx
je 0x5da495
mov eax, dword [esi + 0x24]
cmp eax, ebx
jne 0x5da497
mov eax, 0x8522f8
jmp 0x5da497
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 0x5da4b8
lea edi, [eax + 4]
jmp 0x5da4ba
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
jne 0x5da4e3
mov byte [esi + 0x30], 1
lea ebp, [esi + 0x38]
mov dword [esp + 0x1c], 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 + 0x1c], 2
mov dword [esi], 0x869fe4
call dword [0x869fec]
test al, al
jne 0x5da65b
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ebx
cmp dword [eax + 8], ebx
je 0x5da533
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x5da535
mov eax, 0x8522f8
jmp 0x5da535
xor eax, eax
lea edx, [esp + 0x24]
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 0x5da558
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
jne 0x5da65b
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x4c]
cmp ecx, eax
je 0x5da5cc
cmp eax, 0xffffffff
je 0x5da5cc
test edi, edi
mov dword [esi + 0x18], 0x70c
je 0x5da5a1
lea ebx, [edi + 4]
jmp 0x5da5a3
xor ebx, ebx
push str.RegQueryValueExW__
call fcn.007ac4d2
add esp, 4
mov ecx, ebx
push eax
push str.RegQueryValueExW__
call fcn.00403980
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test al, al
jne 0x5da65b
mov ecx, dword [esp + 0x24]
push 0
push ecx
mov ecx, ebp
call fcn.0042c390
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x5da5f3
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x5da5f5
mov ebx, 0x8522f8
jmp 0x5da5f5
xor ebx, ebx
cmp dword [ebp], 0
je 0x5da612
push 0x141
push str.C:ReposBvSrcNoCrtLibdatavect.h
push 0x8fcf74
call fcn.006d2b10
add esp, 0xc
mov eax, dword [ebp + 4]
lea edx, [esp + 0x24]
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 0x5da638
add edi, 4
jmp 0x5da63a
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]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test al, al
je 0x5da670
mov ecx, dword [esp + 0x2c]
push ebp
call fcn.004485e0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10