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

Disassembly:
push ebp
lea ebp, [esp - 0x148]
sub esp, 0x148
push 0xffffffffffffffff
push 0x637960
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x144], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x68], 0
je 0x54c040
mov dword [ebp - 0x14], 0x10
mov eax, dword [edi + 0x60]
push eax
push 0x64f36c
lea ecx, [ebp + 0x13c]
push ecx
call fcn.005fb4cb
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x28]
push eax
push 0
push 0
lea ecx, [ebp + 0x13c]
push ecx
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x54bf32
push eax
push str.Error_reading_registry__errCode___d._n
lea eax, [ebp]
push eax
call fcn.005fb4cb
add esp, 0xc
lea ecx, [ebp]
push ecx
mov ecx, esi
call fcn.0054b8b0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
lea eax, [ebp + 0x13c]
push eax
mov ecx, dword [esi + 0x68]
push ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
call ebx
lea edx, [ebp + 0x13c]
push edx
push str._skf
lea eax, [ebp + 0x134]
push eax
call fcn.005fb4cb
add esp, 0xc
lea ecx, [ebp + 0x134]
push ecx
mov edx, dword [esi + 0x68]
push edx
call ebx
lea eax, [ebp + 0x13c]
push eax
push str.Deleting_record_with_num__s_n
lea ecx, [ebp]
push ecx
call fcn.005fb4cb
add esp, 0xc
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.0054b8b0
mov eax, dword [esi + 0x60]
push eax
push 0x64f36c
lea ecx, [ebp + 0x13c]
push ecx
call fcn.005fb4cb
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x28]
push eax
push 0
push 0
lea ecx, [ebp + 0x13c]
push ecx
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x54bfec
push eax
push str.Error_reading_registry__errCode___d._n
lea eax, [ebp]
push eax
call fcn.005fb4cb
add esp, 0xc
lea ecx, [ebp]
push ecx
mov ecx, esi
call fcn.0054b8b0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
push 0x10
lea eax, [ebp - 0x28]
push eax
push 0
push 0
lea ecx, [ebp + 0x13c]
push ecx
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp + 0x13c]
push ecx
push str.Updating_record_with_num__s:_set_ID__d__startPos__I64d__nextID__d_n
lea edx, [ebp]
push edx
call fcn.005fb4cb
add esp, 0x1c
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0054b8b0
test edi, edi
je 0x54c118
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0x2c]
push edx
lea ecx, [esi + 0x2c]
call fcn.004017d0
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
cmp dword [edi], 0
je 0x54c07f
mov eax, dword [edi]
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 [edi]
add ecx, 0x10
call fcn.00554f50
mov ecx, dword [edi + 0x10]
push ecx
call fcn.005fc153
add esp, 4
cmp eax, 0xffffffff
jne 0x54c0e4
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov bl, 1
mov byte [ebp - 4], bl
mov edx, dword [edi + 0x10]
push edx
lea ecx, [ebp - 0x18]
call fcn.00417ab0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
push eax
push str.Could_not_delete_temp_file__s_n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f60
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.0054b8b0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00402550
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402550
cmp dword [edi], 0
je 0x54c109
mov eax, dword [edi]
cmp dword [eax + 0x90], edi
jne 0x54c109
mov dword [eax + 0x90], 0
push str.set_next__conn__lpListItem__NULL_n
mov ecx, esi
call fcn.0054b8b0
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
push 1
mov ecx, edi
call fcn.00540fa0
mov ecx, dword [esi]
call fcn.0054c7f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x144]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x148
mov esp, ebp
pop ebp
ret