Function at 0x548620
Capabilities:
Delete registry value
Get file size
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62af5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x580
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], esp
mov edx, dword [ebx + 0xdc]
lea ecx, [ebp - 0x70]
xor esi, esi
push eax
push ecx
push esi
push esi
push 0x6a8834
push edx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 4], esi
mov dword [ebx + 0xcc], esi
mov dword [ebp - 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x548693
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 0xc
mov dword [ebx + 0xb8], esi
mov dword [ebx + 0xcc], 1
mov dword [ebx + 0xbc], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x24], si
mov eax, dword [ebx + 0x90]
mov byte [ebp - 4], 1
cmp eax, esi
je 0x548865
mov ecx, dword [0x6cd768]
mov dword [ebp - 0x58], ecx
push eax
lea edx, [ebp - 0x58]
push str.SoftwareDownloadManager_ld
push edx
mov byte [ebp - 4], 2
call fcn.005fc86b
add esp, 0xc
mov ecx, dword [ebp - 0x58]
lea eax, [ebp + 0x10]
push esi
push eax
push esi
push 0xf003f
push esi
push 0x6d1c98
push esi
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x58c]
push edx
push eax
push esi
push esi
push str.LocalFileName
push ecx
mov dword [ebp - 0x2c], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x548749
push str.Cannot_find_old_localFileName__e1148__n
mov ecx, ebx
call fcn.005427e0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00603a3c
jmp 0x548b80
lea edx, [ebp - 0x58c]
lea ecx, [ebp - 0x28]
push edx
call fcn.00402410
mov eax, dword [0x6cd768]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 3
cmp eax, esi
jne 0x54876e
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
push str.Loading_old_localFileName____ls_from_registry_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.005427e0
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
lea edi, [ebx + 0xa8]
push eax
push edi
push esi
push esi
push str.FileSize
push ecx
mov dword [ebp - 0x2c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5487c5
push str.Cannot_find_old_file_size_in_registry._n
mov ecx, ebx
call fcn.005427e0
mov dword [edi], esi
mov dword [edi + 4], esi
jmp 0x5487e8
mov edx, dword [edi + 4]
mov eax, dword [edi]
push edx
push eax
lea ecx, [ebp + 8]
push str.Loading_old_file_size__I64d_Bytes_from_registry_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp + 8]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.005427e0
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
push eax
push ecx
push esi
push esi
push str.Duration
push edx
mov dword [ebp - 0x2c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x54883e
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
mov edx, ecx
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0xbc], ecx
push edx
push eax
lea ecx, [ebp + 8]
push str.Loading_duration_from_registry:__f_sec_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp + 8]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.005427e0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00603a3c
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00603a3c
jmp 0x54894f
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x548b80
mov ecx, 0x6a10a0
test ecx, ecx
je 0x54893d
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x50], si
call fcn.00402410
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00401070
push 0x6a10a0
lea ecx, [ebp - 0x84]
call fcn.00402380
mov edi, dword [ebp - 0x7c]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.00402400
push eax
call fcn.005e71bf
lea eax, [eax + edi + 2]
mov dword [ebp + 8], eax
lea edi, [eax + eax]
push edi
call fcn.005ffe3f
mov edx, eax
add esp, 8
cmp edx, esi
mov dword [ebp - 0x28], edx
je 0x548922
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x54]
call fcn.00402400
push eax
lea ecx, [ebp - 0x84]
call fcn.00402400
mov ecx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call fcn.005e714f
mov edx, dword [ebp - 0x28]
push edx
call fcn.005e71bf
add esp, 0x14
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00401070
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], ecx
mov eax, dword [ebp - 0x28]
cmp eax, esi
jne 0x548959
lea eax, [ebp - 0x24]
push esi
push esi
lea edx, [ebp - 0xe4]
push esi
push edx
push eax
call fcn.005e7f83
mov eax, dword [ebp - 0x28]
add esp, 0x14
cmp eax, esi
jne 0x548976
lea eax, [ebp - 0x24]
push eax
push esi
mov ecx, ebx
call fcn.0054c720
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov word [ebp - 0x38], si
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], esi
mov word [ebp - 0x44], si
mov eax, dword [0x6cd768]
mov dword [ebp - 0x14], eax
push str.Rebuilding_old_downloaded_files_before_resume._n
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.005427e0
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0xa0], esi
cmp eax, esi
mov dword [ebx + 0xa4], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
jne 0x5489c7
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x74]
lea edx, [ebp - 0x1c]
push ecx
push edx
push eax
call fcn.00548570
add esp, 0xc
test eax, eax
jne 0x548a07
mov eax, dword [ebp - 0x28]
cmp eax, esi
jne 0x5489e6
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x14]
push ecx
push eax
push str.Err_1231__f_ls__e_ld._n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.005427e0
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebx + 0xa0]
mov edx, dword [ebp - 0x18]
add edi, ecx
mov dword [ebx + 0xa0], edi
mov ecx, dword [ebx + 0xa4]
adc ecx, edx
mov eax, ecx
mov dword [ebx + 0xa4], ecx
cmp eax, esi
jg 0x548a45
jl 0x548a39
cmp dword [ebx + 0xa0], esi
jae 0x548a45
mov dword [ebx + 0xa0], esi
mov dword [ebx + 0xa4], esi
mov eax, dword [ebx + 0xa0]
mov ecx, dword [ebx + 0xa4]
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x104], ecx
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xffffffff
jne 0x548add
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x70]
mov dword [ebx + 0xf8], eax
mov dword [ebx + 0xfc], ecx
push str.This_is_the_last_chunk._End_rebuilding._n
mov ecx, ebx
mov dword [ebx + 0xf0], edx
call fcn.005427e0
mov eax, dword [ebx + 0xdc]
lea edi, [ebx + 0xdc]
test eax, eax
je 0x548aac
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [0x6cd768]
mov dword [ebp - 0x78], eax
mov eax, dword [ebx + 0x90]
mov byte [ebp - 4], 0x11
test eax, eax
je 0x54950d
push eax
lea ecx, [ebp - 0x78]
push str.SoftwareDownloadManager_ldChList
push ecx
call fcn.005fc86b
add esp, 0xc
jmp 0x549526
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x548ae7
lea eax, [ebp - 0x24]
push eax
push ecx
mov ecx, ebx
call fcn.0054c720
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x60]
push edx
push 0x6a10e4
push eax
call fcn.005e7bd3
add esp, 0xc
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x70]
lea eax, [ebp - 0x60]
push ecx
mov ecx, dword [ebx + 0xdc]
push edx
push 0
push 0
push eax
push ecx
mov dword [ebp - 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x548ba2
push eax
lea edx, [ebp - 0x14]
push str.Error_reading_registry__errCode___d._End_rebuilding._n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.005427e0
mov ecx, dword [0x6d3690]
push ecx
mov ecx, dword [ebx + 0xd4]
call fcn.005559f0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00603a3c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401070
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
push edx
mov edx, dword [ebp - 0x70]
push eax
push ecx
lea eax, [ebp - 0x60]
push edx
push eax
lea ecx, [ebp - 0x14]
push str.Read_record_num.__s_from_registry:_ID___d__startPos___I64d__nextID___d_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x14]
add esp, 0x1c
mov ecx, ebx
push edx
call fcn.005427e0
mov eax, dword [ebp - 0x28]
test eax, eax
mov edi, eax
jne 0x548bde
lea edi, [ebp - 0x24]
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x17c]
push 0xa
push eax
push ecx
call fcn.005e8872
mov edx, 0x6a112c
add esp, 0xc
test edx, edx
mov esi, eax
je 0x548d26
test edi, edi
je 0x548d26
test esi, esi
je 0x548d26
xor eax, eax
lea ecx, [ebp - 0x90]
push eax
push edx
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x88], eax
mov word [ebp - 0x8c], ax
call fcn.00402e00
push edi
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 9
call fcn.0040e580
push esi
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0xa
call fcn.0040e580
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call fcn.00401070
mov edi, dword [ebp - 0x88]
lea ecx, [ebp - 0xc4]
call fcn.00402400
push eax
call fcn.005e71bf
add esp, 4
lea ecx, [ebp - 0xfc]
mov esi, eax
call fcn.00402400
push eax
call fcn.005e71bf
add edi, esi
lea esi, [eax + edi + 3]
lea edi, [esi + esi]
push edi
call fcn.005ffe3f
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x3c], edx
je 0x548cf9
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0xc4]
call fcn.00402400
push eax
lea ecx, [ebp - 0xfc]
call fcn.00402400
push eax
lea ecx, [ebp - 0x90]
call fcn.00402400
push eax
mov eax, dword [ebp - 0x3c]
push esi
push eax
call fcn.005e714f
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.005e71bf
add esp, 0x18
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0xa
call fcn.00401070
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 9
call fcn.00401070
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 8
call fcn.00401070
mov eax, dword [ebp - 0x3c]
xor esi, esi
cmp eax, esi
jne 0x548d32
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x1c]
push edx
push ecx
push eax
call fcn.00548570
add esp, 0xc
test eax, eax
jne 0x548d72
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x548d51
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x74]
push edx
push eax
lea eax, [ebp - 0x14]
push str.Err_1275__f_ls__e_ld._n
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.005427e0
mov eax, dword [ebp - 0x18]
cmp eax, esi
jl 0x5493e0
jg 0x548d88
cmp dword [ebp - 0x1c], esi
jbe 0x5493e0
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebx + 0xa0]
add edi, edx
mov byte [ebp + 0xb], 0
mov dword [ebx + 0xa0], edi
mov edx, dword [ebx + 0xa4]
adc edx, eax
mov eax, dword [ebp + 0x10]
cmp eax, esi
mov dword [ebx + 0xa4], edx
je 0x548f07
mov ecx, dword [ebp - 0x28]
cmp ecx, esi
mov edi, ecx
jne 0x548dc2
lea edi, [ebp - 0x24]
lea ecx, [ebp - 0x17c]
push 0xa
push ecx
push eax
call fcn.005e8872
mov edx, 0x6a112c
add esp, 0xc
test edx, edx
mov esi, eax
je 0x548ff2
test edi, edi
je 0x548ff2
test esi, esi
je 0x548ff2
xor eax, eax
lea ecx, [ebp - 0x9c]
push eax
push edx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x94], eax
mov word [ebp - 0x98], ax
call fcn.00402e00
push edi
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xc
call fcn.0040e580
push esi
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xd
call fcn.0040e580
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.00401070
mov edi, dword [ebp - 0x94]
lea ecx, [ebp - 0xdc]
call fcn.00402400
push eax
call fcn.005e71bf
add esp, 4
lea ecx, [ebp - 0xf0]
mov esi, eax
call fcn.00402400
push eax
call fcn.005e71bf
add edi, esi
lea esi, [eax + edi + 3]
lea edi, [esi + esi]
push edi
call fcn.005ffe3f
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x48], edx
je 0x548eda
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0xdc]
call fcn.00402400
push eax
lea ecx, [ebp - 0xf0]
call fcn.00402400
push eax
lea ecx, [ebp - 0x9c]
call fcn.00402400
push eax
mov eax, dword [ebp - 0x48]
push esi
push eax
call fcn.005e714f
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.005e71bf
add esp, 0x18
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xd
call fcn.00401070
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xc
call fcn.00401070
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x9c]
jmp 0x548fed
mov eax, dword [ebp - 0x28]
cmp eax, esi
jne 0x548f11
lea eax, [ebp - 0x24]
mov edx, 0x6a10a0
test edx, edx
je 0x548ff2
cmp eax, esi
je 0x548ff2
push eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x7c], esi
mov word [ebp - 0x80], si
call fcn.00402410
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.00401070
push 0x6a10a0
lea ecx, [ebp - 0xd0]
call fcn.00402380
mov esi, dword [ebp - 0xc8]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x10
call fcn.00402400
push eax
call fcn.005e71bf
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005ffe3f
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x48], edx
je 0x548fd4
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x84]
call fcn.00402400
push eax
lea ecx, [ebp - 0xd0]
call fcn.00402400
push eax
mov eax, dword [ebp - 0x48]
push esi
push eax
call fcn.005e714f
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.005e71bf
add esp, 0x14
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xf
call fcn.00401070
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x84]
call fcn.00401070
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x548ffc
lea eax, [ebp - 0x44]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x54910e
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x54902a
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x14]
push str.Error_opening_file__ls._n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.005427e0
xor esi, esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x549059
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push ecx
push edx
push eax
lea eax, [ebp - 0x14]
push str.this_file__ls__size__I64d_n
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x14]
add esp, 0x14
push ecx
mov ecx, ebx
call fcn.005427e0
mov eax, dword [ebp - 0x64]
mov edx, eax
mov dword [ebp - 0x30], eax
sar edx, 0x1f
cmp eax, edi
jbe 0x54933d
mov ecx, dword [ebp - 0x3c]
cmp ecx, edi
jne 0x54909b
lea ecx, [ebp - 0x38]
push eax
lea eax, [ebp - 0xe4]
push eax
push ecx
push esi
mov ecx, ebx
call fcn.00547f20
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x757c
je 0x5493e0
test edi, edi
je 0x549197
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00603a3c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401070
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, edi
je 0x549049
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
jne 0x549164
mov eax, edi
cmp eax, edi
jne 0x549164
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 0x74], eax
je 0x549164
push eax
lea edx, [ebp - 0x14]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.005427e0
jmp 0x549049
mov ecx, dword [ebp - 0x30]
push 1
push edi
push edi
push ecx
call fcn.005e9a70
mov ecx, dword [ebp - 0x1c]
push 2
add ecx, eax
mov eax, dword [ebp - 0x18]
adc eax, edx
lea edx, [ebp - 0x58]
push edx
push edi
push esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x58], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x54904f
lea ecx, [ebp - 0x60]
lea edx, [ebp - 0x10c]
push ecx
push str._skf
push edx
call fcn.005e7bd3
add esp, 0xc
lea eax, [ebp - 0xa0]
lea ecx, [ebp - 0xb8]
lea edx, [ebp - 0x10c]
push eax
mov eax, dword [ebx + 0xdc]
push ecx
push 0
push 0
push edx
push eax
mov dword [ebp - 0xa0], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5491ef
push str.error____No_keyframe_found_0__n
mov ecx, ebx
call fcn.005427e0
mov edx, dword [ebx + 0xdc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x60]
push ecx
push edx
call esi
mov ecx, dword [ebx + 0xdc]
lea eax, [ebp - 0x10c]
push eax
push ecx
call esi
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x14]
push edx
push str.Deleting_record__s_from_registry_n
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.005427e0
mov esi, dword [ebp + 0x10]
lea edx, [ebp - 0x60]
push esi
push 0x6a1150
push edx
call fcn.005e7bd3
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [ebp - 0x70]
mov dword [ebp - 0x68], eax
push 0x10
push edx
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebx + 0xdc]
push 0
lea eax, [ebp - 0x60]
push 0
push eax
push ecx
mov dword [ebp - 0x70], esi
call edi
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
push edx
push eax
push ecx
push esi
lea edx, [ebp - 0x14]
push str.Adding_record_with_ID__d__startPos__I64d__nextID__d_n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x14]
add esp, 0x18
mov ecx, ebx
push eax
call fcn.005427e0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x5492a6
lea eax, [ebp - 0x38]
push eax
call fcn.005e8c9e
add esp, 4
cmp eax, 0xffffffff
jne 0x5492db
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x5492be
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
push str.Could_not_delete_temp_file__ls_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.005427e0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
xor eax, eax
sub ecx, edx
mov edx, dword [ebp - 0x18]
push esi
sbb edx, eax
mov eax, dword [ebp - 0xb8]
add eax, ecx
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x10c]
adc ecx, edx
push str._dkf
push eax
mov dword [ebp - 0xb4], ecx
call fcn.005e7bd3
mov eax, dword [ebx + 0xdc]
add esp, 0xc
lea ecx, [ebp - 0xb8]
lea edx, [ebp - 0x10c]
push 0x10
push ecx
push 0
push 0
push edx
push eax
call edi
jmp 0x548a66
lea ecx, [ebp - 0x60]
lea edx, [ebp - 0x11c]
push ecx
push str._skf
push edx
call fcn.005e7bd3
add esp, 0xc
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x13c]
lea edx, [ebp - 0x11c]
push eax
mov eax, dword [ebx + 0xdc]
push ecx
push edi
push edi
push edx
push eax
mov dword [ebp - 0xa4], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x549399
push str.No_keyframe_found_n
mov ecx, ebx
call fcn.005427e0
mov byte [ebp + 0xb], 1
jmp 0x5493ca
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x70]
push edx
mov dword [ebp - 0x50], ecx
push ecx
push eax
lea ecx, [ebp - 0x14]
push str.Set_curID__d__curPos__I64d_n
push ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x4c], edx
call fcn.005fc86b
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.005427e0
cmp esi, edi
je 0x5493d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
test al, al
je 0x548a66
mov ecx, dword [ebx + 0xdc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x60]
push eax
push ecx
call esi
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x12c]
push edx
push str._skf
push eax
call fcn.005e7bd3
mov edx, dword [ebx + 0xdc]
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
push edx
call esi
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x14]
push eax
push str.Deleting_record__s_from_registry_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.005427e0
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x60]
push esi
push 0x6a10e4
push eax
call fcn.005e7bd3
mov eax, dword [ebx + 0xdc]
mov edi, dword [ebp - 0x50]
add esp, 0xc
lea ecx, [ebp - 0x70]
lea edx, [ebp - 0x60]
mov dword [ebp - 0x70], esi
mov esi, dword [ebp - 0x4c]
push 0x10
push ecx
push 0
push 0
push edx
push eax
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp + 0x10]
push ecx
push esi
push edi
push edx
lea eax, [ebp - 0x14]
push str.Adding_record_with_ID__d__startPos__I64d__nextID__d_n
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x14]
add esp, 0x18
push ecx
mov ecx, ebx
call fcn.005427e0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x5494aa
lea eax, [ebp - 0x38]
push eax
call fcn.005e8c9e
add esp, 4
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x3c]
jne 0x5494e4
test eax, eax
jne 0x5494c2
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x14]
push str.Could_not_delete_temp_file__ls_n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.005427e0
jmp 0x548a66
test eax, eax
jne 0x5494eb
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
push str.Delete_temp_file__ls_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.005427e0
jmp 0x548a66
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
push edx
push eax
lea ecx, [ebp - 0x78]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push ecx
call fcn.005fc86b
add esp, 0x10
mov eax, dword [edi]
test eax, eax
je 0x549533
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x78]
push 0
push edi
push 0
push 0xf003f
push 0
push 0x6d1c98
push 0
push edx
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], 0x11
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
push 0
mov eax, dword [edi]
lea esi, [ebx + 0xc8]
push 0
push 0
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x549598
push str.Cannot_find_registry_subkeys_counter._n
mov ecx, ebx
call fcn.005427e0
mov dword [esi], 0
jmp 0x5495d6
mov eax, dword [esi]
shr eax, 1
mov dword [esi], eax
mov ecx, dword [0x6cd768]
mov esi, eax
mov dword [ebp - 0x30], ecx
push esi
lea edx, [ebp - 0x30]
push str.Values_counter_in_the_registry_subkey___d_n
push edx
mov byte [ebp - 4], 0x14
call fcn.005fc86b
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.005427e0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x11
call fcn.00603a3c
mov ecx, ebx
mov dword [ebx + 0xd0], 1
call fcn.00549670
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 8
call fcn.00603a3c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00603a3c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc