Function at 0x559210
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x74f8a0]
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 - 0x5c], edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00402500
mov byte [ebp - 4], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 0x98]
push ecx
mov edx, dword [esi + 0x98]
push edx
push str.Add_alternative_connection___d__for_connection__d_n
lea eax, [ebp - 0x58]
push eax
call fcn.00402f70
add esp, 0x10
mov ecx, dword [ebp - 0x58]
push ecx
mov ecx, edi
call fcn.0054ee20
lea edx, [ebp - 0x78]
push edx
mov ecx, dword [ebx]
add ecx, 0x10
call fcn.00564e70
test eax, eax
jne 0x5592ea
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
push str.Error_in_GetFileSize____errcode___ld._n
lea edx, [ebp - 0x58]
push edx
call fcn.00402f70
add esp, 0x10
mov eax, dword [ebp - 0x58]
push eax
mov ecx, edi
call fcn.0054ee20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00402570
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.0061807e
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 0x74], 0
jl 0x559382
jg 0x559300
cmp dword [ebp - 0x78], 0
jbe 0x559382
mov ecx, dword [ebx]
add ecx, 0x10
call fcn.005647d0
mov dword [ebx + 0x14], 1
push 0
mov ecx, dword [ebx]
call fcn.0055da80
mov ecx, dword [ebx]
push ecx
lea edx, [ebp - 0x60]
push edx
mov ecx, edi
call fcn.00553bd0
test eax, eax
jne 0x5592be
mov eax, dword [ebx]
mov edi, dword [ebp - 0x60]
mov dword [edi], eax
mov ecx, dword [eax + 0x78]
add dword [eax + 0x60], ecx
mov edx, dword [eax + 0x7c]
adc dword [eax + 0x64], edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x60]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0x64]
mov dword [edi + 0xc], edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x60]
mov dword [eax + 0x68], ecx
mov edx, dword [eax + 0x64]
mov dword [eax + 0x6c], edx
mov eax, dword [edi]
xor ecx, ecx
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], ecx
push edi
push ebx
mov ecx, dword [ebp - 0x5c]
call fcn.0054ffe0
mov eax, dword [ebx + 0x58]
mov dword [edi + 0x58], eax
mov dword [ebx + 0x58], edi
mov ecx, dword [edi]
mov dword [ecx + 0xa0], edi
jmp 0x559384
mov edi, ebx
push esi
lea edx, [ebp - 0x60]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.00553bd0
xor ecx, ecx
cmp eax, ecx
je 0x55939f
mov byte [ebp - 4], cl
jmp 0x5592c2
mov ebx, dword [ebp - 0x60]
mov dword [ebx], esi
mov eax, dword [edi]
mov edx, dword [eax + 0x70]
mov dword [esi + 0x70], edx
mov eax, dword [eax + 0x74]
mov dword [esi + 0x74], eax
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 dword [esi + 0x78], ecx
mov dword [esi + 0x7c], 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 + 0xa0], ebx
mov edx, dword [esi + 0x60]
mov dword [ebx + 8], edx
mov eax, dword [esi + 0x64]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi + 0x60]
mov dword [esi + 0x68], ecx
mov edx, dword [esi + 0x64]
mov dword [esi + 0x6c], edx
mov ecx, esi
call fcn.0055b9f0
mov esi, dword [ebp - 0x5c]
cmp dword [esi + 0xdc], 0
je 0x5594a1
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x70], eax
mov ebx, dword [ebx]
mov ecx, dword [ebx + 0x60]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebx + 0x64]
mov dword [ebp - 0x64], edx
cmp dword [edi + 0x58], 0
je 0x55943a
mov eax, dword [edi + 0x58]
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x6c], ecx
jmp 0x559441
mov dword [ebp - 0x6c], 0xffffffff
mov edx, dword [edi + 0x60]
push edx
push 0x6a3050
lea eax, [ebp - 0x54]
push eax
call fcn.0061af5b
add esp, 0xc
push 0x10
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
lea edx, [ebp - 0x54]
push edx
mov eax, dword [esi + 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
lea edx, [ebp - 0x54]
push edx
push str.Adding_record__s_to_registry_with_ID__d__startPos__I64d__nextID__d_n
lea eax, [ebp - 0x58]
push eax
call fcn.00402f70
add esp, 0x1c
mov ecx, dword [ebp - 0x58]
push ecx
mov ecx, esi
call fcn.0054ee20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00402570
mov eax, 1
jmp 0x5592cc