Function at 0x5da690
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x81d47b
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 0x5da733
cmp dword [esi + 0x28], ebx
je 0x5da6e5
mov eax, dword [esi + 0x24]
cmp eax, ebx
jne 0x5da6e7
mov eax, 0x8522f8
jmp 0x5da6e7
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 0x5da708
lea edi, [eax + 4]
jmp 0x5da70a
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 0x5da733
mov byte [esi + 0x30], 1
lea edi, [esi + 0x38]
mov dword [esp + 0x1c], 1
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov ecx, esi
mov byte [esp + 0x1c], 2
mov dword [esi], 0x869fe4
call dword [0x869fec]
test al, al
jne 0x5da88a
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ebx
cmp dword [eax + 8], ebx
je 0x5da782
mov ecx, dword [eax + 4]
cmp ecx, ebx
jne 0x5da784
mov ecx, 0x8522f8
jmp 0x5da784
xor ecx, ecx
lea edx, [esp + 0x24]
lea eax, [esi + 0x4c]
push edx
push ebx
push eax
mov eax, dword [esi + 0x34]
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ebp, [esi + 4]
mov dword [esi + 0x18], eax
cmp ebp, ebx
je 0x5da7a7
lea ebx, [ebp + 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 0x5da88a
mov eax, dword [esi + 0x4c]
cmp eax, 1
je 0x5da814
cmp eax, 2
je 0x5da814
test ebp, ebp
mov dword [esi + 0x18], 0x70c
je 0x5da7ed
lea ebx, [ebp + 4]
jmp 0x5da7ef
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 0x5da88a
mov ecx, dword [esp + 0x24]
push 0
push ecx
mov ecx, edi
call fcn.0042c390
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x5da83b
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x5da83d
mov ebx, 0x8522f8
jmp 0x5da83d
xor ebx, ebx
lea edx, [esp + 0x24]
mov ecx, edi
push edx
call fcn.0074ebc0
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 ebp, ebp
mov dword [esi + 0x18], eax
je 0x5da867
lea edi, [ebp + 4]
jmp 0x5da869
xor edi, edi
push str.RegQueryKeyEx__
call fcn.007ac4d2
add esp, 4
mov ecx, edi
push eax
push str.RegQueryKeyEx__
call fcn.00403980
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.005daae0
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