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

Disassembly:
push ebp
lea ebp, [esp - 0x144]
sub esp, 0x144
push 0xffffffffffffffff
push 0x65d023
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x755898]
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 0x559f54
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.00559ac0
test eax, eax
je 0x55a1fb
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 0x55a799
cmp dword [ebx + 0xcc], edi
je 0x559fc4
mov eax, dword [esi + 0xc0]
mov byte [eax + 0x171], 1
push esi
mov ecx, ebx
call fcn.00557cf0
test eax, eax
je 0x559fc4
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 0x559fb2
cmp eax, 5
je 0x559fb2
mov ecx, esi
call fcn.00560630
mov eax, 1
wait
jmp 0x55a799
mov byte [esi + 0xde], 1
mov eax, 1
wait
jmp 0x55a799
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.005539c0
cmp byte [ebx + 0xe4], 0
je 0x55a02b
mov edx, dword [ebx + 0xd8]
cmp dword [edx], edi
jne 0x55a02b
cmp dword [ebp + 0x150], edi
jne 0x55a02b
cmp dword [ebx + 0xcc], edi
jne 0x55a02b
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.005539d0
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x55a02b
mov ecx, dword [ebp - 0x20]
cmp ecx, edi
jg 0x55a054
jl 0x55a02b
cmp dword [ebp - 0x24], 0x5b43
jae 0x55a054
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.00553b40
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x20]
jmp 0x55a05a
mov edi, dword [ebp + 0x154]
test eax, eax
je 0x55a207
test ecx, ecx
jg 0x55a07e
jl 0x55a071
cmp dword [ebp - 0x24], 0x5b43
jae 0x55a07e
cmp dword [ebp + 0x150], 0
je 0x55a207
test edi, edi
je 0x55a09f
lea edi, [edi + edi*2]
xor eax, eax
cmp ecx, eax
jg 0x55a09f
jl 0x55a092
cmp dword [ebp - 0x24], edi
jae 0x55a09f
cmp dword [ebp + 0x150], 0
je 0x55a207
push 0x70
call fcn.005f1588
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x55a0bd
mov ecx, eax
call fcn.0055f950
jmp 0x55a0bf
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
test eax, eax
je 0x55a207
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 0x55a0f0
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.005f15c2
add esp, 4
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x55a136
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00553970
xor eax, eax
wait
jmp 0x55a799
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.0040fce0
add esp, 0x10
push edi
mov ecx, dword [ebp - 0x18]
call fcn.0055f660
test eax, eax
je 0x55a18f
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00553970
push edi
call fcn.005f15b7
add esp, 4
xor eax, eax
wait
jmp 0x55a799
push edi
lea ecx, [esi + 0x10]
call fcn.00569460
mov dword [ebp - 0x28], eax
test eax, eax
je 0x55a20f
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 3
push edi
lea ecx, [ebp - 0x1c]
call fcn.00418200
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.005539c0
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00553970
push edi
call fcn.005f15b7
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 0x55a799
mov ecx, esi
call fcn.00553680
push edi
call fcn.005f15b7
add esp, 4
push 0x6a9658
mov ecx, ebx
call fcn.005539c0
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 0x55a3b1
cmp ecx, 5
je 0x55a3b1
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 0x55a2c8
cmp dword [ebp + 0x150], edx
jne 0x55a2c8
mov ecx, dword [ebx + 0x88]
cmp eax, ecx
jne 0x55a2c8
cmp dword [ecx + 0x58], edx
jne 0x55a2c8
mov ecx, dword [ebx + 0xd8]
cmp dword [ecx], edx
jne 0x55a2c8
mov ecx, dword [esi + 0xc0]
cmp dword [ecx + 0xb8], 2
jne 0x55a2c8
cmp dword [ebp - 0x20], edx
jl 0x55a2ad
jg 0x55a2a6
cmp dword [ebp - 0x24], 0xb680
jbe 0x55a2ad
mov eax, 0x5b40
jmp 0x55a2b2
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 0x55a4d9
cmp dword [ebp - 0x1c], 0
je 0x55a2f5
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 0x55a4d9
test edx, edx
jne 0x55a39b
cmp dword [ebp + 0x150], edx
jne 0x55a39b
cmp eax, dword [ebx + 0x88]
jne 0x55a39b
mov ecx, dword [esi + 0xc0]
cmp byte [ecx + 0x171], dl
jne 0x55a39b
mov edx, dword [eax]
mov eax, dword [edx + 0xc0]
cmp dword [eax + 0x24], 3
je 0x55a39b
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.00621c40
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.006212e0
mov ecx, dword [esi + 0x70]
sub ecx, eax
mov eax, dword [esi + 0x74]
sbb eax, edx
cmp dword [ebp - 0x28], eax
jg 0x55a390
jl 0x55a38a
cmp dword [ebp - 0x2c], ecx
jae 0x55a390
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
jmp 0x55a4d9
push 0
push 2
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.006212e0
jmp 0x55a2b3
mov edx, dword [edi + 0xe4]
test edx, edx
jne 0x55a3c7
mov edx, dword [edi + 0xe8]
add edx, dword [edi + 0xe0]
xor ecx, ecx
mov dword [ebp - 0x38], ecx
cmp dword [eax + 0x58], ecx
je 0x55a3e6
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x1c]
cmp eax, edx
jbe 0x55a4b8
sub eax, edx
jmp 0x55a4b3
mov eax, dword [edi + 0xc0]
fld qword [eax + 0x3a8]
fmul qword [0x684830]
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 0x55a44d
mov eax, dword [edi + 0xc0]
fld qword [eax + 0x3a8]
fmul qword [0x684850]
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 0x55a4b8
mov dword [ebp - 0x1c], ecx
mov ecx, edx
mov dword [ebp - 0x40], ecx
fldz
fcomp qword [ebx + 0x80]
fnstsw ax
test ah, 5
jp 0x55a490
mov eax, dword [edi + 0xe8]
mov edi, dword [edi + 0xe0]
mov dword [ebp - 0x28], edi
add edi, eax
cmp edx, edi
jb 0x55a490
sub ecx, dword [ebp - 0x28]
sub ecx, eax
mov dword [ebp - 0x40], ecx
lea eax, [ecx + ecx*4]
cmp eax, 0x2da0
jae 0x55a4a2
add ecx, 0x2da0
jmp 0x55a4a9
lea ecx, [ecx + ecx + 0x5b43]
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
jae 0x55a4b8
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 0x55a596
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.00621390
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.006212e0
mov dword [esi + 0x88], eax
cmp dword [esi + 0x8c], eax
jae 0x55a58b
push str.Err_in_Chl:Ins__endPacket___startPacket__n
mov ecx, ebx
call fcn.005539c0
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00553970
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.005f15b7
add esp, 4
xor eax, eax
wait
jmp 0x55a799
dec eax
mov edx, dword [edi]
mov dword [edx + 0x8c], eax
jmp 0x55a599
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 0x55a5e2
mov eax, dword [edi + 0x5c]
cmp dword [eax], 0
je 0x55a5e2
mov eax, dword [eax]
mov ecx, dword [edi]
mov edx, dword [eax + 0x60]
cmp edx, dword [ecx + 0x60]
jne 0x55a5e2
mov edx, dword [eax + 0x64]
cmp edx, dword [ecx + 0x64]
jne 0x55a5e2
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 0x55a73d
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 0x55a617
mov eax, dword [edi + 0x58]
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x30], ecx
jmp 0x55a61e
mov dword [ebp - 0x30], 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x60]
push eax
push 0x676424
lea ecx, [ebp + 0x100]
push ecx
call fcn.006201db
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.006201db
add esp, 0x18
lea ecx, [ebp]
push ecx
mov ecx, ebx
call fcn.005539c0
mov edx, dword [edi + 0x60]
push edx
push 0x676424
lea eax, [ebp + 0x100]
push eax
call fcn.006201db
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 0x55a6e3
push eax
push str.Error_reading_registry__errCode___d._n
lea edx, [ebp]
push edx
call fcn.006201db
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.005539c0
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.006201db
add esp, 0x1c
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.005539c0
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.00560630
mov ecx, dword [edi]
call fcn.00560630
mov eax, 1
wait
jmp 0x55a799
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.0061d2ff
add ebp, 0x144
mov esp, ebp
pop ebp
ret 0x10