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

Disassembly:
push ebp
lea ebp, [esp - 0x144]
sub esp, 0x144
push 0xffffffffffffffff
push 0x655003
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x74d890]
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 0x552a84
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.005525f0
test eax, eax
je 0x552d2b
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 0x5532c9
cmp dword [ebx + 0xcc], edi
je 0x552af4
mov eax, dword [esi + 0xc0]
mov byte [eax + 0x171], 1
push esi
mov ecx, ebx
call fcn.00550830
test eax, eax
je 0x552af4
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 0x552ae2
cmp eax, 5
je 0x552ae2
mov ecx, esi
call fcn.00559150
mov eax, 1
wait
jmp 0x5532c9
mov byte [esi + 0xde], 1
mov eax, 1
wait
jmp 0x5532c9
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.0054c580
cmp byte [ebx + 0xe4], 0
je 0x552b5b
mov edx, dword [ebx + 0xd8]
cmp dword [edx], edi
jne 0x552b5b
cmp dword [ebp + 0x150], edi
jne 0x552b5b
cmp dword [ebx + 0xcc], edi
jne 0x552b5b
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.0054c590
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x552b5b
mov ecx, dword [ebp - 0x20]
cmp ecx, edi
jg 0x552b84
jl 0x552b5b
cmp dword [ebp - 0x24], 0x5b43
jae 0x552b84
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.0054c700
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x20]
jmp 0x552b8a
mov edi, dword [ebp + 0x154]
test eax, eax
je 0x552d37
test ecx, ecx
jg 0x552bae
jl 0x552ba1
cmp dword [ebp - 0x24], 0x5b43
jae 0x552bae
cmp dword [ebp + 0x150], 0
je 0x552d37
test edi, edi
je 0x552bcf
lea edi, [edi + edi*2]
xor eax, eax
cmp ecx, eax
jg 0x552bcf
jl 0x552bc2
cmp dword [ebp - 0x24], edi
jae 0x552bcf
cmp dword [ebp + 0x150], 0
je 0x552d37
push 0x70
call fcn.005e9a78
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x552bed
mov ecx, eax
call fcn.00558470
jmp 0x552bef
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
test eax, eax
je 0x552d37
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 0x552c20
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.005e9aa7
add esp, 4
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x552c66
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0054c530
xor eax, eax
wait
jmp 0x5532c9
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.0040f8d0
add esp, 0x10
push edi
mov ecx, dword [ebp - 0x18]
call fcn.00558180
test eax, eax
je 0x552cbf
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0054c530
push edi
call fcn.005e9ab2
add esp, 4
xor eax, eax
wait
jmp 0x5532c9
push edi
lea ecx, [esi + 0x10]
call fcn.00561f40
mov dword [ebp - 0x28], eax
test eax, eax
je 0x552d3f
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 3
push edi
lea ecx, [ebp - 0x1c]
call fcn.00417c90
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.0054c580
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0054c530
push edi
call fcn.005e9ab2
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 0x5532c9
mov ecx, esi
call fcn.0054c240
push edi
call fcn.005e9ab2
add esp, 4
push 0x6a1508
mov ecx, ebx
call fcn.0054c580
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 0x552ee1
cmp ecx, 5
je 0x552ee1
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 0x552df8
cmp dword [ebp + 0x150], edx
jne 0x552df8
mov ecx, dword [ebx + 0x88]
cmp eax, ecx
jne 0x552df8
cmp dword [ecx + 0x58], edx
jne 0x552df8
mov ecx, dword [ebx + 0xd8]
cmp dword [ecx], edx
jne 0x552df8
mov ecx, dword [esi + 0xc0]
cmp dword [ecx + 0xb8], 2
jne 0x552df8
cmp dword [ebp - 0x20], edx
jl 0x552ddd
jg 0x552dd6
cmp dword [ebp - 0x24], 0xb680
jbe 0x552ddd
mov eax, 0x5b40
jmp 0x552de2
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 0x553009
cmp dword [ebp - 0x1c], 0
je 0x552e25
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 0x553009
test edx, edx
jne 0x552ecb
cmp dword [ebp + 0x150], edx
jne 0x552ecb
cmp eax, dword [ebx + 0x88]
jne 0x552ecb
mov ecx, dword [esi + 0xc0]
cmp byte [ecx + 0x171], dl
jne 0x552ecb
mov edx, dword [eax]
mov eax, dword [edx + 0xc0]
cmp dword [eax + 0x24], 3
je 0x552ecb
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.0061a480
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.006197b0
mov ecx, dword [esi + 0x70]
sub ecx, eax
mov eax, dword [esi + 0x74]
sbb eax, edx
cmp dword [ebp - 0x28], eax
jg 0x552ec0
jl 0x552eba
cmp dword [ebp - 0x2c], ecx
jae 0x552ec0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
jmp 0x553009
push 0
push 2
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.006197b0
jmp 0x552de3
mov edx, dword [edi + 0xe4]
test edx, edx
jne 0x552ef7
mov edx, dword [edi + 0xe8]
add edx, dword [edi + 0xe0]
xor ecx, ecx
mov dword [ebp - 0x38], ecx
cmp dword [eax + 0x58], ecx
je 0x552f16
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x1c]
cmp eax, edx
jbe 0x552fe8
sub eax, edx
jmp 0x552fe3
mov eax, dword [edi + 0xc0]
fld qword [eax + 0x3a8]
fmul qword [0x67c730]
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 0x552f7d
mov eax, dword [edi + 0xc0]
fld qword [eax + 0x3a8]
fmul qword [0x67c750]
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 0x552fe8
mov dword [ebp - 0x1c], ecx
mov ecx, edx
mov dword [ebp - 0x40], ecx
fldz
fcomp qword [ebx + 0x80]
fnstsw ax
test ah, 5
jp 0x552fc0
mov eax, dword [edi + 0xe8]
mov edi, dword [edi + 0xe0]
mov dword [ebp - 0x28], edi
add edi, eax
cmp edx, edi
jb 0x552fc0
sub ecx, dword [ebp - 0x28]
sub ecx, eax
mov dword [ebp - 0x40], ecx
lea eax, [ecx + ecx*4]
cmp eax, 0x2da0
jae 0x552fd2
add ecx, 0x2da0
jmp 0x552fd9
lea ecx, [ecx + ecx + 0x5b43]
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
jae 0x552fe8
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 0x5530c6
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.00619860
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.006197b0
mov dword [esi + 0x88], eax
cmp dword [esi + 0x8c], eax
jae 0x5530bb
push str.Err_in_Chl:Ins__endPacket___startPacket__n
mov ecx, ebx
call fcn.0054c580
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0054c530
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.005e9ab2
add esp, 4
xor eax, eax
wait
jmp 0x5532c9
dec eax
mov edx, dword [edi]
mov dword [edx + 0x8c], eax
jmp 0x5530c9
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 0x553112
mov eax, dword [edi + 0x5c]
cmp dword [eax], 0
je 0x553112
mov eax, dword [eax]
mov ecx, dword [edi]
mov edx, dword [eax + 0x60]
cmp edx, dword [ecx + 0x60]
jne 0x553112
mov edx, dword [eax + 0x64]
cmp edx, dword [ecx + 0x64]
jne 0x553112
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 0x55326d
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 0x553147
mov eax, dword [edi + 0x58]
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x30], ecx
jmp 0x55314e
mov dword [ebp - 0x30], 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x60]
push eax
push 0x66e42c
lea ecx, [ebp + 0x100]
push ecx
call fcn.006186ab
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.006186ab
add esp, 0x18
lea ecx, [ebp]
push ecx
mov ecx, ebx
call fcn.0054c580
mov edx, dword [edi + 0x60]
push edx
push 0x66e42c
lea eax, [ebp + 0x100]
push eax
call fcn.006186ab
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 0x553213
push eax
push str.Error_reading_registry__errCode___d._n
lea edx, [ebp]
push edx
call fcn.006186ab
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.0054c580
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.006186ab
add esp, 0x1c
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.0054c580
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.00559150
mov ecx, dword [edi]
call fcn.00559150
mov eax, 1
wait
jmp 0x5532c9
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.006157d3
add ebp, 0x144
mov esp, ebp
pop ebp
ret 0x10