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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a1f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], esi
mov eax, dword [esi + 0x68]
mov ebx, dword [esi + 0x58]
test eax, eax
mov dword [ebp - 4], 0
je 0x54c180
mov dword [ebp - 0x20], 0x10
mov eax, dword [ebx + 0x60]
push eax
lea ecx, [ebp - 0x18]
push 0x6a00e4
push ecx
call fcn.005e6db3
add esp, 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x3c]
push edx
mov edx, dword [esi + 0x68]
push eax
push 0
lea ecx, [ebp - 0x18]
push 0
push ecx
push edx
call edi
test eax, eax
je 0x54c07d
push eax
lea eax, [ebp - 0x178]
push str.Error_reading_registry__errCode___d._n
push eax
call fcn.005e6db3
add esp, 0xc
lea ecx, [ebp - 0x178]
push ecx
mov ecx, esi
call fcn.0054bce0
mov ecx, dword [esi + 0x68]
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x44], edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x28]
push edx
push str._skf
push eax
call fcn.005e6db3
mov edx, dword [esi + 0x68]
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x178]
push eax
push str.Deleting_record_with_num__s_n
push ecx
call fcn.005e6db3
add esp, 0xc
lea edx, [ebp - 0x178]
mov ecx, esi
push edx
call fcn.0054bce0
mov eax, dword [esi + 0x60]
lea ecx, [ebp - 0x18]
push eax
push 0x6a00e4
push ecx
call fcn.005e6db3
add esp, 0xc
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x18]
push edx
mov edx, dword [esi + 0x68]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
je 0x54c12c
push eax
lea eax, [ebp - 0x178]
push str.Error_reading_registry__errCode___d._n
push eax
call fcn.005e6db3
add esp, 0xc
lea ecx, [ebp - 0x178]
push ecx
mov ecx, esi
call fcn.0054bce0
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x3c]
push 0x10
push eax
mov dword [ebp - 0x38], edx
mov edx, dword [esi + 0x68]
push 0
lea ecx, [ebp - 0x18]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x3c]
push ecx
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
lea edx, [ebp - 0x178]
push str.Updating_record_with_num__s:_set_ID__d__startPos__I64d__nextID__d_n
push edx
call fcn.005e6db3
add esp, 0x1c
lea eax, [ebp - 0x178]
mov ecx, esi
push eax
call fcn.0054bce0
test ebx, ebx
je 0x54c2ec
mov ecx, dword [ebx + 0x20]
mov dword [esi + 0x20], ecx
mov edi, dword [ebx + 0x2c]
test edi, edi
je 0x54c1fb
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x54c1fb
push edi
call fcn.005e639f
add esp, 4
test eax, eax
je 0x54c1fb
mov eax, dword [esi + 0x2c]
cmp eax, edi
ja 0x54c1fb
push eax
call fcn.005e639f
mov edx, dword [esi + 0x2c]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, edi
jb 0x54c1fb
xor eax, eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x28], ax
call fcn.00402410
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402400
push eax
lea ecx, [esi + 0x2c]
call fcn.00402410
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x54c244
lea ecx, [esi + 0x2c]
call fcn.00401070
test edi, edi
je 0x54c244
push edi
call fcn.005e639f
add esp, 4
test eax, eax
je 0x54c244
push edi
call fcn.005e639f
lea ecx, [eax + eax + 2]
push ecx
call fcn.005feedc
add esp, 8
mov dword [esi + 0x2c], eax
test eax, eax
je 0x54c244
push edi
call fcn.005e639f
mov edx, dword [esi + 0x2c]
push edi
push edx
mov dword [esi + 0x34], eax
call fcn.005e6569
add esp, 0xc
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [ebx]
test eax, eax
je 0x54c268
mov ecx, dword [esi]
mov edx, dword [eax + 0x60]
mov dword [ecx + 0x60], edx
mov eax, dword [eax + 0x64]
mov dword [ecx + 0x64], eax
mov ecx, dword [ebx]
add ecx, 0x10
call fcn.00554e30
mov ecx, dword [ebx + 0x10]
push ecx
call fcn.005e7e7e
add esp, 4
cmp eax, 0xffffffff
jne 0x54c2b2
mov edx, dword [0x6cc708]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x1c]
push eax
push str.Could_not_delete_temp_file__ls_n
push ecx
mov byte [ebp - 4], 2
call fcn.005fb90b
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0054bce0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00602ad6
mov eax, dword [ebx]
test eax, eax
je 0x54c2d6
cmp dword [eax + 0x90], ebx
jne 0x54c2d6
push str.set_next__conn__lpListItem__NULL_n
mov ecx, esi
mov dword [eax + 0x90], 0
call fcn.0054bce0
mov eax, dword [ebx + 0x58]
mov ecx, ebx
mov dword [esi + 0x58], eax
call fcn.0054bc60
push ebx
call fcn.005fef05
add esp, 4
mov ecx, dword [esi]
call fcn.00550790
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret