Function at 0x4f8630
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac340
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], esi
mov eax, dword [esi + 0x40]
mov edi, dword [esi + 0x30]
test eax, eax
mov dword [ebp - 4], 0
je 0x4f87d0
mov dword [ebp - 0x1c], 0x10
mov eax, dword [edi + 0x38]
push eax
lea ecx, [ebp - 0x18]
push 0x638fec
push ecx
call fcn.0056d05a
add esp, 0xc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x2c]
push edx
mov edx, dword [esi + 0x40]
push eax
push 0
lea ecx, [ebp - 0x18]
push 0
push ecx
push edx
call ebx
test eax, eax
je 0x4f86cd
push eax
lea eax, [ebp - 0x170]
push str.Error_reading_registry__errCode___d._n
push eax
call fcn.0056d05a
add esp, 0xc
lea ecx, [ebp - 0x170]
push ecx
mov ecx, esi
call fcn.004f8310
mov ecx, dword [esi + 0x40]
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x3c]
push edx
push str._skf
push eax
call fcn.0056d05a
mov edx, dword [esi + 0x40]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x170]
push eax
push str.Deleting_record_with_num__s_n
push ecx
call fcn.0056d05a
add esp, 0xc
lea edx, [ebp - 0x170]
mov ecx, esi
push edx
call fcn.004f8310
mov eax, dword [esi + 0x38]
lea ecx, [ebp - 0x18]
push eax
push 0x638fec
push ecx
call fcn.0056d05a
add esp, 0xc
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x18]
push edx
mov edx, dword [esi + 0x40]
push eax
push 0
push 0
push ecx
push edx
call ebx
test eax, eax
je 0x4f877c
push eax
lea eax, [ebp - 0x170]
push str.Error_reading_registry__errCode___d._n
push eax
call fcn.0056d05a
add esp, 0xc
lea ecx, [ebp - 0x170]
push ecx
mov ecx, esi
call fcn.004f8310
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push 0x10
push eax
mov dword [ebp - 0x28], edx
mov edx, dword [esi + 0x40]
push 0
lea ecx, [ebp - 0x18]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x2c]
push ecx
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
lea edx, [ebp - 0x170]
push str.Updating_record_with_num__s:_set_ID__d__startPos__I64d__nextID__d_n
push edx
call fcn.0056d05a
add esp, 0x1c
lea eax, [ebp - 0x170]
mov ecx, esi
push eax
call fcn.004f8310
test edi, edi
je 0x4f8879
mov ecx, dword [edi + 0x20]
lea edx, [edi + 0x2c]
mov dword [esi + 0x20], ecx
push edx
lea ecx, [esi + 0x2c]
call fcn.005887f9
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi]
test eax, eax
je 0x4f880e
mov ecx, dword [esi]
mov edx, dword [eax + 0x30]
mov dword [ecx + 0x30], edx
mov eax, dword [eax + 0x34]
mov dword [ecx + 0x34], eax
mov ecx, dword [edi]
add ecx, 0x10
call fcn.004fbf30
mov ecx, dword [edi + 0x10]
push ecx
call fcn.0056e8d1
add esp, 4
cmp eax, 0xffffffff
jne 0x4f8845
mov edx, dword [edi + 0x10]
lea eax, [ebp - 0x2b4]
push edx
push str.Could_not_delete_temp_file__s_n
push eax
call fcn.0056d05a
add esp, 0xc
lea ecx, [ebp - 0x2b4]
push ecx
mov ecx, esi
call fcn.004f8310
mov eax, dword [edi]
test eax, eax
je 0x4f8863
cmp dword [eax + 0x60], edi
jne 0x4f8863
push str.set_next__conn__lpListItem__NULL_n
mov ecx, esi
mov dword [eax + 0x60], 0
call fcn.004f8310
mov edx, dword [edi + 0x30]
mov ecx, edi
mov dword [esi + 0x30], edx
call fcn.004f8290
push edi
call fcn.00584a85
add esp, 4
mov ecx, dword [esi]
call fcn.004fa950
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret