Function at 0x549d50
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 0x62afe8
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 0x549dff
cmp ecx, esi
jne 0x549e16
jmp 0x54ad4b
push eax
lea ecx, [ebp - 0x118]
push str.SoftwareDownloadManager_ldChList
push ecx
call fcn.005e7bd3
add esp, 0xc
jmp 0x549e2c
push ecx
push edx
lea edx, [ebp - 0x118]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push edx
call fcn.005e7bd3
add esp, 0x10
mov eax, dword [edi + 0xdc]
lea ebx, [edi + 0xdc]
cmp eax, esi
je 0x549e43
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 0x6d1c98
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 0x549eef
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 0x549ec1
cmp dword [ebp - 0x64], 1
jne 0x549ec1
xor eax, eax
jmp 0x549ec4
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.00549850
cmp eax, esi
je 0x54acdd
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 0x549f22
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.00548620
cmp eax, esi
je 0x54acdd
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 0x6a8834
push eax
mov dword [edi + 0xcc], esi
mov dword [ebp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x54acdd
mov ecx, dword [0x6cd768]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
cmp eax, esi
je 0x54a0b0
push eax
lea edx, [ebp - 0x118]
push str.SoftwareDownloadManager_ld
push edx
call fcn.005e7bd3
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 0x6d1c98
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.005ffe3f
mov ebx, eax
add esp, 4
cmp ebx, esi
mov dword [ebp + 0x2c], ebx
je 0x54a16d
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 0x54a00f
push str.Cannot_find_old_localFileName_in_registry._n
mov ecx, edi
call fcn.005427e0
push ebx
call fcn.005ffe68
add esp, 4
jmp 0x54a0b7
push ebx
lea eax, [ebp + 0x10]
push str.Loading_old_localFileName____ls_from_registry_n
push eax
call fcn.005fc86b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.005427e0
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 0x54a07a
push str.Cannot_find_old_file_size_in_registry._n
mov ecx, edi
call fcn.005427e0
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 0x54a114
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.005fc86b
mov ecx, dword [ebp + 0x10]
add esp, 0x10
push ecx
mov ecx, edi
call fcn.005427e0
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x54a114
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jne 0x54a0d9
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00603a3c
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.005e71bf
lea eax, [eax + eax + 2]
push eax
call fcn.005ffe3f
mov ebx, eax
add esp, 8
cmp ebx, esi
mov dword [ebp + 0x2c], ebx
je 0x54a16d
mov ecx, dword [ebp + 0x1c]
push ecx
push ebx
call fcn.005e7389
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.0054c720
push ebx
mov dword [ebp + 0x28], 0x10
call fcn.005e71bf
lea ecx, [eax + eax + 0x14]
push ecx
call fcn.005ffe3f
add esp, 8
cmp eax, esi
mov dword [ebp + 0x1c], eax
push ebx
je 0x54a165
call fcn.005e71bf
lea edx, [eax + eax + 0x14]
push edx
call fcn.005ffe3f
add esp, 8
cmp eax, esi
mov dword [ebp + 0x30], eax
jne 0x54a191
push ebx
call fcn.005ffe68
mov eax, dword [ebp + 0x1c]
add esp, 4
push eax
call fcn.005ffe68
add esp, 4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00603a3c
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.005427e0
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 0x54a1e0
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.005fc86b
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, edi
push edx
call fcn.005427e0
jmp 0x54a271
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 0x54a23e
mov eax, esi
cmp eax, esi
jne 0x54a23e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x54a23e
push eax
lea edx, [ebp + 0x10]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.005fc86b
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, edi
push eax
call fcn.005427e0
mov dword [edi + 0xa0], esi
mov dword [edi + 0xa4], esi
jmp 0x54a267
mov ecx, dword [ebp - 0x44]
push 1
push esi
push esi
push ecx
call fcn.005e9a70
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.005e7f83
mov eax, dword [edi + 0xa4]
add esp, 0x14
cmp eax, esi
jg 0x54a2c3
jl 0x54a2b7
cmp dword [edi + 0xa0], esi
jae 0x54a2c3
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 0x6a10e4
push ecx
call fcn.005e7bd3
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x54a374
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.005427e0
mov esi, dword [ebp + 0x2c]
push esi
call fcn.005ffe68
mov eax, dword [ebp + 0x1c]
add esp, 4
push eax
call fcn.005ffe68
mov ecx, dword [ebp + 0x30]
add esp, 4
push ecx
call fcn.005ffe68
mov eax, dword [edi + 0xdc]
lea esi, [edi + 0xdc]
add esp, 4
test eax, eax
je 0x54a34f
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp + 8]
test eax, eax
je 0x54ac13
push eax
lea edx, [ebp - 0x118]
push str.SoftwareDownloadManager_ldChList
push edx
call fcn.005e7bd3
add esp, 0xc
jmp 0x54ac2f
mov esi, dword [ebp + 0x2c]
mov ecx, edi
push esi
push eax
call fcn.0054c720
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 0x54a3c3
push eax
lea eax, [ebp + 0x10]
push str.Error_reading_registry__errCode___d._End_rebuilding._n
push eax
call fcn.005fc86b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.005427e0
jmp 0x54a317
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.005fc86b
mov edx, dword [ebp + 0x10]
add esp, 0x1c
mov ecx, edi
push edx
call fcn.005427e0
mov eax, dword [ebp - 0x30]
push eax
push esi
mov esi, dword [ebp + 0x1c]
push str._s_d
push esi
call fcn.005e8107
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 0x54a5f5
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 0x54a565
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x54a565
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x54a565
push eax
lea edx, [ebp + 0x10]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.005fc86b
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, edi
push eax
call fcn.005427e0
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.005fc86b
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, edi
push edx
call fcn.005427e0
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push esi
push 0x6a10e4
push eax
call fcn.005e7bd3
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 0x54a502
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.005fc86b
mov ecx, dword [ebp + 0x10]
add esp, 0x18
push ecx
mov ecx, edi
call fcn.005427e0
mov edx, dword [ebp + 0x1c]
push edx
call fcn.005e8c9e
add esp, 4
cmp eax, 0xffffffff
jne 0x54a2cc
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x10]
push eax
push str.Could_not_delete_temp_file__ls_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, edi
push edx
call fcn.005427e0
jmp 0x54a2cc
mov ecx, dword [ebp - 0x44]
push 1
push 0
push 0
push ecx
call fcn.005e9a70
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.005fc86b
mov ecx, dword [ebp + 0x10]
add esp, 0x14
push ecx
mov ecx, edi
call fcn.005427e0
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x54a480
jg 0x54a5b5
test esi, esi
jbe 0x54a480
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 0x54a620
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.005e8107
add esp, 0x10
jmp 0x54a638
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.005fc86b
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov ecx, edi
push eax
call fcn.005427e0
xor ebx, ebx
jmp 0x54a480
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x30]
push ecx
push 0x6bea54
push edx
call fcn.005e8107
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 0x54a7bf
push ebx
lea eax, [ebp + 0x10]
push str.Error_opening_file__ls._n
push eax
call fcn.005fc86b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.005427e0
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.005fc86b
mov ecx, dword [ebp + 0x10]
add esp, 0x14
push ecx
mov ecx, edi
call fcn.005427e0
mov edx, dword [0x6cd768]
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.005fc86b
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 0x54a72a
mov eax, dword [ebp - 0x40]
test eax, eax
jbe 0x54a72a
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 0x54a9a7
cmp esi, edx
jne 0x54a9a7
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.00547f20
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x54a84c
cmp esi, 0x757c
je 0x54a84c
mov eax, dword [ebp + 0x2c]
push eax
call fcn.005ffe68
mov ecx, dword [ebp + 0x1c]
add esp, 4
push ecx
call fcn.005ffe68
mov edx, dword [ebp + 0x30]
add esp, 4
push edx
call fcn.005ffe68
add esp, 4
jmp 0x54ab60
test esi, esi
je 0x54a683
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 0x54a815
test eax, eax
jne 0x54a815
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x54a815
push eax
lea eax, [ebp + 0x10]
push str.Error_during_GetFileSize____errcode___d._n
push eax
call fcn.005fc86b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.005427e0
jmp 0x54a683
mov edx, dword [ebp - 0x44]
push 1
push 0
push 0
push edx
call fcn.005e9a70
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 0x54a68b
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.005fc86b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.005427e0
mov edx, dword [0x6cd768]
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.005fc86b
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 0x54a903
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 0x6a1150
push eax
call fcn.005e7bd3
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.005fc86b
mov edx, dword [ebp + 0x10]
add esp, 0x18
mov ecx, edi
push edx
call fcn.005427e0
mov esi, dword [ebp + 0x1c]
push esi
call fcn.005e8c9e
add esp, 4
cmp eax, 0xffffffff
jne 0x54a996
push esi
lea eax, [ebp + 0x10]
push str.Could_not_delete_temp_file__ls_n
push eax
call fcn.005fc86b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.005427e0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00603a3c
jmp 0x54ac02
mov ecx, dword [ebp - 0x14]
cmp ecx, edx
jl 0x54abbb
jg 0x54a9bd
cmp dword [ebp - 0x18], eax
jbe 0x54abbb
test ecx, ecx
jl 0x54abbb
jg 0x54a9d2
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x54abbb
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.005fc86b
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov ecx, edi
push eax
call fcn.005427e0
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x54abbe
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 0x54aa22
jg 0x54aa1d
test eax, eax
jbe 0x54aa22
mov dword [ebp - 0x54], eax
jmp 0x54aa29
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.005fc86b
mov edx, dword [ebp + 0x10]
add esp, 0x10
mov ecx, edi
push edx
call fcn.005427e0
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 0x54aaf5
test ebx, ebx
je 0x54aaf5
mov edx, dword [ebp + 0x2c]
push edx
call fcn.005ffe68
mov eax, dword [ebp + 0x1c]
add esp, 4
push eax
call fcn.005ffe68
mov ecx, dword [ebp + 0x30]
add esp, 4
push ecx
call fcn.005ffe68
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.005fc86b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.005427e0
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 3
call fcn.00603a3c
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00603a3c
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 0x54ab8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x2c]
mov dword [ebp + 8], eax
push edx
call fcn.005ffe68
mov eax, dword [ebp + 0x1c]
add esp, 4
push eax
call fcn.005ffe68
mov ecx, dword [ebp + 0x30]
add esp, 4
push ecx
call fcn.005ffe68
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.005fc86b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.005427e0
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 3
call fcn.00603a3c
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00603a3c
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 0x54abbe
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.005fc86b
mov edx, dword [ebp + 0x10]
add esp, 0x14
mov ecx, edi
push edx
call fcn.005427e0
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
test esi, esi
je 0x54ac02
push esi
call ebx
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 3
call fcn.00603a3c
jmp 0x54a2cc
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.005e7bd3
add esp, 0x10
mov eax, dword [esi]
test eax, eax
je 0x54ac3c
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 0x6d1c98
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 0x54aca6
push str.Cannot_find_registry_subkeys_counter._n
mov ecx, edi
call fcn.005427e0
mov dword [ebx], 0
jmp 0x54acc5
mov eax, dword [ebx]
lea ecx, [ebp + 0x10]
push eax
push str.Values_counter_in_the_registry_subkey___d_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, edi
push edx
call fcn.005427e0
lea ecx, [ebp + 0x10]
mov dword [edi + 0xd0], 1
mov byte [ebp - 4], 0
call fcn.00603a3c
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 0x54ad4b
mov eax, dword [edi + 0xa8]
mov ecx, dword [edi + 0xac]
mov ebx, eax
or ebx, ecx
je 0x54ad4b
mov edi, dword [edi + 0xd8]
mov ebx, dword [edi]
cmp ebx, esi
je 0x54ad4b
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