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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x629d4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x18]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], edi
je 0x544704
mov eax, dword [0x6cc708]
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push esi
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.005442d0
cmp eax, edi
jne 0x5446d5
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.00602ad6
jmp 0x5448d7
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 4]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.00602ad6
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
mov eax, dword [ebx + 0xcc]
mov esi, dword [ebp + 8]
cmp eax, edi
je 0x544797
mov ecx, dword [esi + 0xb0]
push esi
mov byte [ecx + 0x161], 1
mov ecx, ebx
call fcn.0054a0f0
cmp eax, edi
je 0x544797
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x90]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ecx
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 0x24]
cmp eax, 4
je 0x544778
cmp eax, 5
je 0x544778
mov ecx, esi
call fcn.00550790
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
mov byte [esi + 0xce], 1
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 byte [esi + 0xce], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00541a30
mov al, byte [ebx + 0xe4]
test al, al
je 0x5447fc
mov ecx, dword [ebx + 0xd8]
cmp dword [ecx], edi
jne 0x5447fc
cmp dword [ebp + 0xc], edi
jne 0x5447fc
cmp dword [ebx + 0xcc], edi
jne 0x5447fc
lea edx, [ebp - 0x18]
mov ecx, ebx
push edx
mov dword [ebp - 0x30], 1
call fcn.00544f20
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x5447fc
mov ecx, dword [ebp - 0x14]
cmp ecx, edi
jg 0x544822
jl 0x5447fc
cmp dword [ebp - 0x18], 0x5b43
jae 0x544822
mov edi, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push edi
push eax
mov ecx, ebx
call fcn.00545040
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], 0
jmp 0x544825
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x5448d7
test ecx, ecx
jg 0x544847
jl 0x54483c
cmp dword [ebp - 0x18], 0x5b43
jae 0x544847
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5448d7
test edi, edi
je 0x544862
xor eax, eax
lea edi, [edi + edi*2]
cmp ecx, eax
jg 0x544862
jl 0x54485b
cmp dword [ebp - 0x18], edi
jae 0x544862
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5448d7
push 0x70
call fcn.005feedc
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
test ecx, ecx
mov byte [ebp - 4], 2
je 0x544880
call fcn.0054bc10
jmp 0x544882
xor eax, eax
test eax, eax
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0
je 0x5448d7
mov ecx, dword [ebx + 0xd4]
mov dword [eax + 0x64], ecx
mov edx, dword [ebx + 0xdc]
mov dword [eax + 0x68], edx
mov eax, dword [ebx + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.005e639f
lea edx, [eax + eax + 0x14]
push edx
call fcn.005feedc
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp - 0x40], edi
jne 0x5448ec
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0054bc60
push esi
call fcn.005fef05
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
mov ecx, dword [ebx + 0x94]
inc ecx
mov dword [ebx + 0x94], ecx
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x60], eax
mov eax, dword [ebx + 0x88]
mov edx, dword [ebx + 0x94]
mov ecx, dword [eax + 0x10]
push edx
push ecx
push str._s_d
push edi
call fcn.005e72e7
mov ecx, dword [ebp + 8]
add esp, 0x10
push edi
call fcn.0054bcf0
test eax, eax
je 0x544943
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0054bc60
push esi
call fcn.005fef05
add esp, 4
push edi
jmp 0x5448cf
push edi
lea ecx, [esi + 0x10]
call fcn.00554e50
test eax, eax
je 0x5449a8
mov edx, dword [0x6cc708]
mov dword [ebp + 0xc], edx
push eax
push edi
lea eax, [ebp + 0xc]
push str.Error_opening_file__ls__errcode___ld._n
push eax
mov byte [ebp - 4], 3
call fcn.005fb90b
mov ecx, dword [ebp + 0xc]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.00541a30
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0054bc60
push esi
call fcn.005fef05
add esp, 4
push edi
call fcn.005fef05
add esp, 4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.00602ad6
jmp 0x5448d7
push edi
mov dword [esi + 0x17c], 0x40
mov dword [esi + 0x180], 0
mov byte [esi + 0xc6], 0
mov byte [esi + 0xc7], 0
call fcn.005fef05
add esp, 4
mov ecx, ebx
push 0x6bcf00
call fcn.00541a30
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [edi], esi
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
mov ecx, dword [eax + 0xb0]
mov ecx, dword [ecx + 0x24]
cmp ecx, 4
je 0x544b7c
cmp ecx, 5
je 0x544b7c
mov ecx, dword [eax + 0x60]
mov dword [esi + 0x60], ecx
mov eax, dword [eax + 0x64]
mov dword [esi + 0x64], eax
mov ecx, dword [ebx + 0xcc]
test ecx, ecx
jne 0x544a74
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x544a74
mov eax, dword [ebx + 0x88]
cmp edx, eax
jne 0x544a74
cmp dword [eax + 0x58], ecx
jne 0x544a74
mov eax, dword [ebx + 0xd8]
cmp dword [eax], ecx
jne 0x544a74
mov eax, dword [esi + 0xb0]
cmp dword [eax + 0xb8], 2
jne 0x544a74
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x544a69
jg 0x544a5e
cmp dword [ebp - 0x18], 0xb680
jbe 0x544a69
mov eax, 0x5b40
cdq
jmp 0x544b67
mov eax, 0x2da0
cdq
jmp 0x544b67
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x544a9f
mov ecx, dword [ebx + 0xe8]
mov dword [ebx + 0xe0], edi
mov dword [esi + 0x50], ecx
mov edx, dword [ebx + 0xec]
mov dword [esi + 0x54], edx
mov byte [ebx + 0xe4], 0
jmp 0x544c7d
test ecx, ecx
jne 0x544b56
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x544b56
cmp edx, dword [ebx + 0x88]
jne 0x544b56
mov eax, dword [esi + 0xb0]
mov cl, byte [eax + 0x161]
test cl, cl
jne 0x544b56
mov ecx, dword [edx]
mov edx, dword [ecx + 0xb0]
cmp dword [edx + 0x24], 3
je 0x544b56
mov byte [eax + 0x161], 1
mov eax, dword [ebp - 0x1c]
push 0
push 0xa
mov edi, dword [eax]
mov ecx, dword [edi + 0x68]
mov edx, dword [edi + 0x6c]
add ecx, 0x2da0
adc edx, 0
push edx
push ecx
call fcn.005e8c50
mov ecx, dword [edi + 0x50]
mov ebx, edx
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x54]
adc ebx, eax
mov eax, dword [ebp - 0x14]
push 0
push 2
push eax
push ecx
call fcn.005e8260
mov ecx, dword [esi + 0x60]
sub ecx, eax
mov eax, dword [esi + 0x64]
sbb eax, edx
cmp ebx, eax
jg 0x544b49
jl 0x544b3b
cmp dword [ebp - 0x34], ecx
jae 0x544b49
mov ecx, dword [ebp - 0x34]
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ebx
jmp 0x544c7d
mov ebx, eax
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ebx
jmp 0x544c7d
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push 2
push edx
push eax
call fcn.005e8260
mov ecx, dword [esi + 0x60]
sub ecx, eax
mov eax, dword [esi + 0x64]
sbb eax, edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], eax
jmp 0x544c7d
mov ecx, dword [eax + 0xd4]
test ecx, ecx
jne 0x544b94
mov ecx, dword [eax + 0xd8]
mov edx, dword [eax + 0xd0]
add ecx, edx
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x1c]
xor edi, edi
mov eax, dword [ecx + 0x58]
test eax, eax
je 0x544bba
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jbe 0x544c59
sub eax, ecx
mov edi, eax
jmp 0x544c59
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0xb0]
fld qword [eax + 0x360]
fmul qword [0x6359f0]
call fcn.005e6974
cmp eax, dword [ebp + 0xc]
jbe 0x544bfa
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xb0]
fld qword [eax + 0x360]
fmul qword [0x635a00]
call fcn.005e6974
mov edi, dword [ebp + 0xc]
neg edi
sub edi, eax
mov ecx, dword [esi + 0xb0]
mov al, byte [ecx + 0x311]
test al, al
jne 0x544c59
fld qword [ebx + 0x80]
fcomp qword [0x633d48]
mov ecx, dword [ebp + 0xc]
mov edx, edi
fnstsw ax
test ah, 0x41
jne 0x544c3c
mov edi, dword [ebp - 0x3c]
mov eax, dword [edi + 0xd8]
mov edi, dword [edi + 0xd0]
lea ebx, [edi + eax]
cmp ecx, ebx
jb 0x544c3c
sub ecx, edi
sub ecx, eax
lea eax, [ecx + ecx*4]
lea edi, [ecx + 0x2da0]
cmp eax, 0x2da0
jb 0x544c53
lea edi, [ecx + ecx + 0x5b43]
cmp edx, edi
jae 0x544c59
mov edi, edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
shr edi, 1
add edi, ecx
xor ecx, ecx
mov dword [eax + 0x1c], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd8], ecx
mov edx, dword [eax + 0x1c]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], ecx
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x544d18
mov ebx, dword [esi + 0x50]
mov eax, dword [ebp + 0x14]
mov edx, ebx
xor ecx, ecx
sub edx, eax
mov eax, dword [esi + 0x54]
sbb eax, ecx
push ecx
push edi
push eax
push edx
mov dword [ebp - 0x30], ecx
call fcn.005e8310
mov edx, edi
sub edx, eax
xor eax, eax
add edx, ebx
mov ebx, dword [esi + 0x54]
adc eax, ebx
mov ebx, dword [ebp - 0x1c]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x7c]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x7c], edx
mov edx, dword [ebp + 0x14]
sub ecx, edx
mov edx, eax
mov eax, 0
sbb edx, eax
push eax
push edi
push edx
push ecx
call fcn.005e8260
mov ecx, dword [esi + 0x7c]
mov dword [esi + 0x78], eax
cmp ecx, eax
jae 0x544d10
mov ecx, dword [ebp - 0x38]
push str.Err_in_Chl:Ins__endPacket___startPacket__n
call fcn.00541a30
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0054bc60
push esi
call fcn.005fef05
mov eax, dword [ebp - 0x40]
add esp, 4
push eax
jmp 0x5448cf
mov ecx, dword [ebx]
dec eax
mov dword [ecx + 0x7c], eax
jmp 0x544d1b
mov ebx, dword [ebp - 0x1c]
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x54]
xor ecx, ecx
sub edx, 1
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], ecx
mov edi, dword [ebx]
sbb eax, ecx
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], eax
mov eax, dword [ebx + 0x5c]
cmp eax, ecx
je 0x544d63
mov eax, dword [eax]
cmp eax, ecx
je 0x544d63
mov ecx, dword [ebx]
mov edx, dword [eax + 0x50]
cmp edx, dword [ecx + 0x50]
jne 0x544d63
mov edx, dword [eax + 0x54]
mov edi, dword [ecx + 0x54]
cmp edx, edi
jne 0x544d63
mov edx, dword [ecx + 0x60]
mov dword [eax + 0x60], edx
mov ecx, dword [ecx + 0x64]
mov dword [eax + 0x64], ecx
mov edi, dword [ebp - 0x38]
mov eax, dword [edi + 0xdc]
test eax, eax
je 0x544eba
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x60]
mov edx, dword [ecx]
mov dword [ebp - 0x2c], eax
mov ecx, dword [edx + 0x50]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebx + 0x58]
mov edx, dword [edx + 0x54]
test ecx, ecx
mov dword [ebp - 0x20], edx
je 0x544d9a
mov ecx, dword [ecx + 0x60]
mov dword [ebp - 0x28], ecx
jmp 0x544da1
mov dword [ebp - 0x28], 0xffffffff
push eax
lea edx, [ebp - 0x44]
push 0x6a00e4
push edx
call fcn.005e6db3
mov edx, dword [edi + 0xdc]
add esp, 0xc
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push 0x10
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x2c]
push ecx
push edx
push eax
lea ecx, [ebp - 0x144]
push str.Adding_record_to_registry_with_ID__d__startPos__I64d__nextID__d_n
push ecx
call fcn.005e6db3
add esp, 0x18
lea edx, [ebp - 0x144]
mov ecx, edi
push edx
call fcn.00541a30
mov eax, dword [ebx + 0x60]
lea ecx, [ebp - 0x44]
push eax
push 0x6a00e4
push ecx
call fcn.005e6db3
add esp, 0xc
lea edx, [ebp + 0x10]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push edx
mov edx, dword [edi + 0xdc]
push eax
push 0
push 0
push ecx
push edx
mov dword [ebp + 0x10], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x544e60
push eax
lea eax, [ebp - 0x144]
push str.Error_reading_registry__errCode___d._n
push eax
call fcn.005e6db3
add esp, 0xc
lea ecx, [ebp - 0x144]
push ecx
mov ecx, edi
call fcn.00541a30
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push 0x10
push ecx
mov eax, dword [edx + 0x60]
push 0
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0xdc]
lea edx, [ebp - 0x44]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x2c]
push edx
push eax
lea edx, [ebp - 0x44]
push ecx
push edx
lea eax, [ebp - 0x144]
push str.Updating_record_with_num__s:_set_ID__d__startPos__I64d__nextID__d_n
push eax
call fcn.005e6db3
add esp, 0x1c
lea ecx, [ebp - 0x144]
push ecx
mov ecx, edi
call fcn.00541a30
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x58]
mov dword [eax + 0x58], edx
mov dword [ebx + 0x58], eax
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x90], eax
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x54]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ecx
mov ecx, esi
call fcn.00550790
mov ecx, dword [ebx]
call fcn.00550790
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