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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d37b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x44]
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
cmp eax, edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], edi
je 0x4e5826
push esi
call fcn.004e8410
cmp eax, edi
je 0x4e5826
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x60]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.004ebbc0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.Insert_next_chunk_in_list_n
mov ecx, ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.004e50a0
mov al, byte [ebx + 0x5c]
test al, al
je 0x4e587b
mov eax, dword [ebx + 0x50]
cmp dword [eax], edi
jne 0x4e587b
cmp dword [ebp + 0xc], edi
jne 0x4e587b
cmp dword [ebx + 0x44], edi
jne 0x4e587b
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x38], 1
push ecx
mov ecx, ebx
call fcn.004e5d20
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x4e587b
mov ecx, dword [ebp - 0x18]
cmp ecx, edi
jg 0x4e58a1
jl 0x4e587b
cmp dword [ebp - 0x1c], 0x5b43
jae 0x4e58a1
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x1c]
xor eax, eax
push edi
push edx
mov ecx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.004e5e30
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], 0
jmp 0x4e58a4
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x4e59d3
test ecx, ecx
jg 0x4e58c6
jl 0x4e58bb
cmp dword [ebp - 0x1c], 0x5b43
jae 0x4e58c6
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4e59d3
test edi, edi
je 0x4e58e5
xor eax, eax
lea edi, [edi + edi*2]
cmp ecx, eax
jg 0x4e58e5
jl 0x4e58da
cmp dword [ebp - 0x1c], edi
jae 0x4e58e5
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4e59d3
push 0x30
call fcn.0056649c
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x4e5903
call fcn.004e97f0
jmp 0x4e5905
xor eax, eax
test eax, eax
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0
je 0x4e59d3
mov ecx, dword [ebx + 0x4c]
mov dword [eax + 0x28], ecx
mov edx, dword [ebx + 0x54]
mov dword [eax + 0x2c], edx
mov eax, dword [ebx + 0x14]
or ecx, 0xffffffff
mov edi, dword [eax + 0x10]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 9
push ecx
call fcn.0056649c
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp - 0x24], eax
jne 0x4e5951
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004e9810
push esi
jmp 0x4e59cb
mov ecx, dword [ebx + 0x20]
inc ecx
mov dword [ebx + 0x20], ecx
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], eax
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x20]
mov ecx, dword [eax + 0x10]
push edx
push ecx
push str._s_d
push edi
call fcn.0054ea2a
mov ecx, dword [ebp + 8]
add esp, 0x10
push edi
call fcn.004e9880
test eax, eax
jne 0x4e59b7
push edi
lea ecx, [esi + 0x10]
call fcn.004ec480
test eax, eax
je 0x4e59e8
push eax
push edi
lea edx, [ebp - 0x290]
push str.Error_opening_file__s__errcode___ld._n
push edx
call fcn.0054ea2a
add esp, 0x10
lea eax, [ebp - 0x290]
mov ecx, ebx
push eax
call fcn.004e50a0
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004e9810
push esi
call fcn.005664c5
add esp, 4
push edi
call fcn.005664c5
add esp, 4
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 0x10
push edi
call fcn.005664c5
add esp, 4
mov ecx, ebx
push 0x62cd7c
call fcn.004e50a0
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [edx], esi
mov eax, dword [ecx]
mov edi, dword [eax + 0x30]
mov dword [esi + 0x30], edi
mov eax, dword [eax + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x4e5a68
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4e5a68
mov eax, dword [ebx + 0x14]
cmp ecx, eax
jne 0x4e5a68
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x4e5a68
mov ecx, dword [ebx + 0x50]
cmp dword [ecx], 0
jne 0x4e5a68
mov eax, dword [esi + 0x80]
cmp dword [eax + 0xb8], 2
jne 0x4e5a68
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4e5a60
jg 0x4e5a58
cmp dword [ebp - 0x1c], 0xb680
jbe 0x4e5a60
mov eax, 0x5b40
cdq
jmp 0x4e5a95
mov eax, 0x2da0
cdq
jmp 0x4e5a95
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4e5a84
mov ecx, dword [ebx + 0x60]
mov dword [ebx + 0x58], edx
mov dword [esi + 0x20], ecx
mov edx, dword [ebx + 0x64]
mov dword [esi + 0x24], edx
mov byte [ebx + 0x5c], 0
jmp 0x4e5aa5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push 0
push 2
push eax
push ecx
call fcn.0054fd30
mov ecx, dword [esi + 0x30]
sub ecx, eax
mov eax, dword [esi + 0x34]
sbb eax, edx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4e5b47
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x20]
xor ecx, ecx
sub edx, eax
mov dword [ebp + 0xc], edx
mov edx, dword [esi + 0x24]
sbb edx, ecx
xor eax, eax
push eax
mov eax, dword [ebp + 0xc]
push edi
push edx
push eax
call fcn.0054fde0
mov ecx, edi
xor edx, edx
sub ecx, eax
mov eax, dword [esi + 0x20]
add ecx, eax
mov eax, dword [esi + 0x24]
adc edx, eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov ecx, dword [eax]
mov eax, 0
push eax
push edi
mov edx, dword [ecx + 0x4c]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x4c], edx
mov edx, dword [ebp + 0x14]
sub ecx, edx
mov edx, dword [esi + 0x24]
sbb edx, eax
push edx
push ecx
call fcn.0054fd30
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x48], eax
cmp ecx, eax
jae 0x4e5b3e
push str.Err_in_Chl:Ins__endPacket___startPacket__n
mov ecx, ebx
call fcn.004e50a0
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004e9810
push esi
call fcn.005664c5
mov eax, dword [ebp - 0x24]
add esp, 4
push eax
jmp 0x4e59cb
mov ecx, dword [ebp - 0x14]
dec eax
mov edx, dword [ecx]
mov dword [edx + 0x4c], eax
mov edi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
xor eax, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov edi, dword [edi]
sub ecx, 1
sbb edx, eax
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], edx
mov ecx, dword [ebx + 0x54]
cmp ecx, eax
je 0x4e5cb1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x24]
mov ecx, dword [ecx]
mov dword [ebp - 0x34], eax
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x24]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x4e5b99
mov ecx, dword [ecx + 0x24]
mov dword [ebp - 0x30], ecx
jmp 0x4e5ba0
mov dword [ebp - 0x30], 0xffffffff
push eax
lea edx, [ebp - 0x24]
push 0x615ee0
push edx
call fcn.0054ea2a
mov edx, dword [ebx + 0x54]
add esp, 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x34]
push 0x10
push eax
push 0
lea ecx, [ebp - 0x24]
push 0
push ecx
push edx
call edi
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x34]
push ecx
push edx
push eax
lea ecx, [ebp - 0x13c]
push str.Adding_record_to_registry_with_ID__d__startPos__I64d__nextID__d_n
push ecx
call fcn.0054ea2a
add esp, 0x18
lea edx, [ebp - 0x13c]
mov ecx, ebx
push edx
call fcn.004e50a0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
mov ecx, dword [eax + 0x24]
push ecx
push 0x615ee0
push edx
call fcn.0054ea2a
add esp, 0xc
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x24]
push eax
mov eax, dword [ebx + 0x54]
push ecx
push 0
push 0
push edx
push eax
mov dword [ebp + 0xc], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4e5c5e
push eax
lea ecx, [ebp - 0x13c]
push str.Error_reading_registry__errCode___d._n
push ecx
call fcn.0054ea2a
add esp, 0xc
lea edx, [ebp - 0x13c]
mov ecx, ebx
push edx
call fcn.004e50a0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x34]
push 0x10
push edx
mov ecx, dword [eax + 0x24]
push 0
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebx + 0x54]
lea eax, [ebp - 0x24]
push 0
push eax
push ecx
call edi
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x34]
push eax
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
lea ecx, [ebp - 0x13c]
push str.Updating_record_with_num__s:_set_ID__d__startPos__I64d__nextID__d_n
push ecx
call fcn.0054ea2a
add esp, 0x1c
lea edx, [ebp - 0x13c]
mov ecx, ebx
push edx
call fcn.004e50a0
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x1c]
mov dword [eax + 0x1c], ecx
mov dword [edi + 0x1c], eax
mov edx, dword [esi + 0x20]
mov dword [esi + 0x60], eax
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x24]
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
mov dword [esi + 0x28], edx
mov ecx, esi
mov dword [esi + 0x2c], eax
call fcn.004ebbc0
mov ecx, dword [edi]
call fcn.004ebbc0
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 0x10