Function at 0x4102d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519c2c
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x580b30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x4c], ebx
cmp ecx, ebx
jne 0x410384
lea eax, [ebp - 0x108]
push eax
call fcn.00402bd0
lea ecx, [ebp - 0xf8]
push str.Invalid_given_key_in_GetKeyValue__
push ecx
mov dword [ebp - 4], ebx
call fcn.004050c0
add esp, 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x108]
call fcn.00402c70
push eax
push 2
mov byte [ebp - 4], 1
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x18], 8
jb 0x41035e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 0xffffffff
call fcn.00401820
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
jmp 0x410611
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x50], ebx
jb 0x410398
mov eax, dword [edi]
jmp 0x41039a
mov eax, edi
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 0x410442
lea eax, [ebp - 0x108]
push eax
call fcn.00402bd0
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
push ecx
push ecx
lea edx, [ebp - 0xf8]
push str.RegQueryValueEx___to_get_data_size_returns_error
push edx
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00411d90
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x108]
call fcn.00402c70
push eax
push 1
mov byte [ebp - 4], 3
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x18], 8
jb 0x41041c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 0xffffffff
call fcn.00401820
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
jmp 0x410611
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jbe 0x4105e5
push 0x58ab40
push eax
call fcn.004d562e
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.004140b0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x58]
cmp ecx, ebx
jne 0x410518
lea edx, [ebp - 0x108]
push edx
call fcn.00402bd0
lea eax, [ebp - 0xf8]
push str.NetworkService::CacheManager::GetKeyValue:_failed_to_allocate_memory
push eax
mov byte [ebp - 4], 6
call fcn.004050c0
add esp, 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x108]
call fcn.00402c70
push eax
push 1
mov byte [ebp - 4], 7
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
lea ecx, [ebp - 0x2c]
call fcn.0040a4f0
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 5
call fcn.00401820
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea eax, [ebp - 0x58]
mov word [esi], cx
mov byte [ebp - 4], 4
call fcn.0041b8f0
lea ecx, [ebp - 0x48]
call fcn.0040a4f0
jmp 0x410611
cmp dword [edi + 0x14], 8
jb 0x410522
mov eax, dword [edi]
jmp 0x410524
mov eax, edi
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 0x4105cd
lea eax, [ebp - 0x108]
push eax
call fcn.00402bd0
push edi
push ecx
lea ecx, [ebp - 0xf8]
push str.Failed_to_get_key_value
push ecx
mov byte [ebp - 4], 8
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x108]
call fcn.00402c70
push eax
push 1
mov byte [ebp - 4], 9
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
lea ecx, [ebp - 0x2c]
call fcn.0040a4f0
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 5
call fcn.00401820
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea eax, [ebp - 0x58]
mov word [esi], dx
mov byte [ebp - 4], 4
call fcn.0041b8f0
lea ecx, [ebp - 0x48]
call fcn.0040a4f0
jmp 0x410611
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040ada0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.0041b8f0
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edx, [ebp - 0x48]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00407e30
cmp dword [ebp - 0x34], 8
jb 0x410611
mov eax, dword [ebp - 0x48]
push eax
call fcn.00469e1a
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret