Function at 0x5d7d90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x81d124
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 0x5d7e63
cmp dword [esi + 0x28], ebx
je 0x5d7df4
mov eax, dword [esi + 0x24]
cmp eax, ebx
jne 0x5d7df6
mov eax, 0x8522f8
jmp 0x5d7df6
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 0x5d7e17
lea edi, [eax + 4]
jmp 0x5d7e19
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 0x5d7e5f
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 edi, [esi + 0x38]
mov dword [esp + 0x98], 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 + 0x98], 2
mov dword [esi], 0x869f34
call dword [0x869f3c]
test al, al
jne 0x5d8019
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x10], ebx
cmp dword [eax + 8], ebx
je 0x5d7ebb
mov ecx, dword [eax + 4]
cmp ecx, ebx
jne 0x5d7ebd
mov ecx, 0x8522f8
jmp 0x5d7ebd
xor ecx, ecx
lea edx, [esp + 0x10]
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 0x5d7ee0
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
je 0x5d7f26
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 [esi + 0x4c]
cmp eax, 1
je 0x5d7f83
cmp eax, 2
je 0x5d7f83
test ebp, ebp
mov dword [esi + 0x18], 0x70c
je 0x5d7f43
lea ebx, [ebp + 4]
jmp 0x5d7f45
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 0x5d7f83
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, edi
call fcn.0042c390
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x5d7fad
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x5d7faf
mov ebx, 0x8522f8
jmp 0x5d7faf
xor ebx, ebx
lea edx, [esp + 0x10]
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 0x5d7fd9
lea edi, [ebp + 4]
jmp 0x5d7fdb
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]
test al, al
je 0x5d8019
push esi
lea ecx, [esp + 0x1c]
call fcn.005daf90
lea eax, [esp + 0x18]
push 0x8c1574
push eax
call fcn.007ac5c6
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
push ecx
push edx
mov ecx, esi
call fcn.005d8320
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