Function at 0x61777e49
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x6177d118], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
je 0x61777f6f
mov ebx, 0x6177d118
xor esi, esi
lea eax, [ebp - 8]
push eax
push dword [esi + 0x6177d11c]
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, edi
mov dword [ebp - 0x14], ecx
je 0x61777ea1
cmp ecx, 2
jne 0x61777f1b
cmp ecx, 2
jne 0x61777eaf
cmp esi, edi
jbe 0x61777f05
mov dword [ebp - 0x14], edi
jmp 0x61777ef7
cmp dword [ebp - 0x18], 4
jne 0x61777ecc
mov eax, dword [esi + 0x6177d11c]
mov eax, dword [eax]
lea ecx, [esi + 0x6177d124]
cmp eax, dword [ecx + 4]
ja 0x61777ecc
cmp eax, dword [ecx]
jae 0x61777f05
cmp esi, edi
jbe 0x61777f36
cmp dword [0x6177d38c], 1
mov eax, dword [ebx]
mov dword [ebp - 4], eax
jbe 0x61777ef7
push edi
lea eax, [ebp - 4]
push eax
push 1
push 0x4e85
push 2
push dword [0x6177d3a0]
call sub.rtutils.dll_RouterLogEventW
mov ecx, dword [esi + 0x6177d120]
mov eax, dword [esi + 0x6177d11c]
mov dword [eax], ecx
inc dword [ebp - 0x10]
add esi, 0x14
lea ebx, [esi + 0x6177d118]
cmp dword [ebx], edi
jne 0x61777e72
jmp 0x61777f6f
cmp dword [0x6177d38c], edi
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*4]
mov eax, dword [eax*4 + 0x6177d118]
mov dword [ebp - 4], eax
jbe 0x61777f6f
push ecx
jmp 0x61777f57
cmp dword [0x6177d38c], edi
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx + ecx*4]
mov ecx, dword [ecx*4 + 0x6177d118]
mov eax, 0x3f7
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ecx
jbe 0x61777f74
push eax
lea eax, [ebp - 4]
push eax
push 1
push 0x4e83
push 1
push dword [0x6177d3a0]
call sub.rtutils.dll_RouterLogEventW
cmp dword [ebp - 0x14], edi
je 0x61777f7c
mov eax, dword [ebp - 0x14]
jmp 0x617781a5
mov eax, dword [0x6177d310]
cmp eax, 6
jne 0x61777f8a
push 0x32
jmp 0x61777fa4
cmp eax, 3
jne 0x61777fd5
push 0x7d
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
jne 0x61777faa
push 0x57
pop eax
jmp 0x617781a5
mov bx, word [esi + 2]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
mov word [esi + 2], di
call fcn.6177591c
test eax, eax
jne 0x61777fd1
cmp dword [ebp - 0x1c], 6
jne 0x61777fd1
mov word [esi + 2], bx
jmp 0x61778138
mov word [esi + 2], bx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push edi
mov esi, 0x61771e0c
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], edi
call ebx
cmp eax, edi
jne 0x61777ffd
cmp dword [ebp - 0x18], 7
je 0x61778006
cmp eax, 2
jne 0x617781a5
cmp dword [ebp - 8], edi
jbe 0x617780a7
push dword [ebp - 8]
push 8
push dword [0x6177d39c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x61778054
cmp dword [0x6177d38c], edi
mov dword [ebp - 4], esi
jbe 0x61778138
push edi
lea eax, [ebp - 4]
push eax
push 1
push 0x4e83
push 1
push dword [0x6177d3a0]
call sub.rtutils.dll_RouterLogEventW
jmp 0x61778138
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push dword [ebp + 0xc]
call ebx
mov ebx, eax
cmp ebx, edi
je 0x617780a7
push dword [ebp - 0xc]
push edi
push dword [0x6177d39c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x6177d38c], edi
mov dword [ebp - 4], esi
jbe 0x617781a3
push ebx
lea eax, [ebp - 4]
push eax
push 1
push 0x4e83
push 1
push dword [0x6177d3a0]
call sub.rtutils.dll_RouterLogEventW
jmp 0x617781a3
mov eax, dword [0x6177d310]
cmp eax, 3
je 0x617780fa
cmp eax, 5
je 0x617780fa
cmp eax, 4
je 0x617780fa
cmp dword [0x6177d360], 2
jne 0x617780f6
push dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push edi
push dword [0x6177d39c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x6177d38c], 1
jbe 0x61778138
push edi
lea eax, [ebp - 4]
push eax
push 1
push 0x4e9f
push 2
jmp 0x61778044
xor ecx, ecx
jmp 0x617780fd
push 2
pop ecx
push dword [ebp - 0xc]
push dword [0x6177d300]
push dword [0x6177d304]
push dword [0x6177d30c]
push edi
push eax
push ecx
push dword [ebp + 8]
call fcn.61775a5b
mov esi, eax
cmp esi, edi
jne 0x6177813c
cmp dword [ebp - 0xc], edi
je 0x61778138
push dword [ebp - 0xc]
push edi
push dword [0x6177d39c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x617781a5
push esi
call fcn.61775c2a
mov ebx, eax
cmp ebx, edi
je 0x61778150
push esi
call fcn.61775675
jmp 0x617781a3
cmp dword [ebp + 0x10], edi
je 0x617781a3
push edi
push esi
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.61777983
mov ebx, eax
cmp ebx, edi
je 0x61778172
push dword [esi + 4]
call fcn.61775ce3
jmp 0x617781a3
cmp dword [esi + 0xc], 3
jne 0x6177818e
cmp dword [ebp - 0x1c], 5
jne 0x6177818e
or byte [esi + 0x1c], 0x80
push 5
push edi
push esi
mov dword [esi + 8], edi
call fcn.61775782
cmp dword [esi + 0xc], 2
jne 0x617781a3
test byte [esi + 0x1c], 8
je 0x617781a3
push 1
push edi
push esi
call fcn.61775782
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc