Function at 0x548fa0
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 0x629ff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x14]
push esi
push edi
mov edi, ecx
xor esi, esi
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x10], esp
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0xc], ebx
mov ebx, dword [ebp + 0x2c]
mov dword [edi + 0xa0], esi
mov dword [edi + 0x80], esi
mov dword [edi + 0xa8], esi
mov dword [edi + 0xb8], esi
mov dword [edi + 0xf8], esi
cmp eax, esi
mov dword [ebp - 0x70], edi
mov dword [ebp - 4], esi
mov dword [edi + 0x90], eax
mov dword [edi + 0xa4], esi
mov dword [edi + 0x84], esi
mov dword [edi + 0xf0], esi
mov dword [edi + 0xac], esi
mov dword [edi + 0xbc], esi
mov dword [edi + 0xfc], esi
mov dword [edi + 0x98], esi
mov dword [edi + 0xc8], esi
mov dword [edi + 4], edx
mov dword [edi + 8], ecx
mov dword [edi + 0x10], ebx
jne 0x54904f
cmp ecx, esi
jne 0x549066
jmp 0x549f9b
push eax
lea ecx, [ebp - 0x118]
push str.SoftwareDownloadManager_ldChList
push ecx
call fcn.005e6db3
add esp, 0xc
jmp 0x54907c
push ecx
push edx
lea edx, [ebp - 0x118]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push edx
call fcn.005e6db3
add esp, 0x10
mov eax, dword [edi + 0xdc]
lea ebx, [edi + 0xdc]
cmp eax, esi
je 0x549093
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x118]
push eax
push ebx
push esi
push 0xf003f
push esi
push 0x6d0c38
push esi
push ecx
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebx]
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x64]
push edx
push eax
push esi
push esi
push str.f_tfc
push ecx
mov dword [ebp - 0x58], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x54913f
mov ecx, dword [ebx]
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x64]
push edx
push eax
push esi
push esi
push str.f_uu
push ecx
mov dword [ebp + 8], 1
mov dword [ebp - 0x58], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x549111
cmp dword [ebp - 0x64], 1
jne 0x549111
xor eax, eax
jmp 0x549114
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x30]
mov ecx, edi
push edx
push eax
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00548aa0
cmp eax, esi
je 0x549f2d
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], esi
je 0x549172
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00547870
cmp eax, esi
je 0x549f2d
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 [ebx]
lea ecx, [ebp + 0x28]
lea edx, [ebp - 0x30]
push ecx
push edx
push esi
push esi
push 0x6a7814
push eax
mov dword [edi + 0xcc], esi
mov dword [ebp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x549f2d
mov ecx, dword [0x6cc708]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
cmp eax, esi
je 0x549300
push eax
lea edx, [ebp - 0x118]
push str.SoftwareDownloadManager_ld
push edx
call fcn.005e6db3
add esp, 0xc
lea eax, [ebp - 0x60]
lea ecx, [ebp + 0x1c]
lea edx, [ebp - 0x118]
push eax
push ecx
push esi
push 0xf003f
push esi
push 0x6d0c38
push esi
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push esi
lea eax, [ebp + 0x28]
push esi
mov ecx, dword [ebp + 0x1c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edx, dword [ebp + 0x28]
lea eax, [edx*4 + 4]
push eax
call fcn.005feedc
mov ebx, eax
add esp, 4
cmp ebx, esi
mov dword [ebp + 0x2c], ebx
je 0x5493bd
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 0x28]
push ecx
push ebx
push esi
push esi
push str.LocalFileName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x54925f
push str.Cannot_find_old_localFileName_in_registry._n
mov ecx, edi
call fcn.00541a30
push ebx
call fcn.005fef05
add esp, 4
jmp 0x549307
push ebx
lea eax, [ebp + 0x10]
push str.Loading_old_localFileName____ls_from_registry_n
push eax
call fcn.005fb90b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.00541a30
lea edx, [ebp + 0x28]
lea eax, [edi + 0xa8]
push edx
push eax
mov eax, dword [ebp + 0x1c]
push esi
push esi
push str.FileSize
push eax
mov dword [ebp + 0x28], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5492ca
push str.Cannot_find_old_file_size_in_registry._n
mov ecx, edi
call fcn.00541a30
mov edx, dword [ebp + 0x1c]
mov dword [edi + 0xa8], esi
push edx
mov dword [edi + 0xac], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x549364
mov ecx, dword [edi + 0xac]
mov edx, dword [edi + 0xa8]
push ecx
push edx
lea eax, [ebp + 0x10]
push str.Loading_old_file_size__I64d_Bytes_from_registry_n
push eax
call fcn.005fb90b
mov ecx, dword [ebp + 0x10]
add esp, 0x10
push ecx
mov ecx, edi
call fcn.00541a30
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x549364
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jne 0x549329
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00602ad6
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.005e639f
lea eax, [eax + eax + 2]
push eax
call fcn.005feedc
mov ebx, eax
add esp, 8
cmp ebx, esi
mov dword [ebp + 0x2c], ebx
je 0x5493bd
mov ecx, dword [ebp + 0x1c]
push ecx
push ebx
call fcn.005e6569
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
mov dword [edi + 0xa8], edx
add esp, 8
mov dword [edi + 0xac], eax
push ebx
push esi
mov ecx, edi
call fcn.0054b970
push ebx
mov dword [ebp + 0x28], 0x10
call fcn.005e639f
lea ecx, [eax + eax + 0x14]
push ecx
call fcn.005feedc
add esp, 8
cmp eax, esi
mov dword [ebp + 0x1c], eax
push ebx
je 0x5493b5
call fcn.005e639f
lea edx, [eax + eax + 0x14]
push edx
call fcn.005feedc
add esp, 8
cmp eax, esi
mov dword [ebp + 0x30], eax
jne 0x5493e1
push ebx
call fcn.005fef05
mov eax, dword [ebp + 0x1c]
add esp, 4
push eax
call fcn.005fef05
add esp, 4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00602ad6
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, edi
call fcn.00541a30
push esi
push esi
push 3
push esi
push 1
push bind
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x549430
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0x10]
push str.Error_reading_first_chunk__errcode___d._n
push ecx
call fcn.005fb90b
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, edi
push edx
call fcn.00541a30
jmp 0x5494c1
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0xa0], eax
mov dword [edi + 0xa4], esi
cmp dword [edi + 0xa0], 0xffffffff
jne 0x54948e
mov eax, esi
cmp eax, esi
jne 0x54948e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x54948e
push eax
lea edx, [ebp + 0x10]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.005fb90b
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00541a30
mov dword [edi + 0xa0], esi
mov dword [edi + 0xa4], esi
jmp 0x5494b7
mov ecx, dword [ebp - 0x44]
push 1
push esi
push esi
push ecx
call fcn.005e8c50
mov ecx, dword [edi + 0xa0]
add ecx, eax
mov dword [edi + 0xa0], ecx
mov eax, dword [edi + 0xa4]
adc eax, edx
mov dword [edi + 0xa4], eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0xa0]
mov ecx, dword [edi + 0xa4]
push esi
push esi
lea edx, [ebp - 0x80]
push esi
push edx
mov dword [edi + 0x100], eax
push ebx
mov dword [edi + 0x104], ecx
mov dword [edi + 0xcc], 1
call fcn.005e7163
mov eax, dword [edi + 0xa4]
add esp, 0x14
cmp eax, esi
jg 0x549513
jl 0x549507
cmp dword [edi + 0xa0], esi
jae 0x549513
mov dword [edi + 0xa0], esi
mov dword [edi + 0xa4], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
push eax
push 0x6a00e4
push ecx
call fcn.005e6db3
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x5495c4
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x30]
mov dword [edi + 0xf8], eax
mov dword [edi + 0xfc], ecx
push str.This_is_the_last_chunk._End_rebuilding._n
mov ecx, edi
mov dword [edi + 0xf0], edx
call fcn.00541a30
mov esi, dword [ebp + 0x2c]
push esi
call fcn.005fef05
mov eax, dword [ebp + 0x1c]
add esp, 4
push eax
call fcn.005fef05
mov ecx, dword [ebp + 0x30]
add esp, 4
push ecx
call fcn.005fef05
mov eax, dword [edi + 0xdc]
lea esi, [edi + 0xdc]
add esp, 4
test eax, eax
je 0x54959f
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp + 8]
test eax, eax
je 0x549e63
push eax
lea edx, [ebp - 0x118]
push str.SoftwareDownloadManager_ldChList
push edx
call fcn.005e6db3
add esp, 0xc
jmp 0x549e7f
mov esi, dword [ebp + 0x2c]
mov ecx, edi
push esi
push eax
call fcn.0054b970
lea edx, [ebp + 0x28]
lea eax, [ebp - 0x30]
push edx
mov edx, dword [edi + 0xdc]
push eax
push 0
lea ecx, [ebp - 0x20]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x549613
push eax
lea eax, [ebp + 0x10]
push str.Error_reading_registry__errCode___d._End_rebuilding._n
push eax
call fcn.005fb90b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.00541a30
jmp 0x549567
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x30]
push eax
push ecx
lea eax, [ebp - 0x20]
push edx
push eax
lea ecx, [ebp + 0x10]
push str.Read_record_num.__s_from_registry:_ID___d__startPos___I64d__nextID___d_n
push ecx
call fcn.005fb90b
mov edx, dword [ebp + 0x10]
add esp, 0x1c
mov ecx, edi
push edx
call fcn.00541a30
mov eax, dword [ebp - 0x30]
push eax
push esi
mov esi, dword [ebp + 0x1c]
push str._s_d
push esi
call fcn.005e72e7
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 0xc], ebx
je 0x549845
lea ecx, [ebp - 0x44]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x14], 0
cmp esi, 0xffffffff
jne 0x5497b5
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x5497b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5497b5
push eax
lea edx, [ebp + 0x10]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.005fb90b
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00541a30
mov edx, dword [edi + 0xdc]
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x20]
lea ecx, [ebp + 0x10]
push eax
push str.Deleting_record__s_from_registry_n
push ecx
call fcn.005fb90b
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, edi
push edx
call fcn.00541a30
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push esi
push 0x6a00e4
push eax
call fcn.005e6db3
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
add esp, 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov edx, dword [edi + 0xdc]
push 0x10
push eax
push 0
lea ecx, [ebp - 0x20]
push 0
push ecx
push edx
mov dword [ebp - 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test ebx, ebx
je 0x549752
push ebx
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.005fb90b
mov ecx, dword [ebp + 0x10]
add esp, 0x18
push ecx
mov ecx, edi
call fcn.00541a30
mov edx, dword [ebp + 0x1c]
push edx
call fcn.005e7e7e
add esp, 4
cmp eax, 0xffffffff
jne 0x54951c
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x10]
push eax
push str.Could_not_delete_temp_file__ls_n
push ecx
call fcn.005fb90b
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, edi
push edx
call fcn.00541a30
jmp 0x54951c
mov ecx, dword [ebp - 0x44]
push 1
push 0
push 0
push ecx
call fcn.005e8c50
add esi, eax
mov eax, dword [ebp - 0x14]
adc eax, edx
mov edx, dword [ebp + 0x1c]
push eax
mov dword [ebp - 0x14], eax
push esi
push edx
lea eax, [ebp + 0x10]
push str.next_file__ls__size__I64d_n
push eax
call fcn.005fb90b
mov ecx, dword [ebp + 0x10]
add esp, 0x14
push ecx
mov ecx, edi
call fcn.00541a30
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x5496d0
jg 0x549805
test esi, esi
jbe 0x5496d0
mov ebx, dword [edi + 0xa0]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
add ebx, esi
mov dword [edi + 0xa0], ebx
mov edx, dword [edi + 0xa4]
adc edx, ecx
test eax, eax
mov dword [edi + 0xa4], edx
je 0x549870
mov ebx, dword [ebp + 0x30]
mov edx, eax
mov eax, dword [ebp + 0x2c]
push edx
push eax
push str._s_d
push ebx
call fcn.005e72e7
add esp, 0x10
jmp 0x549888
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea edx, [ebp + 0x10]
push str.Error_opening_file__ls__errcode___ld._n
push edx
call fcn.005fb90b
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov ecx, edi
push eax
call fcn.00541a30
xor ebx, ebx
jmp 0x5496d0
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x30]
push ecx
push 0x6bd9b4
push edx
call fcn.005e72e7
mov ebx, dword [ebp + 0x30]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x48], esi
jne 0x549a0f
push ebx
lea eax, [ebp + 0x10]
push str.Error_opening_file__ls._n
push eax
call fcn.005fb90b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.00541a30
mov dword [ebp - 0x48], 0
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x30]
push ecx
push ebx
push edx
lea eax, [ebp + 0x10]
push str.this_file__ls__size__I64d_n
push eax
call fcn.005fb90b
mov ecx, dword [ebp + 0x10]
add esp, 0x14
push ecx
mov ecx, edi
call fcn.00541a30
mov edx, dword [0x6cc708]
xor esi, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x68], esi
mov dword [ebp + 0x24], edx
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp + 0x24]
push eax
push str.sk_ld
push ecx
mov byte [ebp - 4], 4
call fcn.005fb90b
mov ecx, dword [ebp + 0x24]
add esp, 0xc
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x40]
push edx
mov edx, dword [edi + 0xdc]
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push edx
mov dword [ebp - 0x5c], 4
call esi
test eax, eax
jne 0x54997a
mov eax, dword [ebp - 0x40]
test eax, eax
jbe 0x54997a
mov edx, dword [edi + 0xdc]
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x68]
push eax
push ecx
push 0
push 0
push str.mmsPacketSize
push edx
mov dword [ebp - 0x5c], 4
call esi
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
sub eax, edx
mov edx, dword [ebp - 0x24]
sbb edx, ecx
mov ecx, dword [ebp - 0x68]
imul ecx, dword [ebp - 0x40]
xor esi, esi
add ecx, ebx
mov ebx, dword [ebp - 0x14]
adc esi, ebx
cmp ecx, eax
jne 0x549bf7
cmp esi, edx
jne 0x549bf7
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x1c]
mov ebx, dword [ebp - 0x48]
lea ecx, [ebp - 0x80]
push 0
push ecx
push edx
push ebx
mov ecx, edi
call fcn.00547170
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x549a9c
cmp esi, 0x757c
je 0x549a9c
mov eax, dword [ebp + 0x2c]
push eax
call fcn.005fef05
mov ecx, dword [ebp + 0x1c]
add esp, 4
push ecx
call fcn.005fef05
mov edx, dword [ebp + 0x30]
add esp, 4
push edx
call fcn.005fef05
add esp, 4
jmp 0x549db0
test esi, esi
je 0x5498d3
lea edx, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x549a65
test eax, eax
jne 0x549a65
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x549a65
push eax
lea eax, [ebp + 0x10]
push str.Error_during_GetFileSize____errcode___d._n
push eax
call fcn.005fb90b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.00541a30
jmp 0x5498d3
mov edx, dword [ebp - 0x44]
push 1
push 0
push 0
push edx
call fcn.005e8c50
mov ecx, dword [ebp - 0x14]
add ebx, eax
lea eax, [ebp - 0x78]
push 2
push eax
push 0
adc ecx, edx
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x78], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x5498db
mov ecx, dword [edi + 0xdc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x20]
push eax
push ecx
call esi
lea edx, [ebp - 0x20]
lea eax, [ebp + 0x10]
push edx
push str.Deleting_record__s_from_registry_n
push eax
call fcn.005fb90b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.00541a30
mov edx, dword [0x6cc708]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x4c]
push eax
push str.sk_s
push ecx
mov byte [ebp - 4], 5
call fcn.005fb90b
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
lea edx, [ebp - 0x74]
lea eax, [ebp - 0x6c]
push edx
mov edx, dword [edi + 0xdc]
push eax
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x74], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x549b53
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x40]
mov edx, dword [edi + 0xdc]
add ecx, eax
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x4c]
push ecx
push edx
call esi
mov ecx, dword [ebp + 0x24]
mov edx, dword [edi + 0xdc]
lea eax, [ebp - 0x40]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push esi
push 0x6a0150
push eax
call fcn.005e6db3
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
add esp, 0xc
lea edx, [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edi + 0xdc]
push 0x10
push edx
push 0
lea eax, [ebp - 0x20]
push 0
push eax
push ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
push edx
push eax
push ebx
push esi
lea ecx, [ebp + 0x10]
push str.Adding_record_with_ID__d__startPos__I64d__nextID__d_n
push ecx
call fcn.005fb90b
mov edx, dword [ebp + 0x10]
add esp, 0x18
mov ecx, edi
push edx
call fcn.00541a30
mov esi, dword [ebp + 0x1c]
push esi
call fcn.005e7e7e
add esp, 4
cmp eax, 0xffffffff
jne 0x549be6
push esi
lea eax, [ebp + 0x10]
push str.Could_not_delete_temp_file__ls_n
push eax
call fcn.005fb90b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.00541a30
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00602ad6
jmp 0x549e52
mov ecx, dword [ebp - 0x14]
cmp ecx, edx
jl 0x549e0b
jg 0x549c0d
cmp dword [ebp - 0x18], eax
jbe 0x549e0b
test ecx, ecx
jl 0x549e0b
jg 0x549c22
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x549e0b
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
push edx
push eax
push ecx
lea edx, [ebp + 0x10]
push str.Chunk_order_violation_error__cInf.ID__d__startPos__I64d_n
push edx
call fcn.005fb90b
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov ecx, edi
push eax
call fcn.00541a30
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x549e0e
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x34]
sub eax, ebx
sbb ecx, edx
js 0x549c72
jg 0x549c6d
test eax, eax
jbe 0x549c72
mov dword [ebp - 0x54], eax
jmp 0x549c79
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
push ecx
push eax
lea ecx, [ebp + 0x10]
push str.Try_rollback__set_chunksize_to__I64d_n
push ecx
call fcn.005fb90b
mov edx, dword [ebp + 0x10]
add esp, 0x10
mov ecx, edi
push edx
call fcn.00541a30
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
push 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp - 0x54]
cmp eax, 0xffffffff
jne 0x549d45
test ebx, ebx
je 0x549d45
mov edx, dword [ebp + 0x2c]
push edx
call fcn.005fef05
mov eax, dword [ebp + 0x1c]
add esp, 4
push eax
call fcn.005fef05
mov ecx, dword [ebp + 0x30]
add esp, 4
push ecx
call fcn.005fef05
mov edx, dword [ebp + 0xc]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea eax, [ebp + 0x10]
push str.SetFilePointer_failed__err___ld_n
push eax
call fcn.005fb90b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.00541a30
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 3
call fcn.00602ad6
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00602ad6
mov eax, ebx
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 0x549ddd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x2c]
mov dword [ebp + 8], eax
push edx
call fcn.005fef05
mov eax, dword [ebp + 0x1c]
add esp, 4
push eax
call fcn.005fef05
mov ecx, dword [ebp + 0x30]
add esp, 4
push ecx
call fcn.005fef05
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edx
call ebx
push esi
call ebx
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push esi
push str.SetEndOfFile_failed__err___ld_n
push eax
call fcn.005fb90b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.00541a30
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 3
call fcn.00602ad6
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00602ad6
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 edx, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
sub edx, ebx
mov ebx, dword [edi + 0xa0]
sbb eax, ecx
add ebx, edx
mov dword [edi + 0xa0], ebx
mov ecx, dword [edi + 0xa4]
adc ecx, eax
mov dword [edi + 0xa4], ecx
jmp 0x549e0e
mov esi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
push ecx
mov dword [ebp - 0x34], ecx
push edx
push eax
lea ecx, [ebp + 0x10]
push str.Set_curID__d__curPos__I64d_n
push ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
call fcn.005fb90b
mov edx, dword [ebp + 0x10]
add esp, 0x14
mov ecx, edi
push edx
call fcn.00541a30
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
test esi, esi
je 0x549e52
push esi
call ebx
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 3
call fcn.00602ad6
jmp 0x54951c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
lea edx, [ebp - 0x118]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push edx
call fcn.005e6db3
add esp, 0x10
mov eax, dword [esi]
test eax, eax
je 0x549e8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x118]
push eax
push esi
push 0
push 0xf003f
push 0
push 0x6d0c38
push 0
push ecx
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], 3
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
push 0
mov edx, dword [esi]
lea ebx, [edi + 0xc8]
push 0
push 0
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x549ef6
push str.Cannot_find_registry_subkeys_counter._n
mov ecx, edi
call fcn.00541a30
mov dword [ebx], 0
jmp 0x549f15
mov eax, dword [ebx]
lea ecx, [ebp + 0x10]
push eax
push str.Values_counter_in_the_registry_subkey___d_n
push ecx
call fcn.005fb90b
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, edi
push edx
call fcn.00541a30
lea ecx, [ebp + 0x10]
mov dword [edi + 0xd0], 1
mov byte [ebp - 4], 0
call fcn.00602ad6
xor esi, esi
mov edx, dword [edi + 0xa0]
mov eax, dword [edi + 0xa4]
mov ecx, edx
mov dword [ebp + 0x24], eax
or ecx, eax
je 0x549f9b
mov eax, dword [edi + 0xa8]
mov ecx, dword [edi + 0xac]
mov ebx, eax
or ebx, ecx
je 0x549f9b
mov edi, dword [edi + 0xd8]
mov ebx, dword [edi]
cmp ebx, esi
je 0x549f9b
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x94], ecx
push eax
mov dword [ebp - 0x90], edx
mov edx, dword [ebp + 0x24]
push 0x1471
mov ecx, ebx
push 0x111
push ecx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], esi
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