Function at 0x5da8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x81d4ab
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 0x5da963
cmp dword [esi + 0x28], ebx
je 0x5da915
mov eax, dword [esi + 0x24]
cmp eax, ebx
jne 0x5da917
mov eax, 0x8522f8
jmp 0x5da917
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 0x5da938
lea edi, [eax + 4]
jmp 0x5da93a
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 0x5da963
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 0x5daabb
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ebx
cmp dword [eax + 8], ebx
je 0x5da9b3
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x5da9b5
mov eax, 0x8522f8
jmp 0x5da9b5
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 0x5da9d8
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 0x5daabb
mov eax, dword [esi + 0x4c]
cmp eax, 4
je 0x5daa45
cmp eax, 5
je 0x5daa45
test edi, edi
mov dword [esi + 0x18], 0x70c
je 0x5daa1e
lea ebx, [edi + 4]
jmp 0x5daa20
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 0x5daabb
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 0x5daa6c
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x5daa6e
mov ebx, 0x8522f8
jmp 0x5daa6e
xor ebx, ebx
lea edx, [esp + 0x24]
mov ecx, ebp
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 edi, edi
mov dword [esi + 0x18], eax
je 0x5daa98
add edi, 4
jmp 0x5daa9a
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 + 0x2c]
mov ecx, esi
push eax
call fcn.005dadc0
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 0xc