Function at 0x5641a0
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 0x64f9f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x28]
push edi
mov dword [ebx], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebx + 0xc], esi
mov esi, dword [ebp + 0x2c]
mov dword [ebx + 0xa0], edi
mov dword [ebx + 0x80], edi
mov dword [ebx + 0xa8], edi
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xf8], edi
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], edi
mov dword [ebx + 0x90], eax
mov dword [ebx + 0xa4], edi
mov dword [ebx + 0x84], edi
mov dword [ebx + 0xf0], edi
mov dword [ebx + 0xac], edi
mov dword [ebx + 0xbc], edi
mov dword [ebx + 0xfc], edi
mov dword [ebx + 0x98], edi
mov dword [ebx + 0xc8], edi
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov dword [ebx + 0x10], esi
jne 0x56424f
cmp ecx, edi
jne 0x564266
jmp 0x565290
push eax
lea ecx, [ebp - 0x134]
push str.SoftwareDownloadManager_ldChList
push ecx
call fcn.0060a593
add esp, 0xc
jmp 0x56427c
push ecx
push edx
lea edx, [ebp - 0x134]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push edx
call fcn.0060a593
add esp, 0x10
mov eax, dword [ebx + 0xdc]
lea esi, [ebx + 0xdc]
cmp eax, edi
je 0x564293
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x134]
push eax
push esi
push edi
push 0xf003f
push edi
push 0x6fc418
push edi
push ecx
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [esi]
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x80]
push edx
push eax
push edi
push edi
push str.f_tfc
push ecx
mov dword [ebp - 0x60], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x564342
mov ecx, dword [esi]
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x80]
push edx
push eax
push edi
push edi
push str.f_uu
push ecx
mov dword [ebp + 8], 1
mov dword [ebp - 0x60], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x564314
cmp dword [ebp - 0x80], 1
jne 0x564314
xor eax, eax
jmp 0x564317
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x30]
mov ecx, ebx
push edx
push eax
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00563c70
cmp eax, edi
je 0x565222
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
cmp dword [ebp + 0xc], edi
je 0x564375
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.005628f0
cmp eax, edi
je 0x565222
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov eax, dword [esi]
lea ecx, [ebp + 0x28]
lea edx, [ebp - 0x30]
push ecx
push edx
push edi
push edi
push 0x6d1064
push eax
mov dword [ebx + 0xcc], edi
mov dword [ebp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x565222
mov ecx, dword [0x6f7b78]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
cmp eax, edi
je 0x564515
push eax
lea edx, [ebp - 0x134]
push str.SoftwareDownloadManager_ld
push edx
call fcn.0060a593
add esp, 0xc
lea eax, [ebp - 0x88]
lea ecx, [ebp + 0x1c]
lea edx, [ebp - 0x134]
push eax
push ecx
push edi
push 0xf003f
push edi
push 0x6fc418
push edi
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edi
lea eax, [ebp + 0x28]
push edi
mov ecx, dword [ebp + 0x1c]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edx, dword [ebp + 0x28]
lea eax, [edx*4 + 4]
push eax
call fcn.00622acb
mov esi, eax
add esp, 4
cmp esi, edi
mov dword [ebp + 0x2c], esi
je 0x5645d2
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 0x28]
push ecx
push esi
push edi
push edi
push 0x6d10ac
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x564465
push str.Cannot_find_old_localFileName_in_registry._n
mov ecx, ebx
call fcn.0055c480
push esi
call fcn.00622af4
add esp, 4
jmp 0x56451c
push esi
lea ecx, [ebp + 0x30]
call fcn.00622e4a
mov eax, dword [ebp + 0x30]
lea ecx, [ebp + 0x10]
push eax
push str.Loading_old_localFileName____s_from_registry_n
push ecx
mov byte [ebp - 4], 4
call fcn.0061fae1
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.0055c480
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 0xa8]
push eax
push edi
push edi
push str.FileSize
push ecx
mov dword [ebp + 0x28], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5644d3
push str.Cannot_find_old_file_size_in_registry._n
mov ecx, ebx
call fcn.0055c480
mov dword [ebx + 0xa8], edi
mov dword [ebx + 0xac], edi
jmp 0x5644fd
mov edx, dword [ebx + 0xac]
mov eax, dword [ebx + 0xa8]
push edx
push eax
lea ecx, [ebp + 0x10]
push str.Loading_old_file_size__I64d_Bytes_from_registry_n
push ecx
call fcn.0061fae1
mov edx, dword [ebp + 0x10]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.0055c480
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 3
call fcn.00622d8a
jmp 0x564579
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jne 0x56453e
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00622d8a
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 0x2c
push eax
call fcn.00609a4e
lea ecx, [eax + eax + 2]
push ecx
call fcn.00622acb
mov esi, eax
add esp, 8
cmp esi, edi
mov dword [ebp + 0x2c], esi
je 0x5645d2
mov edx, dword [ebp + 0x1c]
push edx
push esi
call fcn.00609a95
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [ebx + 0xa8], eax
add esp, 8
mov dword [ebx + 0xac], ecx
push esi
push edi
mov ecx, ebx
call fcn.00566e30
push esi
mov dword [ebp + 0x28], 0x10
call fcn.00609a4e
lea edx, [eax + eax + 0x14]
push edx
call fcn.00622acb
add esp, 8
cmp eax, edi
mov dword [ebp + 0x1c], eax
push esi
je 0x5645ca
call fcn.00609a4e
lea eax, [eax + eax + 0x14]
push eax
call fcn.00622acb
add esp, 8
cmp eax, edi
mov dword [ebp + 0xc], eax
jne 0x5645f6
push esi
call fcn.00622af4
mov ecx, dword [ebp + 0x1c]
add esp, 4
push ecx
call fcn.00622af4
add esp, 4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00622d8a
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
push str.Rebuilding_old_downloaded_files_before_resume._n
mov ecx, ebx
call fcn.0055c480
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x30], eax
jne 0x564645
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp + 0x10]
push str.Error_reading_first_chunk__errcode___d._n
push edx
call fcn.0061fae1
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0055c480
jmp 0x5646d6
mov edx, dword [ebp + 0x30]
lea ecx, [ebp - 0x40]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], edi
cmp dword [ebx + 0xa0], 0xffffffff
jne 0x5646a3
mov eax, edi
cmp eax, edi
jne 0x5646a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x5646a3
push eax
lea eax, [ebp + 0x10]
push str.Error_during_GetFileSize____errcode___d._n
push eax
call fcn.0061fae1
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.0055c480
mov dword [ebx + 0xa0], edi
mov dword [ebx + 0xa4], edi
jmp 0x5646cc
mov edx, dword [ebp - 0x40]
push 1
push edi
push edi
push edx
call fcn.0060c730
mov ecx, dword [ebx + 0xa0]
add ecx, eax
mov dword [ebx + 0xa0], ecx
mov eax, dword [ebx + 0xa4]
adc eax, edx
mov dword [ebx + 0xa4], eax
mov eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0xa0]
mov edx, dword [ebx + 0xa4]
push edi
push edi
lea eax, [ebp - 0x9c]
push edi
push eax
mov dword [ebx + 0x100], ecx
push esi
mov dword [ebx + 0x104], edx
mov dword [ebx + 0xcc], 1
call fcn.0060a943
mov eax, dword [ebx + 0xa4]
add esp, 0x14
cmp eax, edi
jg 0x56472b
jl 0x56471f
cmp dword [ebx + 0xa0], edi
jae 0x56472b
mov dword [ebx + 0xa0], edi
mov dword [ebx + 0xa4], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x20]
push ecx
push 0x6c9150
push edx
call fcn.0060a593
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x5647de
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
mov dword [ebx + 0xf8], ecx
push str.This_is_the_last_chunk._End_rebuilding._n
mov ecx, ebx
mov dword [ebx + 0xf0], eax
mov dword [ebx + 0xfc], edx
call fcn.0055c480
mov esi, dword [ebp + 0x2c]
xor edi, edi
push esi
call fcn.00622af4
mov ecx, dword [ebp + 0x1c]
add esp, 4
push ecx
call fcn.00622af4
mov edx, dword [ebp + 0xc]
add esp, 4
push edx
call fcn.00622af4
mov eax, dword [ebx + 0xdc]
lea esi, [ebx + 0xdc]
add esp, 4
cmp eax, edi
je 0x5647b9
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x565160
push eax
lea eax, [ebp - 0x134]
push str.SoftwareDownloadManager_ldChList
push eax
call fcn.0060a593
add esp, 0xc
jmp 0x56517c
mov esi, dword [ebp + 0x2c]
mov ecx, ebx
push esi
push eax
call fcn.00566e30
lea eax, [ebp + 0x28]
lea ecx, [ebp - 0x30]
push eax
xor edi, edi
lea eax, [ebx + 0xdc]
push ecx
push edi
lea edx, [ebp - 0x20]
mov dword [ebp - 0x64], eax
mov eax, dword [eax]
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x564832
push eax
lea ecx, [ebp + 0x10]
push str.Error_reading_registry__errCode___d._End_rebuilding._n
push ecx
call fcn.0061fae1
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.0055c480
jmp 0x564781
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x30]
push ecx
push edx
lea ecx, [ebp - 0x20]
push eax
push ecx
lea edx, [ebp + 0x10]
push str.Read_record_num.__s_from_registry:_ID___d__startPos___I64d__nextID___d_n
push edx
call fcn.0061fae1
mov eax, dword [ebp + 0x10]
add esp, 0x1c
mov ecx, ebx
push eax
call fcn.0055c480
mov ecx, dword [ebp - 0x30]
push ecx
push esi
mov esi, dword [ebp + 0x1c]
push str._s_d
push esi
call fcn.0060aac7
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 0x30], edi
je 0x564a42
lea edx, [ebp - 0x40]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x14], 0
cmp esi, 0xffffffff
jne 0x5649eb
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x5649eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5649eb
push eax
lea eax, [ebp + 0x10]
push str.Error_during_GetFileSize____errcode___d._n
push eax
call fcn.0061fae1
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.0055c480
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea edx, [ebp - 0x20]
lea eax, [ebp + 0x10]
push edx
push str.Deleting_record__s_from_registry_n
push eax
call fcn.0061fae1
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.0055c480
mov esi, dword [ebp - 0x44]
lea edx, [ebp - 0x20]
push esi
push 0x6c9150
push edx
call fcn.0060a593
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x30]
push 0x10
mov dword [ebp - 0x28], eax
push edx
mov edx, dword [ecx]
push 0
lea eax, [ebp - 0x20]
push 0
push eax
push edx
mov dword [ebp - 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test edi, edi
je 0x56496c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
push eax
push ecx
push edx
push esi
lea eax, [ebp + 0x10]
push str.Adding_record_with_ID__d__startPos__I64d__nextID__d_n
push eax
call fcn.0061fae1
mov ecx, dword [ebp + 0x10]
add esp, 0x18
push ecx
mov ecx, ebx
call fcn.0055c480
mov edx, dword [ebp + 0x1c]
push edx
call fcn.0060b6fb
add esp, 4
cmp eax, 0xffffffff
jne 0x564734
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x78]
push eax
call fcn.00622e4a
mov ecx, dword [ebp - 0x78]
lea edx, [ebp + 0x10]
push ecx
push str.Could_not_delete_temp_file__s_n
push edx
mov byte [ebp - 4], 0xe
call fcn.0061fae1
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0055c480
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.00622d8a
jmp 0x564734
mov edx, dword [ebp - 0x40]
push 1
push 0
push 0
push edx
call fcn.0060c730
add esi, eax
mov eax, dword [ebp - 0x14]
adc eax, edx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00622e4a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x74]
push ecx
push esi
push edx
lea eax, [ebp + 0x10]
push str.next_file__s__size__I64d_n
push eax
mov byte [ebp - 4], 5
call fcn.0061fae1
mov ecx, dword [ebp + 0x10]
add esp, 0x14
push ecx
mov ecx, ebx
call fcn.0055c480
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
jmp 0x564a93
mov edx, dword [ebp + 0x1c]
xor esi, esi
push edx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x14], esi
call fcn.00622e4a
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp + 0x10]
push str.Error_opening_file__s__errcode___ld._n
push ecx
call fcn.0061fae1
mov edx, dword [ebp + 0x10]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.0055c480
xor edi, edi
mov byte [ebp - 4], 3
mov dword [ebp + 0x30], edi
lea ecx, [ebp - 0x84]
call fcn.00622d8a
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x5648ec
jg 0x564aad
test esi, esi
jbe 0x5648ec
mov edx, dword [ebx + 0xa0]
mov eax, dword [ebp - 0x14]
add edx, esi
mov dword [ebx + 0xa0], edx
mov ecx, dword [ebx + 0xa4]
adc ecx, eax
mov eax, dword [ebp - 0x44]
test eax, eax
mov dword [ebx + 0xa4], ecx
je 0x564aed
mov edx, dword [ebp + 0x2c]
mov edi, dword [ebp + 0xc]
mov ecx, eax
push ecx
push edx
push str._s_d
push edi
call fcn.0060aac7
add esp, 0x10
jmp 0x564b05
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0xc]
push eax
push 0x6e8830
push ecx
call fcn.0060aac7
mov edi, dword [ebp + 0xc]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x48], esi
jne 0x564b6f
push edi
lea ecx, [ebp - 0x8c]
call fcn.00622e4a
mov edx, dword [ebp - 0x8c]
lea eax, [ebp + 0x10]
push edx
push str.Error_opening_file__s._n
push eax
mov byte [ebp - 4], 7
call fcn.0061fae1
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.0055c480
xor esi, esi
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 3
call fcn.00622d8a
test esi, esi
je 0x564bcd
lea edx, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x14], 0
cmp edi, 0xffffffff
jne 0x564d13
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x564d13
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x564d13
push eax
lea eax, [ebp + 0x10]
push str.Error_during_GetFileSize____errcode___d._n
push eax
call fcn.0061fae1
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.0055c480
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00622e4a
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x50]
push edx
push edi
push eax
lea ecx, [ebp + 0x10]
push str.this_file__s__size__I64d_n
push ecx
mov byte [ebp - 4], 8
call fcn.0061fae1
mov edx, dword [ebp + 0x10]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.0055c480
mov eax, dword [0x6f7b78]
xor esi, esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp + 0x24], eax
mov ecx, dword [ebp - 0x44]
lea edx, [ebp + 0x24]
push ecx
push str.sk_ld
push edx
mov byte [ebp - 4], 9
call fcn.0061fae1
mov edi, dword [ebp - 0x64]
mov edx, dword [ebp + 0x24]
add esp, 0xc
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x4c]
mov ebx, 4
push eax
mov eax, dword [edi]
push ecx
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
push eax
mov dword [ebp - 0x68], ebx
call esi
test eax, eax
jne 0x564c7b
mov eax, dword [ebp - 0x4c]
test eax, eax
jbe 0x564c7b
mov eax, dword [edi]
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x6c]
push ecx
push edx
push 0
push 0
push str.mmsPacketSize
push eax
mov dword [ebp - 0x68], ebx
call esi
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
sub eax, edx
mov edx, edi
sbb edx, ecx
mov ecx, dword [ebp - 0x6c]
imul ecx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x18]
xor esi, esi
add ecx, ebx
mov ebx, dword [ebp - 0x14]
adc esi, ebx
cmp ecx, eax
jne 0x564ecc
cmp esi, edx
jne 0x564ecc
mov ecx, dword [ebp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x3c]
lea edx, [ebp - 0x9c]
push 0
push edx
push eax
push edi
mov ecx, ebx
call fcn.00562190
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x564d50
cmp esi, 0x757c
je 0x564d50
mov ecx, dword [ebp + 0x2c]
push ecx
call fcn.00622af4
mov edx, dword [ebp + 0x1c]
add esp, 4
push edx
call fcn.00622af4
mov eax, dword [ebp + 0xc]
add esp, 4
push eax
call fcn.00622af4
add esp, 4
jmp 0x565092
mov edx, dword [ebp - 0x40]
push 1
push 0
push 0
push edx
call fcn.0060c730
mov ecx, dword [ebp - 0x14]
add edi, eax
lea eax, [ebp - 0x94]
push 2
push eax
push 0
adc ecx, edx
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x94], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x564bd5
mov edx, dword [ebx + 0xdc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x20]
push ecx
push edx
call esi
lea eax, [ebp - 0x20]
lea ecx, [ebp + 0x10]
push eax
push str.Deleting_record__s_from_registry_n
push ecx
call fcn.0061fae1
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.0055c480
mov eax, dword [0x6f7b78]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x54]
push ecx
push str.sk_s
push edx
mov byte [ebp - 4], 0xa
call fcn.0061fae1
mov edx, dword [ebp - 0x54]
add esp, 0xc
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x70]
push eax
mov eax, dword [ebx + 0xdc]
push ecx
push 0
push 0
push edx
push eax
mov dword [ebp - 0x90], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x564e0c
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebx + 0xdc]
add edx, ecx
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0x54]
push edx
push eax
call esi
mov edx, dword [ebp + 0x24]
mov eax, dword [ebx + 0xdc]
lea ecx, [ebp - 0x4c]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x20]
push esi
push 0x6c91b4
push ecx
call fcn.0060a593
mov edx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
add esp, 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], edx
mov edx, dword [ebx + 0xdc]
push 0x10
push eax
push 0
lea ecx, [ebp - 0x20]
push 0
push ecx
push edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
push edi
push esi
lea edx, [ebp + 0x10]
push str.Adding_record_with_ID__d__startPos__I64d__nextID__d_n
push edx
call fcn.0061fae1
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov ecx, ebx
push eax
call fcn.0055c480
mov esi, dword [ebp + 0x1c]
push esi
call fcn.0060b6fb
add esp, 4
cmp eax, 0xffffffff
jne 0x564ebb
push esi
lea ecx, [ebp - 0x7c]
call fcn.00622e4a
mov ecx, dword [ebp - 0x7c]
lea edx, [ebp + 0x10]
push ecx
push str.Could_not_delete_temp_file__s_n
push edx
mov byte [ebp - 4], 0xb
call fcn.0061fae1
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0055c480
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xa
call fcn.00622d8a
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 9
call fcn.00622d8a
jmp 0x565143
cmp ebx, edx
jl 0x5650fc
jg 0x564edf
cmp dword [ebp - 0x18], eax
jbe 0x5650fc
test ebx, ebx
jl 0x5650fc
jg 0x564ef4
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x5650fc
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
push edi
push ecx
push edx
lea eax, [ebp + 0x10]
push str.Chunk_order_violation_error__cInf.ID__d__startPos__I64d_n
push eax
call fcn.0061fae1
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x3c]
add esp, 0x14
push ecx
mov ecx, ebx
call fcn.0055c480
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x5650f7
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x34]
sub eax, edi
sbb ecx, edx
js 0x564f44
jg 0x564f3f
test eax, eax
jbe 0x564f44
mov dword [ebp - 0x5c], eax
jmp 0x564f4b
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x5c], eax
push ecx
push eax
lea edx, [ebp + 0x10]
push str.Try_rollback__set_chunksize_to__I64d_n
push edx
mov dword [ebp - 0x58], ecx
call fcn.0061fae1
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.0055c480
mov edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x58]
push 0
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0x5c]
cmp eax, 0xffffffff
jne 0x565027
test edi, edi
je 0x565027
mov eax, dword [ebp + 0x2c]
push eax
call fcn.00622af4
mov ecx, dword [ebp + 0x1c]
add esp, 4
push ecx
call fcn.00622af4
mov edx, dword [ebp + 0xc]
add esp, 4
push edx
call fcn.00622af4
mov eax, dword [ebp + 0x30]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [ebp + 0x10]
push str.SetFilePointer_failed__err___ld_n
push ecx
call fcn.0061fae1
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.0055c480
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 8
call fcn.00622d8a
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00622d8a
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00622d8a
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 0x2c
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5650cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x2c]
push eax
call fcn.00622af4
mov ecx, dword [ebp + 0x1c]
add esp, 4
push ecx
call fcn.00622af4
mov edx, dword [ebp + 0xc]
add esp, 4
push edx
call fcn.00622af4
mov eax, dword [ebp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push eax
call edi
push esi
call edi
mov esi, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push esi
push str.SetEndOfFile_failed__err___ld_n
push ecx
call fcn.0061fae1
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.0055c480
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 8
call fcn.00622d8a
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00622d8a
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00622d8a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebx + 0xa0]
sub eax, ecx
mov ecx, dword [ebp - 0x58]
sbb ecx, edi
add edx, eax
mov dword [ebx + 0xa0], edx
mov eax, dword [ebx + 0xa4]
adc eax, ecx
mov dword [ebx + 0xa4], eax
mov edi, dword [ebp - 0x24]
jmp 0x565102
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
push edi
push ecx
push eax
lea edx, [ebp + 0x10]
push str.Set_curID__d__curPos__I64d_n
push edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edi
call fcn.0061fae1
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov ecx, ebx
push eax
call fcn.0055c480
mov ecx, dword [ebp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
test esi, esi
je 0x565143
push esi
call edi
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 8
call fcn.00622d8a
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00622d8a
jmp 0x564734
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ecx
push edx
lea eax, [ebp - 0x134]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push eax
call fcn.0060a593
add esp, 0x10
mov eax, dword [esi]
cmp eax, edi
je 0x565189
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x88]
lea edx, [ebp - 0x134]
push ecx
push esi
push edi
push 0xf003f
push edi
push 0x6fc418
push edi
push edx
push 0x80000001
mov dword [ebp - 4], 3
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edi
push edi
lea eax, [ebx + 0xc8]
push edi
push edi
push eax
mov eax, dword [esi]
push edi
push edi
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x5651e9
push str.Cannot_find_registry_subkeys_counter._n
mov ecx, ebx
call fcn.0055c480
mov dword [ebx + 0xc8], edi
jmp 0x56520c
mov ecx, dword [ebx + 0xc8]
lea edx, [ebp + 0x10]
push ecx
push str.Values_counter_in_the_registry_subkey___d_n
push edx
call fcn.0061fae1
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0055c480
lea ecx, [ebp + 0x10]
mov dword [ebx + 0xd0], 1
mov byte [ebp - 4], 0
call fcn.00622d8a
mov edx, dword [ebx + 0xa0]
mov eax, dword [ebx + 0xa4]
mov ecx, edx
mov dword [ebp + 0x24], eax
or ecx, eax
je 0x565290
mov eax, dword [ebx + 0xa8]
mov ecx, dword [ebx + 0xac]
mov esi, eax
or esi, ecx
je 0x565290
mov ebx, dword [ebx + 0xd8]
mov esi, dword [ebx]
cmp esi, edi
je 0x565290
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb0], ecx
push eax
mov dword [ebp - 0xac], edx
mov edx, dword [ebp + 0x24]
push 0x1471
mov ecx, esi
push 0x111
push ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], edi
call dword [sym.imp.USER32.dll_SendMessageA]
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 0x2c