Function at 0x4178c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8086
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x55a3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x60], ecx
mov esi, edx
mov dword [ebp - 0x4c], ebx
cmp ecx, ebx
jne 0x41794e
push 0x22
xor eax, eax
mov esi, 7
push str.Invalid_given_key_in_GetKeyValue__
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.004125c0
lea ecx, [ebp - 0x2c]
push ecx
push 2
mov dword [ebp - 4], ebx
call fcn.00423a40
add esp, 8
cmp dword [ebp - 0x18], 8
jb 0x41793e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b5907
add esp, 4
xor eax, eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov word [edi], ax
jmp 0x417bb1
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x50], ebx
jb 0x417962
mov eax, dword [esi]
jmp 0x417964
mov eax, esi
lea edx, [ebp - 0x50]
push edx
push ebx
lea edx, [ebp - 0x5c]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x4c], eax
cmp eax, ebx
je 0x417a1c
lea eax, [ebp - 0xf8]
push eax
call fcn.00403200
lea ecx, [ebp - 0xf8]
push str.RegQueryValueEx___to_get_data_size_returns_error
push ecx
mov dword [ebp - 4], 1
call fcn.00404d50
mov edx, dword [ebp - 0x4c]
add esp, 8
push edx
lea eax, [ebp - 0xf8]
push eax
call fcn.0041b300
lea esi, [ebp - 0x2c]
lea eax, [ebp - 0xf8]
call fcn.00402e30
mov ecx, esi
push ecx
push 1
mov byte [ebp - 4], 2
call fcn.00423a40
add esp, 8
cmp dword [ebp - 0x18], 8
jb 0x4179e9
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b5907
add esp, 4
xor eax, eax
mov esi, 7
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00401690
xor ecx, ecx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov word [edi], cx
jmp 0x417bb1
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jbe 0x417b85
push 0x563770
push eax
call fcn.004b6c66
add esp, 8
mov byte [ebp - 0x4c], bl
mov ecx, dword [ebp - 0x4c]
push ecx
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], eax
call fcn.0041c010
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x58]
cmp ecx, ebx
jne 0x417ab9
push str.NetworkService::CacheManager::GetKeyValue:_failed_to_allocate_memory
lea ecx, [ebp - 0x2c]
call fcn.004126b0
lea edx, [ebp - 0x2c]
push edx
push 1
mov byte [ebp - 4], 5
call fcn.00423a40
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00412770
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00424720
lea ecx, [ebp - 0x48]
call fcn.00412770
jmp 0x417bb1
cmp dword [esi + 0x14], 8
jb 0x417ac3
mov eax, dword [esi]
jmp 0x417ac5
mov eax, esi
lea edx, [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x417b6d
lea eax, [ebp - 0xf8]
push eax
call fcn.00403200
lea ecx, [ebp - 0xf8]
push str.Failed_to_get_key_value
push ecx
mov byte [ebp - 4], 6
call fcn.00404d50
lea edx, [ebp - 0xf8]
push esi
push edx
call fcn.0041b8e0
add esp, 0x10
lea esi, [ebp - 0x2c]
lea eax, [ebp - 0xf8]
call fcn.00402e30
mov eax, esi
push eax
push 1
mov byte [ebp - 4], 7
call fcn.00423a40
add esp, 8
mov ecx, esi
call fcn.00412770
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 4
call fcn.00401690
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
lea eax, [ebp - 0x58]
mov word [edi], cx
mov byte [ebp - 4], 3
call fcn.00424720
lea ecx, [ebp - 0x48]
call fcn.00412770
jmp 0x417bb1
mov edx, dword [ebp - 0x58]
push edx
lea ecx, [ebp - 0x48]
call fcn.00447100
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00424720
lea ecx, [ebp - 0x48]
xor eax, eax
push ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov ecx, edi
mov word [edi], ax
call fcn.0040d5d0
cmp dword [ebp - 0x34], 8
jb 0x417bb1
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b5907
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b58f8
mov esp, ebp
pop ebp
ret