Function at 0x54bb40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b0a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov eax, dword [0x6cd768]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov ecx, dword [edi]
mov eax, dword [esi + 0x88]
mov edx, dword [ecx + 0x88]
lea ecx, [ebp - 0x14]
push edx
push eax
push str.Add_alternative_connection___d__for_connection__d_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.005427e0
mov ecx, dword [edi]
lea eax, [ebp - 0x34]
push eax
add ecx, 0x10
call fcn.00556220
test eax, eax
jne 0x54bbe9
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
push ecx
push edx
lea eax, [ebp - 0x14]
push str.Error_in_GetFileSize____errcode___ld._n
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.005427e0
jmp 0x54bd9c
mov eax, dword [ebp - 0x30]
test eax, eax
jl 0x54bd8a
jg 0x54bc01
mov eax, dword [ebp - 0x34]
test eax, eax
jbe 0x54bd8a
mov ecx, dword [edi]
add ecx, 0x10
call fcn.00555be0
mov ecx, dword [edi]
push 0
mov dword [edi + 0x14], 1
call fcn.005518a0
mov edx, dword [edi]
lea eax, [ebp + 8]
push edx
push eax
mov ecx, ebx
call fcn.0054c1c0
test eax, eax
jne 0x54bd9c
mov edx, dword [ebp + 8]
mov ecx, dword [edi]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x68]
mov edx, dword [eax + 0x6c]
add dword [eax + 0x50], ecx
mov ecx, dword [eax + 0x54]
adc ecx, edx
mov dword [eax + 0x54], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
mov dword [eax + 8], edx
mov eax, dword [ecx + 0x54]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x50]
mov dword [eax + 0x58], ecx
mov edx, dword [eax + 0x54]
mov dword [eax + 0x5c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor eax, eax
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], eax
mov ecx, dword [ebx + 0xdc]
cmp ecx, eax
je 0x54bd70
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
lea eax, [ecx + 0x60]
mov dword [ebp - 0x3c], eax
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov ecx, dword [edx + 0x50]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edi + 0x58]
mov edx, dword [edx + 0x54]
test ecx, ecx
mov dword [ebp - 0x20], edx
je 0x54bcb9
mov ecx, dword [ecx + 0x60]
mov dword [ebp - 0x28], ecx
jmp 0x54bcc0
mov dword [ebp - 0x28], 0xffffffff
push eax
lea edx, [ebp - 0x1c]
push 0x6a10e4
push edx
call fcn.005e7bd3
mov edx, dword [ebx + 0xdc]
add esp, 0xc
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push 0x10
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [edi + 0x60]
lea ecx, [ebp - 0x1c]
push eax
push 0x6a10e4
push ecx
call fcn.005e7bd3
add esp, 0xc
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push edx
mov edx, dword [ebx + 0xdc]
push eax
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x40], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x54bd4d
push eax
lea eax, [ebp - 0x140]
push str.Error_reading_registry__errCode___d._n
push eax
call fcn.005e7bd3
add esp, 0xc
lea ecx, [ebp - 0x140]
push ecx
mov ecx, ebx
call fcn.005427e0
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
push 0x10
push ecx
mov eax, dword [edx]
push 0
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0xdc]
lea edx, [ebp - 0x1c]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x58]
mov dword [edx + 0x58], ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x58], eax
mov ecx, dword [eax]
mov dword [ecx + 0x90], eax
mov edi, dword [ebp + 8]
lea edx, [ebp + 0xc]
push esi
push edx
mov ecx, ebx
call fcn.0054c1c0
xor ecx, ecx
cmp eax, ecx
je 0x54bdbd
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00603a3c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov edx, dword [edi]
mov eax, dword [edx + 0x60]
mov dword [esi + 0x60], eax
mov edx, dword [edx + 0x64]
mov dword [esi + 0x64], edx
mov eax, dword [edi]
mov edx, dword [eax + 0x50]
mov dword [esi + 0x50], edx
mov eax, dword [eax + 0x54]
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x54], eax
mov dword [ecx + 0x5c], edi
mov edx, dword [ebp + 0xc]
mov dword [edi + 0x5c], edx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], 2
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x18], 1
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x58], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x90], eax
mov dword [eax + 8], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x54]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov dword [esi + 0x58], ecx
mov ecx, esi
mov dword [esi + 0x5c], edx
call fcn.00551540
mov eax, dword [ebx + 0xdc]
test eax, eax
je 0x54bed0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x2c], ecx
mov edx, dword [eax]
mov eax, dword [edx + 0x50]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x58]
mov ecx, dword [edx + 0x54]
test eax, eax
mov dword [ebp - 0x20], ecx
je 0x54be69
mov edx, dword [eax + 0x60]
mov dword [ebp - 0x28], edx
jmp 0x54be70
mov dword [ebp - 0x28], 0xffffffff
mov eax, dword [edi + 0x60]
lea ecx, [ebp - 0x1c]
push eax
push 0x6bee2c
push ecx
call fcn.005e7bd3
mov ecx, dword [ebx + 0xdc]
add esp, 0xc
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push 0x10
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x2c]
push eax
push ecx
lea eax, [ebp - 0x1c]
push edx
push eax
lea ecx, [ebp - 0x14]
push str.Adding_record__s_to_registry_with_ID__d__startPos__I64d__nextID__d_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x14]
add esp, 0x1c
mov ecx, ebx
push edx
call fcn.005427e0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8