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

Disassembly:
push ebp
lea ebp, [esp - 0x144]
sub esp, 0x144
push 0xffffffffffffffff
push 0x6528b3
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x7496c8]
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 0x5516d4
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.00551240
test eax, eax
je 0x55197b
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 0x551f19
cmp dword [ebx + 0xcc], edi
je 0x551744
mov eax, dword [esi + 0xc0]
mov byte [eax + 0x171], 1
push esi
mov ecx, ebx
call fcn.0054f480
test eax, eax
je 0x551744
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 0x551732
cmp eax, 5
je 0x551732
mov ecx, esi
call fcn.00557cd0
mov eax, 1
wait
jmp 0x551f19
mov byte [esi + 0xde], 1
mov eax, 1
wait
jmp 0x551f19
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.0054b1b0
cmp byte [ebx + 0xe4], 0
je 0x5517ab
mov edx, dword [ebx + 0xd8]
cmp dword [edx], edi
jne 0x5517ab
cmp dword [ebp + 0x150], edi
jne 0x5517ab
cmp dword [ebx + 0xcc], edi
jne 0x5517ab
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.0054b1c0
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x5517ab
mov ecx, dword [ebp - 0x20]
cmp ecx, edi
jg 0x5517d4
jl 0x5517ab
cmp dword [ebp - 0x24], 0x5b43
jae 0x5517d4
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.0054b330
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x20]
jmp 0x5517da
mov edi, dword [ebp + 0x154]
test eax, eax
je 0x551987
test ecx, ecx
jg 0x5517fe
jl 0x5517f1
cmp dword [ebp - 0x24], 0x5b43
jae 0x5517fe
cmp dword [ebp + 0x150], 0
je 0x551987
test edi, edi
je 0x55181f
lea edi, [edi + edi*2]
xor eax, eax
cmp ecx, eax
jg 0x55181f
jl 0x551812
cmp dword [ebp - 0x24], edi
jae 0x55181f
cmp dword [ebp + 0x150], 0
je 0x551987
push 0x70
call fcn.005e7678
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x55183d
mov ecx, eax
call fcn.00557000
jmp 0x55183f
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
test eax, eax
je 0x551987
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 0x551870
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.005e76b2
add esp, 4
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x5518b6
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0054b160
xor eax, eax
wait
jmp 0x551f19
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.0040fc20
add esp, 0x10
push edi
mov ecx, dword [ebp - 0x18]
call fcn.00556d10
test eax, eax
je 0x55190f
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0054b160
push edi
call fcn.005e76a7
add esp, 4
xor eax, eax
wait
jmp 0x551f19
push edi
lea ecx, [esi + 0x10]
call fcn.00560bc0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x55198f
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 3
push edi
lea ecx, [ebp - 0x1c]
call fcn.00417fb0
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.00402f80
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.0054b1b0
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0054b160
push edi
call fcn.005e76a7
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 0x551f19
mov ecx, esi
call fcn.0054ae70
push edi
call fcn.005e76a7
add esp, 4
push 0x69e4e0
mov ecx, ebx
call fcn.0054b1b0
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 0x551b31
cmp ecx, 5
je 0x551b31
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 0x551a48
cmp dword [ebp + 0x150], edx
jne 0x551a48
mov ecx, dword [ebx + 0x88]
cmp eax, ecx
jne 0x551a48
cmp dword [ecx + 0x58], edx
jne 0x551a48
mov ecx, dword [ebx + 0xd8]
cmp dword [ecx], edx
jne 0x551a48
mov ecx, dword [esi + 0xc0]
cmp dword [ecx + 0xb8], 2
jne 0x551a48
cmp dword [ebp - 0x20], edx
jl 0x551a2d
jg 0x551a26
cmp dword [ebp - 0x24], 0xb680
jbe 0x551a2d
mov eax, 0x5b40
jmp 0x551a32
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 0x551c59
cmp dword [ebp - 0x1c], 0
je 0x551a75
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 0x551c59
test edx, edx
jne 0x551b1b
cmp dword [ebp + 0x150], edx
jne 0x551b1b
cmp eax, dword [ebx + 0x88]
jne 0x551b1b
mov ecx, dword [esi + 0xc0]
cmp byte [ecx + 0x171], dl
jne 0x551b1b
mov edx, dword [eax]
mov eax, dword [edx + 0xc0]
cmp dword [eax + 0x24], 3
je 0x551b1b
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.00617ef0
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.00617220
mov ecx, dword [esi + 0x70]
sub ecx, eax
mov eax, dword [esi + 0x74]
sbb eax, edx
cmp dword [ebp - 0x28], eax
jg 0x551b10
jl 0x551b0a
cmp dword [ebp - 0x2c], ecx
jae 0x551b10
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
jmp 0x551c59
push 0
push 2
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00617220
jmp 0x551a33
mov edx, dword [edi + 0xe4]
test edx, edx
jne 0x551b47
mov edx, dword [edi + 0xe8]
add edx, dword [edi + 0xe0]
xor ecx, ecx
mov dword [ebp - 0x38], ecx
cmp dword [eax + 0x58], ecx
je 0x551b66
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x1c]
cmp eax, edx
jbe 0x551c38
sub eax, edx
jmp 0x551c33
mov eax, dword [edi + 0xc0]
fld qword [eax + 0x3a8]
fmul qword [0x6796f0]
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 0x551bcd
mov eax, dword [edi + 0xc0]
fld qword [eax + 0x3a8]
fmul qword [0x679710]
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 0x551c38
mov dword [ebp - 0x1c], ecx
mov ecx, edx
mov dword [ebp - 0x40], ecx
fldz
fcomp qword [ebx + 0x80]
fnstsw ax
test ah, 5
jp 0x551c10
mov eax, dword [edi + 0xe8]
mov edi, dword [edi + 0xe0]
mov dword [ebp - 0x28], edi
add edi, eax
cmp edx, edi
jb 0x551c10
sub ecx, dword [ebp - 0x28]
sub ecx, eax
mov dword [ebp - 0x40], ecx
lea eax, [ecx + ecx*4]
cmp eax, 0x2da0
jae 0x551c22
add ecx, 0x2da0
jmp 0x551c29
lea ecx, [ecx + ecx + 0x5b43]
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
jae 0x551c38
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 0x551d16
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.006172d0
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.00617220
mov dword [esi + 0x88], eax
cmp dword [esi + 0x8c], eax
jae 0x551d0b
push str.Err_in_Chl:Ins__endPacket___startPacket__n
mov ecx, ebx
call fcn.0054b1b0
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0054b160
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.005e76a7
add esp, 4
xor eax, eax
wait
jmp 0x551f19
dec eax
mov edx, dword [edi]
mov dword [edx + 0x8c], eax
jmp 0x551d19
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 0x551d62
mov eax, dword [edi + 0x5c]
cmp dword [eax], 0
je 0x551d62
mov eax, dword [eax]
mov ecx, dword [edi]
mov edx, dword [eax + 0x60]
cmp edx, dword [ecx + 0x60]
jne 0x551d62
mov edx, dword [eax + 0x64]
cmp edx, dword [ecx + 0x64]
jne 0x551d62
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 0x551ebd
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 0x551d97
mov eax, dword [edi + 0x58]
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x30], ecx
jmp 0x551d9e
mov dword [ebp - 0x30], 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x60]
push eax
push 0x66b41c
lea ecx, [ebp + 0x100]
push ecx
call fcn.0061611b
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.0061611b
add esp, 0x18
lea ecx, [ebp]
push ecx
mov ecx, ebx
call fcn.0054b1b0
mov edx, dword [edi + 0x60]
push edx
push 0x66b41c
lea eax, [ebp + 0x100]
push eax
call fcn.0061611b
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 0x551e63
push eax
push str.Error_reading_registry__errCode___d._n
lea edx, [ebp]
push edx
call fcn.0061611b
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.0054b1b0
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.0061611b
add esp, 0x1c
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.0054b1b0
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.00557cd0
mov ecx, dword [edi]
call fcn.00557cd0
mov eax, 1
wait
jmp 0x551f19
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.00613241
add ebp, 0x144
mov esp, ebp
pop ebp
ret 0x10