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

Disassembly:
push ebp
lea ebp, [esp - 0x10c]
sub esp, 0x10c
push 0xffffffffffffffff
push 0x637463
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x108], 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 - 0x38], ebx
mov esi, dword [ebp + 0x114]
xor edi, edi
mov dword [ebp - 4], edi
wait
cmp dword [ebx + 0x18], edi
je 0x547204
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push esi
mov ecx, ebx
call fcn.00546da0
test eax, eax
je 0x5474cb
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.00402550
lea eax, [edi + 1]
wait
jmp 0x547a7b
cmp dword [ebx + 0xcc], edi
je 0x547274
mov eax, dword [esi + 0xb0]
mov byte [eax + 0x169], 1
push esi
mov ecx, ebx
call fcn.00544fb0
test eax, eax
je 0x547274
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ecx
mov edx, dword [esi + 0x90]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, dword [esi + 0xb0]
mov eax, dword [ecx + 0x24]
cmp eax, 4
je 0x547262
cmp eax, 5
je 0x547262
mov ecx, esi
call fcn.0054c7f0
mov eax, 1
wait
jmp 0x547a7b
mov byte [esi + 0xce], 1
mov eax, 1
wait
jmp 0x547a7b
mov byte [esi + 0xce], 0
mov dword [ebp + 0x100], edi
mov dword [ebp + 0x104], edi
push str.Insert_next_chunk_in_list_n
mov ecx, ebx
call fcn.00540ff0
cmp byte [ebx + 0xe4], 0
je 0x5472ea
mov edx, dword [ebx + 0xd8]
cmp dword [edx], edi
jne 0x5472ea
cmp dword [ebp + 0x118], edi
jne 0x5472ea
cmp dword [ebx + 0xcc], edi
jne 0x5472ea
mov dword [ebp - 0x1c], 1
lea eax, [ebp + 0x100]
push eax
mov ecx, ebx
call fcn.00541000
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x5472ea
mov ecx, dword [ebp + 0x104]
cmp ecx, edi
jg 0x54731f
jl 0x5472ea
cmp dword [ebp + 0x100], 0x5b43
jae 0x54731f
xor eax, eax
mov dword [ebp + 0x100], eax
mov dword [ebp + 0x104], eax
mov edi, dword [ebp + 0x11c]
push edi
lea ecx, [ebp + 0x100]
push ecx
mov ecx, ebx
call fcn.00541170
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 0x104]
jmp 0x547325
mov edi, dword [ebp + 0x11c]
test eax, eax
je 0x5474d7
test ecx, ecx
jg 0x54734c
jl 0x54733f
cmp dword [ebp + 0x100], 0x5b43
jae 0x54734c
cmp dword [ebp + 0x118], 0
je 0x5474d7
test edi, edi
je 0x547370
lea edi, [edi + edi*2]
xor eax, eax
cmp ecx, eax
jg 0x547370
jl 0x547363
cmp dword [ebp + 0x100], edi
jae 0x547370
cmp dword [ebp + 0x118], 0
je 0x5474d7
push 0x70
call fcn.005cfa6c
add esp, 4
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x54738e
mov ecx, eax
call fcn.0054bbb0
jmp 0x547390
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
test eax, eax
je 0x5474d7
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 ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5473c0
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.005cfaa6
add esp, 4
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x547406
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00540fa0
xor eax, eax
wait
jmp 0x547a7b
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.0040fac0
add esp, 0x10
push edi
mov ecx, dword [ebp - 0x18]
call fcn.0054b8c0
test eax, eax
je 0x54745f
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00540fa0
push edi
call fcn.005cfa9b
add esp, 4
xor eax, eax
wait
jmp 0x547a7b
push edi
lea ecx, [esi + 0x10]
call fcn.00554f70
mov dword [ebp - 0x20], eax
test eax, eax
je 0x5474df
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov byte [ebp - 4], 3
push edi
lea ecx, [ebp - 0x1c]
call fcn.00417ab0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x20]
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.00402f60
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.00540ff0
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00540fa0
push edi
call fcn.005cfa9b
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00402550
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402550
xor eax, eax
wait
jmp 0x547a7b
mov ecx, esi
call fcn.00540df0
push edi
call fcn.005cfa9b
add esp, 4
push 0x681698
mov ecx, ebx
call fcn.00540ff0
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
mov ecx, dword [edi + 0xb0]
mov ecx, dword [ecx + 0x24]
cmp ecx, 4
je 0x547693
cmp ecx, 5
je 0x547693
mov ecx, dword [edi + 0x60]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0x64]
mov dword [esi + 0x64], edx
mov edx, dword [ebx + 0xcc]
test edx, edx
jne 0x54759e
cmp dword [ebp + 0x118], edx
jne 0x54759e
mov ecx, dword [ebx + 0x88]
cmp eax, ecx
jne 0x54759e
cmp dword [ecx + 0x58], edx
jne 0x54759e
mov ecx, dword [ebx + 0xd8]
cmp dword [ecx], edx
jne 0x54759e
mov ecx, dword [esi + 0xb0]
cmp dword [ecx + 0xb8], 2
jne 0x54759e
cmp dword [ebp + 0x104], edx
jl 0x547583
jg 0x54757c
cmp dword [ebp + 0x100], 0xb680
jbe 0x547583
mov eax, 0x5b40
jmp 0x547588
mov eax, 0x2da0
cdq
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 0x5477c7
cmp dword [ebp - 0x1c], 0
je 0x5475cb
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 0xe0], ecx
mov edx, dword [ebx + 0xe8]
mov dword [esi + 0x50], edx
mov eax, dword [ebx + 0xec]
mov dword [esi + 0x54], eax
mov byte [ebx + 0xe4], 0
jmp 0x5477c7
test edx, edx
jne 0x547677
cmp dword [ebp + 0x118], edx
jne 0x547677
cmp eax, dword [ebx + 0x88]
jne 0x547677
mov ecx, dword [esi + 0xb0]
cmp byte [ecx + 0x169], dl
jne 0x547677
mov edx, dword [eax]
mov eax, dword [edx + 0xb0]
cmp dword [eax + 0x24], 3
je 0x547677
mov byte [ecx + 0x169], 1
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx]
mov edx, dword [edi + 0x68]
add edx, 0x2da0
mov eax, dword [edi + 0x6c]
adc eax, 0
push 0
push 0xa
push eax
push edx
call fcn.005fd4d0
add eax, dword [edi + 0x50]
mov dword [ebp - 0x24], eax
adc edx, dword [edi + 0x54]
mov dword [ebp - 0x20], edx
push 0
push 2
mov ecx, dword [ebp + 0x104]
push ecx
mov edx, dword [ebp + 0x100]
push edx
call fcn.005fc580
mov ecx, dword [esi + 0x60]
sub ecx, eax
mov eax, dword [esi + 0x64]
sbb eax, edx
cmp dword [ebp - 0x20], eax
jg 0x54766c
jl 0x547666
cmp dword [ebp - 0x24], ecx
jae 0x54766c
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], eax
jmp 0x5477c7
push 0
push 2
mov eax, dword [ebp + 0x104]
push eax
mov ecx, dword [ebp + 0x100]
push ecx
call fcn.005fc580
jmp 0x547589
mov edx, dword [edi + 0xd4]
test edx, edx
jne 0x5476a9
mov edx, dword [edi + 0xd8]
add edx, dword [edi + 0xd0]
xor ecx, ecx
mov dword [ebp - 0x30], ecx
cmp dword [eax + 0x58], ecx
je 0x5476c8
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x1c]
cmp eax, edx
jbe 0x5477a6
sub eax, edx
jmp 0x5477a1
mov eax, dword [edi + 0xb0]
fld qword [eax + 0x390]
fmul qword [0x65d2f8]
fnstcw word [ebp - 0x1a]
movzx eax, word [ebp - 0x1a]
or eax, 0xc00
mov dword [ebp - 0x20], eax
fldcw word [ebp - 0x20]
fistp qword [ebp + 0x100]
fldcw word [ebp - 0x1a]
mov eax, dword [ebp + 0x100]
cmp eax, edx
jbe 0x54773b
mov eax, dword [edi + 0xb0]
fld qword [eax + 0x390]
fmul qword [0x65d318]
fnstcw word [ebp - 0x1a]
movzx eax, word [ebp - 0x1a]
or eax, 0xc00
mov dword [ebp - 0x20], eax
fldcw word [ebp - 0x20]
fistp qword [ebp + 0x100]
fldcw word [ebp - 0x1a]
mov eax, dword [ebp + 0x100]
mov ecx, edx
neg ecx
sub ecx, eax
mov dword [ebp - 0x30], ecx
mov eax, dword [esi + 0xb0]
cmp byte [eax + 0x325], 0
jne 0x5477a6
mov dword [ebp - 0x1c], ecx
mov ecx, edx
mov dword [ebp - 0x3c], ecx
fldz
fcomp qword [ebx + 0x80]
fnstsw ax
test ah, 5
jp 0x54777e
mov eax, dword [edi + 0xd8]
mov edi, dword [edi + 0xd0]
mov dword [ebp - 0x20], edi
add edi, eax
cmp edx, edi
jb 0x54777e
sub ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x3c], ecx
lea eax, [ecx + ecx*4]
cmp eax, 0x2da0
jae 0x547790
add ecx, 0x2da0
jmp 0x547797
lea ecx, [ecx + ecx + 0x5b43]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
jae 0x5477a6
mov ecx, eax
mov dword [ebp - 0x30], ecx
shr ecx, 1
add ecx, edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x1c], ecx
mov dword [esi + 0xd0], ecx
xor ecx, ecx
mov dword [esi + 0xd8], ecx
mov edx, dword [eax + 0x1c]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], ecx
cmp dword [ebp + 0x11c], 0
je 0x547878
mov eax, dword [ebp + 0x120]
xor ecx, ecx
mov edi, dword [esi + 0x50]
mov dword [ebp + 0x104], ecx
mov edx, edi
sub edx, eax
mov eax, dword [esi + 0x54]
sbb eax, ecx
push ecx
mov ecx, dword [ebp + 0x11c]
push ecx
push eax
push edx
call fcn.005fc630
mov edx, dword [ebp + 0x11c]
sub edx, eax
xor eax, eax
add edx, edi
adc eax, dword [esi + 0x54]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x7c]
mov dword [esi + 0x7c], edx
mov ecx, dword [esi + 0x50]
sub ecx, dword [ebp + 0x120]
mov edx, eax
mov eax, 0
sbb edx, eax
push eax
mov eax, dword [ebp + 0x11c]
push eax
push edx
push ecx
call fcn.005fc580
mov dword [esi + 0x78], eax
cmp dword [esi + 0x7c], eax
jae 0x547870
push str.Err_in_Chl:Ins__endPacket___startPacket__n
mov ecx, ebx
call fcn.00540ff0
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00540fa0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.005cfa9b
add esp, 4
xor eax, eax
wait
jmp 0x547a7b
dec eax
mov edx, dword [edi]
mov dword [edx + 0x7c], eax
jmp 0x54787b
mov edi, dword [ebp - 0x14]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov ecx, dword [esi + 0x50]
sub ecx, 1
mov edx, dword [esi + 0x54]
sbb edx, eax
mov eax, dword [edi]
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], edx
cmp dword [edi + 0x5c], 0
je 0x5478c4
mov eax, dword [edi + 0x5c]
cmp dword [eax], 0
je 0x5478c4
mov eax, dword [eax]
mov ecx, dword [edi]
mov edx, dword [eax + 0x50]
cmp edx, dword [ecx + 0x50]
jne 0x5478c4
mov edx, dword [eax + 0x54]
cmp edx, dword [ecx + 0x54]
jne 0x5478c4
mov edx, dword [ecx + 0x60]
mov dword [eax + 0x60], edx
mov ecx, dword [ecx + 0x64]
mov dword [eax + 0x64], ecx
cmp dword [ebx + 0xdc], 0
je 0x547a1f
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x60]
mov dword [ebp - 0x2c], edx
mov eax, dword [eax]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 0x54]
mov dword [ebp - 0x20], edx
cmp dword [edi + 0x58], 0
je 0x5478f9
mov eax, dword [edi + 0x58]
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x28], ecx
jmp 0x547900
mov dword [ebp - 0x28], 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x60]
push eax
push 0x64f36c
lea ecx, [ebp + 0x100]
push ecx
call fcn.005fb4cb
add esp, 0xc
push 0x10
lea edx, [ebp - 0x2c]
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 - 0x28]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push str.Adding_record_to_registry_with_ID__d__startPos__I64d__nextID__d_n
lea eax, [ebp]
push eax
call fcn.005fb4cb
add esp, 0x18
lea ecx, [ebp]
push ecx
mov ecx, ebx
call fcn.00540ff0
mov edx, dword [edi + 0x60]
push edx
push 0x64f36c
lea eax, [ebp + 0x100]
push eax
call fcn.005fb4cb
add esp, 0xc
mov dword [ebp - 0x34], 0x10
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x2c]
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 0x5479c5
push eax
push str.Error_reading_registry__errCode___d._n
lea edx, [ebp]
push edx
call fcn.005fb4cb
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.00540ff0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x60]
mov dword [ebp - 0x28], edx
push 0x10
lea eax, [ebp - 0x2c]
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 - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x2c]
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.005fb4cb
add esp, 0x1c
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.00540ff0
mov ecx, dword [edi + 0x58]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x58], ecx
mov dword [edi + 0x58], eax
mov dword [esi + 0x90], eax
mov edx, dword [esi + 0x50]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x54]
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 0x50]
mov dword [esi + 0x58], edx
mov eax, dword [esi + 0x54]
mov dword [esi + 0x5c], eax
mov ecx, esi
call fcn.0054c7f0
mov ecx, dword [edi]
call fcn.0054c7f0
mov eax, 1
wait
jmp 0x547a7b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x108]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x10c
mov esp, ebp
pop ebp
ret 0x10