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

Disassembly:
push ebp
lea ebp, [esp - 0x144]
sub esp, 0x144
push 0xffffffffffffffff
push 0x657cc3
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp + 0x140], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x44], ebx
mov esi, dword [ebp + 0x14c]
xor edi, edi
mov dword [ebp - 4], edi
wait
cmp dword [ebx + 0x18], edi
je 0x555334
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push esi
mov ecx, ebx
call fcn.00554ea0
test eax, eax
je 0x5555db
mov edx, dword [esi]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
mov edx, dword [edx + 4]
call edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
lea eax, [edi + 1]
wait
jmp 0x555b79
cmp dword [ebx + 0xcc], edi
je 0x5553a4
mov eax, dword [esi + 0xc0]
mov byte [eax + 0x171], 1
push esi
mov ecx, ebx
call fcn.005530e0
test eax, eax
je 0x5553a4
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
mov edx, dword [esi + 0xa0]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx + 0x24]
cmp eax, 4
je 0x555392
cmp eax, 5
je 0x555392
mov ecx, esi
call fcn.0055b9f0
mov eax, 1
wait
jmp 0x555b79
mov byte [esi + 0xde], 1
mov eax, 1
wait
jmp 0x555b79
mov byte [esi + 0xde], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
push str.Insert_next_chunk_in_list_n
mov ecx, ebx
call fcn.0054ee20
cmp byte [ebx + 0xe4], 0
je 0x55540b
mov edx, dword [ebx + 0xd8]
cmp dword [edx], edi
jne 0x55540b
cmp dword [ebp + 0x150], edi
jne 0x55540b
cmp dword [ebx + 0xcc], edi
jne 0x55540b
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.0054ee30
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x55540b
mov ecx, dword [ebp - 0x20]
cmp ecx, edi
jg 0x555434
jl 0x55540b
cmp dword [ebp - 0x24], 0x5b43
jae 0x555434
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov edi, dword [ebp + 0x154]
push edi
lea ecx, [ebp - 0x24]
push ecx
mov ecx, ebx
call fcn.0054efa0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x20]
jmp 0x55543a
mov edi, dword [ebp + 0x154]
test eax, eax
je 0x5555e7
test ecx, ecx
jg 0x55545e
jl 0x555451
cmp dword [ebp - 0x24], 0x5b43
jae 0x55545e
cmp dword [ebp + 0x150], 0
je 0x5555e7
test edi, edi
je 0x55547f
lea edi, [edi + edi*2]
xor eax, eax
cmp ecx, eax
jg 0x55547f
jl 0x555472
cmp dword [ebp - 0x24], edi
jae 0x55547f
cmp dword [ebp + 0x150], 0
je 0x5555e7
push 0x70
call fcn.005ec308
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x55549d
mov ecx, eax
call fcn.0055ad20
jmp 0x55549f
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
test eax, eax
je 0x5555e7
mov edx, dword [ebx + 0xd4]
mov dword [eax + 0x64], edx
mov ecx, dword [ebx + 0xdc]
mov dword [eax + 0x68], ecx
mov edx, dword [ebx + 0x88]
mov eax, dword [edx + 0x10]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5554d0
sub eax, edx
sar eax, 1
add eax, 0xa
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005ec342
add esp, 4
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x555516
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0054edd0
xor eax, eax
wait
jmp 0x555b79
inc dword [ebx + 0x94]
mov eax, dword [ebx + 0x94]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x60], eax
mov edx, dword [ebx + 0x94]
push edx
mov eax, dword [ebx + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
push str._s_d
push edi
call fcn.0040fc00
add esp, 0x10
push edi
mov ecx, dword [ebp - 0x18]
call fcn.0055aa30
test eax, eax
je 0x55556f
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0054edd0
push edi
call fcn.005ec337
add esp, 4
xor eax, eax
wait
jmp 0x555b79
push edi
lea ecx, [esi + 0x10]
call fcn.00564840
mov dword [ebp - 0x28], eax
test eax, eax
je 0x5555ef
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 3
push edi
lea ecx, [ebp - 0x1c]
call fcn.00418120
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push str.Error_opening_file__s__errcode___ld._n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.0054ee20
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0054edd0
push edi
call fcn.005ec337
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
xor eax, eax
wait
jmp 0x555b79
mov ecx, esi
call fcn.0054eae0
push edi
call fcn.005ec337
add esp, 4
push 0x6a3590
mov ecx, ebx
call fcn.0054ee20
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
mov ecx, dword [edi + 0xc0]
mov ecx, dword [ecx + 0x24]
cmp ecx, 4
je 0x555791
cmp ecx, 5
je 0x555791
mov ecx, dword [edi + 0x70]
mov dword [esi + 0x70], ecx
mov edx, dword [edi + 0x74]
mov dword [esi + 0x74], edx
mov edx, dword [ebx + 0xcc]
test edx, edx
jne 0x5556a8
cmp dword [ebp + 0x150], edx
jne 0x5556a8
mov ecx, dword [ebx + 0x88]
cmp eax, ecx
jne 0x5556a8
cmp dword [ecx + 0x58], edx
jne 0x5556a8
mov ecx, dword [ebx + 0xd8]
cmp dword [ecx], edx
jne 0x5556a8
mov ecx, dword [esi + 0xc0]
cmp dword [ecx + 0xb8], 2
jne 0x5556a8
cmp dword [ebp - 0x20], edx
jl 0x55568d
jg 0x555686
cmp dword [ebp - 0x24], 0xb680
jbe 0x55568d
mov eax, 0x5b40
jmp 0x555692
mov eax, 0x2da0
cdq
mov ecx, dword [esi + 0x70]
sub ecx, eax
mov eax, dword [esi + 0x74]
sbb eax, edx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
jmp 0x5558b9
cmp dword [ebp - 0x1c], 0
je 0x5556d5
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 0xe0], ecx
mov edx, dword [ebx + 0xe8]
mov dword [esi + 0x60], edx
mov eax, dword [ebx + 0xec]
mov dword [esi + 0x64], eax
mov byte [ebx + 0xe4], 0
jmp 0x5558b9
test edx, edx
jne 0x55577b
cmp dword [ebp + 0x150], edx
jne 0x55577b
cmp eax, dword [ebx + 0x88]
jne 0x55577b
mov ecx, dword [esi + 0xc0]
cmp byte [ecx + 0x171], dl
jne 0x55577b
mov edx, dword [eax]
mov eax, dword [edx + 0xc0]
cmp dword [eax + 0x24], 3
je 0x55577b
mov byte [ecx + 0x171], 1
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx]
mov edx, dword [edi + 0x78]
add edx, 0x2da0
mov eax, dword [edi + 0x7c]
adc eax, 0
push 0
push 0xa
push eax
push edx
call fcn.0061cd30
add eax, dword [edi + 0x60]
mov dword [ebp - 0x2c], eax
adc edx, dword [edi + 0x64]
mov dword [ebp - 0x28], edx
push 0
push 2
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0061c060
mov ecx, dword [esi + 0x70]
sub ecx, eax
mov eax, dword [esi + 0x74]
sbb eax, edx
cmp dword [ebp - 0x28], eax
jg 0x555770
jl 0x55576a
cmp dword [ebp - 0x2c], ecx
jae 0x555770
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
jmp 0x5558b9
push 0
push 2
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0061c060
jmp 0x555693
mov edx, dword [edi + 0xe4]
test edx, edx
jne 0x5557a7
mov edx, dword [edi + 0xe8]
add edx, dword [edi + 0xe0]
xor ecx, ecx
mov dword [ebp - 0x38], ecx
cmp dword [eax + 0x58], ecx
je 0x5557c6
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x1c]
cmp eax, edx
jbe 0x555898
sub eax, edx
jmp 0x555893
mov eax, dword [edi + 0xc0]
fld qword [eax + 0x3a8]
fmul qword [0x67e780]
fnstcw word [ebp - 0x1a]
movzx eax, word [ebp - 0x1a]
or eax, 0xc00
mov dword [ebp - 0x28], eax
fldcw word [ebp - 0x28]
fistp qword [ebp - 0x24]
fldcw word [ebp - 0x1a]
mov eax, dword [ebp - 0x24]
cmp eax, edx
jbe 0x55582d
mov eax, dword [edi + 0xc0]
fld qword [eax + 0x3a8]
fmul qword [0x67e7a0]
fnstcw word [ebp - 0x1a]
movzx eax, word [ebp - 0x1a]
or eax, 0xc00
mov dword [ebp - 0x28], eax
fldcw word [ebp - 0x28]
fistp qword [ebp - 0x24]
fldcw word [ebp - 0x1a]
mov eax, dword [ebp - 0x24]
mov ecx, edx
neg ecx
sub ecx, eax
mov dword [ebp - 0x38], ecx
mov eax, dword [esi + 0xc0]
cmp byte [eax + 0x335], 0
jne 0x555898
mov dword [ebp - 0x1c], ecx
mov ecx, edx
mov dword [ebp - 0x40], ecx
fldz
fcomp qword [ebx + 0x80]
fnstsw ax
test ah, 5
jp 0x555870
mov eax, dword [edi + 0xe8]
mov edi, dword [edi + 0xe0]
mov dword [ebp - 0x28], edi
add edi, eax
cmp edx, edi
jb 0x555870
sub ecx, dword [ebp - 0x28]
sub ecx, eax
mov dword [ebp - 0x40], ecx
lea eax, [ecx + ecx*4]
cmp eax, 0x2da0
jae 0x555882
add ecx, 0x2da0
jmp 0x555889
lea ecx, [ecx + ecx + 0x5b43]
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
jae 0x555898
mov ecx, eax
mov dword [ebp - 0x38], ecx
shr ecx, 1
add ecx, edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x1c], ecx
mov dword [esi + 0xe0], ecx
xor ecx, ecx
mov dword [esi + 0xe8], ecx
mov edx, dword [eax + 0x1c]
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], ecx
cmp dword [ebp + 0x154], 0
je 0x555976
mov eax, dword [ebp + 0x158]
xor ecx, ecx
mov edi, dword [esi + 0x60]
mov dword [ebp - 0x20], ecx
mov edx, edi
sub edx, eax
mov eax, dword [esi + 0x64]
sbb eax, ecx
push ecx
mov ecx, dword [ebp + 0x154]
push ecx
push eax
push edx
call fcn.0061c110
mov edx, dword [ebp + 0x154]
sub edx, eax
xor eax, eax
add edx, edi
adc eax, dword [esi + 0x64]
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], eax
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x8c]
mov dword [esi + 0x8c], edx
mov ecx, dword [esi + 0x60]
sub ecx, dword [ebp + 0x158]
mov edx, eax
mov eax, 0
sbb edx, eax
push eax
mov eax, dword [ebp + 0x154]
push eax
push edx
push ecx
call fcn.0061c060
mov dword [esi + 0x88], eax
cmp dword [esi + 0x8c], eax
jae 0x55596b
push str.Err_in_Chl:Ins__endPacket___startPacket__n
mov ecx, ebx
call fcn.0054ee20
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0054edd0
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.005ec337
add esp, 4
xor eax, eax
wait
jmp 0x555b79
dec eax
mov edx, dword [edi]
mov dword [edx + 0x8c], eax
jmp 0x555979
mov edi, dword [ebp - 0x14]
xor eax, eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov ecx, dword [esi + 0x60]
sub ecx, 1
mov edx, dword [esi + 0x64]
sbb edx, eax
mov eax, dword [edi]
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], edx
cmp dword [edi + 0x5c], 0
je 0x5559c2
mov eax, dword [edi + 0x5c]
cmp dword [eax], 0
je 0x5559c2
mov eax, dword [eax]
mov ecx, dword [edi]
mov edx, dword [eax + 0x60]
cmp edx, dword [ecx + 0x60]
jne 0x5559c2
mov edx, dword [eax + 0x64]
cmp edx, dword [ecx + 0x64]
jne 0x5559c2
mov edx, dword [ecx + 0x70]
mov dword [eax + 0x70], edx
mov ecx, dword [ecx + 0x74]
mov dword [eax + 0x74], ecx
cmp dword [ebx + 0xdc], 0
je 0x555b1d
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x60]
mov dword [ebp - 0x34], edx
mov eax, dword [eax]
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x2c], ecx
mov edx, dword [eax + 0x64]
mov dword [ebp - 0x28], edx
cmp dword [edi + 0x58], 0
je 0x5559f7
mov eax, dword [edi + 0x58]
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x30], ecx
jmp 0x5559fe
mov dword [ebp - 0x30], 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x60]
push eax
push 0x67042c
lea ecx, [ebp + 0x100]
push ecx
call fcn.0061af5b
add esp, 0xc
push 0x10
lea edx, [ebp - 0x34]
push edx
push 0
push 0
lea eax, [ebp + 0x100]
push eax
mov ecx, dword [ebx + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push str.Adding_record_to_registry_with_ID__d__startPos__I64d__nextID__d_n
lea eax, [ebp]
push eax
call fcn.0061af5b
add esp, 0x18
lea ecx, [ebp]
push ecx
mov ecx, ebx
call fcn.0054ee20
mov edx, dword [edi + 0x60]
push edx
push 0x67042c
lea eax, [ebp + 0x100]
push eax
call fcn.0061af5b
add esp, 0xc
mov dword [ebp - 0x3c], 0x10
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0
push 0
lea eax, [ebp + 0x100]
push eax
mov ecx, dword [ebx + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x555ac3
push eax
push str.Error_reading_registry__errCode___d._n
lea edx, [ebp]
push edx
call fcn.0061af5b
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.0054ee20
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x60]
mov dword [ebp - 0x30], edx
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0
push 0
lea ecx, [ebp + 0x100]
push ecx
mov edx, dword [ebx + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp + 0x100]
push ecx
push str.Updating_record_with_num__s:_set_ID__d__startPos__I64d__nextID__d_n
lea edx, [ebp]
push edx
call fcn.0061af5b
add esp, 0x1c
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.0054ee20
mov ecx, dword [edi + 0x58]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x58], ecx
mov dword [edi + 0x58], eax
mov dword [esi + 0xa0], eax
mov edx, dword [esi + 0x60]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x64]
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 0x60]
mov dword [esi + 0x68], edx
mov eax, dword [esi + 0x64]
mov dword [esi + 0x6c], eax
mov ecx, esi
call fcn.0055b9f0
mov ecx, dword [edi]
call fcn.0055b9f0
mov eax, 1
wait
jmp 0x555b79
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x140]
xor ecx, ebp
call fcn.0061807e
add ebp, 0x144
mov esp, ebp
pop ebp
ret 0x10