Function at 0x54b010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637778
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004024e0
mov byte [ebp - 4], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 0x88]
push ecx
mov edx, dword [esi + 0x88]
push edx
push str.Add_alternative_connection___d__for_connection__d_n
lea eax, [ebp - 0x20]
push eax
call fcn.00402f60
add esp, 0x10
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, edi
call fcn.00540ff0
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebx]
add ecx, 0x10
call fcn.00555380
test eax, eax
jne 0x54b0ea
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push str.Error_in_GetFileSize____errcode___ld._n
lea edx, [ebp - 0x20]
push edx
call fcn.00402f60
add esp, 0x10
mov eax, dword [ebp - 0x20]
push eax
mov ecx, edi
call fcn.00540ff0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00402550
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005f85e7
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 0x28], 0
jl 0x54b182
jg 0x54b100
cmp dword [ebp - 0x2c], 0
jbe 0x54b182
mov ecx, dword [ebx]
add ecx, 0x10
call fcn.00554f50
mov dword [ebx + 0x14], 1
push 0
mov ecx, dword [ebx]
call fcn.0054e4c0
mov ecx, dword [ebx]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov ecx, edi
call fcn.00545a90
test eax, eax
jne 0x54b0be
mov eax, dword [ebx]
mov edi, dword [ebp - 0x1c]
mov dword [edi], eax
mov ecx, dword [eax + 0x68]
add dword [eax + 0x50], ecx
mov edx, dword [eax + 0x6c]
adc dword [eax + 0x54], edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x50]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0x54]
mov dword [edi + 0xc], edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x50]
mov dword [eax + 0x58], ecx
mov edx, dword [eax + 0x54]
mov dword [eax + 0x5c], edx
mov eax, dword [edi]
xor ecx, ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
push edi
push ebx
mov ecx, dword [ebp - 0x24]
call fcn.005421b0
mov eax, dword [ebx + 0x58]
mov dword [edi + 0x58], eax
mov dword [ebx + 0x58], edi
mov ecx, dword [edi]
mov dword [ecx + 0x90], edi
jmp 0x54b184
mov edi, ebx
push esi
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.00545a90
xor ecx, ecx
cmp eax, ecx
je 0x54b19f
mov byte [ebp - 4], cl
jmp 0x54b0c2
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], esi
mov eax, dword [edi]
mov edx, dword [eax + 0x60]
mov dword [esi + 0x60], edx
mov eax, dword [eax + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x50]
mov dword [esi + 0x50], edx
mov eax, dword [eax + 0x54]
mov dword [esi + 0x54], eax
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], ecx
mov dword [ebx + 0x5c], edi
mov dword [edi + 0x5c], ebx
mov dword [ebx + 0x18], 2
mov dword [edi + 0x18], 1
mov ecx, dword [edi + 0x58]
mov dword [ebx + 0x58], ecx
mov dword [esi + 0x90], ebx
mov edx, dword [esi + 0x50]
mov dword [ebx + 8], edx
mov eax, dword [esi + 0x54]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x58], ecx
mov edx, dword [esi + 0x54]
mov dword [esi + 0x5c], edx
mov ecx, esi
call fcn.0054c7f0
mov esi, dword [ebp - 0x24]
cmp dword [esi + 0xdc], 0
je 0x54b2a1
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebx]
mov ecx, dword [ebx + 0x50]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebx + 0x54]
mov dword [ebp - 0x30], edx
cmp dword [edi + 0x58], 0
je 0x54b23a
mov eax, dword [edi + 0x58]
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x38], ecx
jmp 0x54b241
mov dword [ebp - 0x38], 0xffffffff
mov edx, dword [edi + 0x60]
push edx
push 0x681158
lea eax, [ebp - 0x1c]
push eax
call fcn.005fb4cb
add esp, 0xc
push 0x10
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [esi + 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x1c]
push edx
push str.Adding_record__s_to_registry_with_ID__d__startPos__I64d__nextID__d_n
lea eax, [ebp - 0x20]
push eax
call fcn.00402f60
add esp, 0x1c
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, esi
call fcn.00540ff0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00402550
mov eax, 1
jmp 0x54b0cc