Function at 0x547b90
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 0x62a720
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x340
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x18]
mov dword [esi], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0xc], edi
mov edi, dword [ebp + 0x2c]
mov dword [esi + 0xa0], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xf8], ebx
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x70], esi
mov dword [ebp - 4], ebx
mov dword [esi + 0x90], eax
mov dword [esi + 0xa4], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0x10], edi
jne 0x547c3f
cmp ecx, ebx
jne 0x547c56
jmp 0x548bf7
push eax
lea ecx, [ebp - 0x34c]
push str.SoftwareDownloadManager_ldChList
push ecx
call fcn.005e5bb8
add esp, 0xc
jmp 0x547c6c
push ecx
push edx
lea edx, [ebp - 0x34c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push edx
call fcn.005e5bb8
add esp, 0x10
mov eax, dword [esi + 0xdc]
lea edi, [esi + 0xdc]
cmp eax, ebx
je 0x547c83
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x34c]
push eax
push edi
push ebx
push 0xf003f
push ebx
push 0x6f5cb8
push ebx
push ecx
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [edi]
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x60]
push edx
push eax
push ebx
push ebx
push str.f_tfc
push ecx
mov dword [ebp - 0x58], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x547d2f
mov ecx, dword [edi]
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x60]
push edx
push eax
push ebx
push ebx
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 0x547d01
cmp dword [ebp - 0x60], 1
jne 0x547d01
xor eax, eax
jmp 0x547d04
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x30]
mov ecx, esi
push edx
push eax
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00547690
cmp eax, ebx
je 0x548b89
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], ebx
je 0x547d62
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00546470
cmp eax, ebx
je 0x548b89
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 [edi]
lea ecx, [ebp + 0x2c]
lea edx, [ebp - 0x28]
push ecx
push edx
push ebx
push ebx
push 0x6cc840
push eax
mov dword [esi + 0xcc], ebx
mov dword [ebp + 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x548b89
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x547f14
push eax
lea ecx, [ebp - 0x34c]
push str.SoftwareDownloadManager_ld
push ecx
call fcn.005e5bb8
add esp, 0xc
lea edx, [ebp - 0x64]
lea eax, [ebp + 0x1c]
lea ecx, [ebp - 0x34c]
push edx
push eax
push ebx
push 0xf003f
push ebx
push 0x6f5cb8
push ebx
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ebx
lea edx, [ebp + 0x2c]
push ebx
mov eax, dword [ebp + 0x1c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [ebp + 0x2c]
lea edx, [ecx*4 + 4]
push edx
call fcn.005fdccd
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [ebp + 0x30], edi
jne 0x547e22
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
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp + 0x2c]
push eax
push edi
push ebx
push ebx
push str.LocalFileName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x547e67
push str.Cannot_find_old_localFileName_in_registry._n
mov ecx, esi
call fcn.005406a0
push edi
call fcn.005fdcf6
add esp, 4
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 edi
lea edx, [ebp - 0x2cc]
push str.Loading_old_localFileName____ls_from_registry_n
push edx
call fcn.005e5bb8
add esp, 0xc
lea eax, [ebp - 0x2cc]
mov ecx, esi
push eax
call fcn.005406a0
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 0x2c]
lea eax, [esi + 0xa8]
push ecx
push eax
push ebx
push ebx
push str.FileSize
push edx
mov dword [ebp + 0x2c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x547ed8
push str.Cannot_find_old_file_size_in_registry._n
mov ecx, esi
call fcn.005406a0
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0xa8], ebx
push ecx
mov dword [esi + 0xac], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x547f84
mov eax, dword [esi + 0xac]
mov ecx, dword [esi + 0xa8]
push eax
push ecx
lea edx, [ebp - 0x2cc]
push str.Loading_old_file_size__I64d_Bytes_from_registry_n
push edx
call fcn.005e5bb8
add esp, 0x10
lea eax, [ebp - 0x2cc]
mov ecx, esi
push eax
call fcn.005406a0
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x547f84
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
jne 0x547f31
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.005e519b
lea edx, [eax + eax + 2]
push edx
call fcn.005fdccd
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [ebp + 0x30], edi
jne 0x547f65
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
mov eax, dword [ebp + 0x1c]
push eax
push edi
call fcn.005e5369
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov dword [esi + 0xa8], ecx
add esp, 8
mov dword [esi + 0xac], edx
push edi
push ebx
mov ecx, esi
call fcn.0054a590
push edi
mov dword [ebp + 0x2c], 0x10
call fcn.005e519b
lea eax, [eax + eax + 0x14]
push eax
call fcn.005fdccd
add esp, 8
cmp eax, ebx
mov dword [ebp + 0x1c], eax
push edi
jne 0x547fcf
call fcn.005fdcf6
add esp, 4
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
call fcn.005e519b
lea ecx, [eax + eax + 0x14]
push ecx
call fcn.005fdccd
add esp, 8
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x548015
push edi
call fcn.005fdcf6
mov edx, dword [ebp + 0x1c]
add esp, 4
push edx
call fcn.005fdcf6
add esp, 4
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, esi
call fcn.005406a0
push ebx
push ebx
push 3
push ebx
push 1
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x28], eax
jne 0x54806a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2cc]
push str.Error_reading_first_chunk__errcode___d._n
push eax
call fcn.005e5bb8
add esp, 0xc
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, esi
call fcn.005406a0
jmp 0x548101
mov eax, dword [ebp + 0x28]
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], ebx
cmp dword [esi + 0xa0], 0xffffffff
jne 0x5480ce
mov eax, ebx
cmp eax, ebx
jne 0x5480ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x5480ce
push eax
lea ecx, [ebp - 0x2cc]
push str.Error_during_GetFileSize____errcode___d._n
push ecx
call fcn.005e5bb8
add esp, 0xc
lea edx, [ebp - 0x2cc]
mov ecx, esi
push edx
call fcn.005406a0
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
jmp 0x5480f7
mov eax, dword [ebp - 0x3c]
push 1
push ebx
push ebx
push eax
call fcn.005e7a50
mov ecx, dword [esi + 0xa0]
add ecx, eax
mov dword [esi + 0xa0], ecx
mov eax, dword [esi + 0xa4]
adc eax, edx
mov dword [esi + 0xa4], eax
mov ecx, dword [ebp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0xa0]
mov eax, dword [esi + 0xa4]
push ebx
push ebx
lea ecx, [ebp - 0x7c]
push ebx
push ecx
mov dword [esi + 0x100], edx
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0xcc], 1
call fcn.005e5f68
mov eax, dword [esi + 0xa4]
add esp, 0x14
cmp eax, ebx
jg 0x548153
jl 0x548147
cmp dword [esi + 0xa0], ebx
jae 0x548153
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push edx
push 0x6c50dc
push eax
call fcn.005e5bb8
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x548206
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xf0], ecx
mov dword [esi + 0xf8], edx
push str.This_is_the_last_chunk._End_rebuilding._n
mov ecx, esi
mov dword [esi + 0xfc], eax
call fcn.005406a0
mov edi, dword [ebp + 0x30]
xor ebx, ebx
push edi
call fcn.005fdcf6
mov ecx, dword [ebp + 0x1c]
add esp, 4
push ecx
call fcn.005fdcf6
mov edx, dword [ebp + 0xc]
add esp, 4
push edx
call fcn.005fdcf6
mov eax, dword [esi + 0xdc]
lea edi, [esi + 0xdc]
add esp, 4
cmp eax, ebx
je 0x5481e1
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x548ad8
push eax
lea eax, [ebp - 0x34c]
push str.SoftwareDownloadManager_ldChList
push eax
call fcn.005e5bb8
add esp, 0xc
jmp 0x548af4
mov edi, dword [ebp + 0x30]
mov ecx, esi
push edi
push eax
call fcn.0054a590
lea ecx, [ebp + 0x2c]
lea edx, [ebp - 0x28]
push ecx
mov ecx, dword [esi + 0xdc]
xor ebx, ebx
push edx
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x54825b
push eax
lea edx, [ebp - 0x2cc]
push str.Error_reading_registry__errCode___d._End_rebuilding._n
push edx
call fcn.005e5bb8
add esp, 0xc
lea eax, [ebp - 0x2cc]
mov ecx, esi
push eax
call fcn.005406a0
jmp 0x5481a9
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x28]
push edx
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
lea eax, [ebp - 0x2cc]
push str.Read_record_num.__s_from_registry:_ID___d__startPos___I64d__nextID___d_n
push eax
call fcn.005e5bb8
add esp, 0x1c
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, esi
call fcn.005406a0
mov edx, dword [ebp - 0x28]
push edx
push edi
mov edi, dword [ebp + 0x1c]
push str._s_d
push edi
call fcn.005e60ec
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x28], eax
je 0x54849b
mov ecx, dword [ebp + 0x28]
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x548411
test ebx, ebx
jne 0x548411
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x548411
push eax
lea edx, [ebp - 0x2cc]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.005e5bb8
add esp, 0xc
lea eax, [ebp - 0x2cc]
mov ecx, esi
push eax
call fcn.005406a0
mov edx, dword [esi + 0xdc]
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x2cc]
push eax
push str.Deleting_record__s_from_registry_n
push ecx
call fcn.005e5bb8
add esp, 0xc
lea edx, [ebp - 0x2cc]
mov ecx, esi
push edx
call fcn.005406a0
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
push edi
push 0x6c50dc
push eax
call fcn.005e5bb8
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
add esp, 0xc
lea edx, [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0xdc]
push 0x10
push edx
push 0
lea eax, [ebp - 0x18]
push 0
push eax
push ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x5483a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
push edx
push eax
push ebx
push edi
lea ecx, [ebp - 0x2cc]
push str.Adding_record_with_ID__d__startPos__I64d__nextID__d_n
push ecx
call fcn.005e5bb8
add esp, 0x18
lea edx, [ebp - 0x2cc]
mov ecx, esi
push edx
call fcn.005406a0
mov eax, dword [ebp + 0x1c]
push eax
call fcn.005e6c7e
add esp, 4
cmp eax, 0xffffffff
jne 0x54815c
mov ecx, dword [ebp + 0x1c]
lea edx, [ebp - 0x2cc]
push ecx
push str.Could_not_delete_temp_file__ls_n
push edx
call fcn.005e5bb8
add esp, 0xc
lea eax, [ebp - 0x2cc]
mov ecx, esi
push eax
call fcn.005406a0
jmp 0x54815c
mov ecx, dword [ebp - 0x3c]
push 1
push 0
push 0
push ecx
call fcn.005e7a50
add edi, eax
lea eax, [ebp - 0x2cc]
adc ebx, edx
mov edx, dword [ebp + 0x1c]
push ebx
push edi
push edx
push str.next_file__ls__size__I64d_n
push eax
call fcn.005e5bb8
add esp, 0x14
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, esi
call fcn.005406a0
test ebx, ebx
jl 0x54831a
jg 0x54845e
test edi, edi
jbe 0x54831a
mov edx, dword [esi + 0xa0]
mov eax, dword [ebp - 0x2c]
add edx, edi
mov dword [esi + 0xa0], edx
mov ecx, dword [esi + 0xa4]
adc ecx, ebx
test eax, eax
mov dword [esi + 0xa4], ecx
je 0x5484cd
mov edx, dword [ebp + 0x30]
mov edi, dword [ebp + 0xc]
mov ecx, eax
push ecx
push edx
push str._s_d
push edi
call fcn.005e60ec
add esp, 0x10
jmp 0x5484e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea edx, [ebp - 0x2cc]
push str.Error_opening_file__ls__errcode___ld._n
push edx
call fcn.005e5bb8
add esp, 0x10
lea eax, [ebp - 0x2cc]
mov ecx, esi
push eax
call fcn.005406a0
mov dword [ebp + 0x28], ebx
jmp 0x54831a
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0xc]
push eax
push 0x6e29e0
push ecx
call fcn.005e60ec
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]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x548673
push edi
lea edx, [ebp - 0x2cc]
push str.Error_opening_file__ls._n
push edx
call fcn.005e5bb8
add esp, 0xc
lea eax, [ebp - 0x2cc]
mov ecx, esi
push eax
call fcn.005406a0
mov dword [ebp + 0x10], 0
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], ebx
mov edx, dword [ebp + 0xc]
push ebx
push edi
push edx
lea eax, [ebp - 0x2cc]
push str.this_file__ls__size__I64d_n
push eax
call fcn.005e5bb8
add esp, 0x14
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, esi
call fcn.005406a0
mov edx, dword [0x6f175c]
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp + 0x24], edx
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp + 0x24]
push eax
push str.sk_ld
push ecx
mov byte [ebp - 4], 3
call fcn.005fa6fb
mov ecx, dword [ebp + 0x24]
add esp, 0xc
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x30]
push edx
mov edx, dword [esi + 0xdc]
push eax
push edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, 4
push ecx
push edx
mov dword [ebp - 0x54], ebx
call edi
test eax, eax
jne 0x5485dd
mov eax, dword [ebp - 0x30]
test eax, eax
jbe 0x5485dd
mov edx, dword [esi + 0xdc]
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x5c]
push eax
push ecx
push 0
push 0
push str.mmsPacketSize
push edx
mov dword [ebp - 0x54], ebx
call edi
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
sub eax, edx
mov edx, ebx
sbb edx, ecx
mov ecx, dword [ebp - 0x5c]
imul ecx, dword [ebp - 0x30]
xor edi, edi
add ecx, dword [ebp - 0x44]
adc edi, dword [ebp - 0x40]
cmp ecx, eax
jne 0x54886f
cmp edi, edx
jne 0x54886f
mov eax, dword [ebp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x7c]
push 0
push ecx
push edx
push ebx
mov ecx, esi
call fcn.00545d60
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x548702
cmp edi, 0x757c
je 0x548702
mov eax, dword [ebp + 0x30]
push eax
call fcn.005fdcf6
mov ecx, dword [ebp + 0x1c]
add esp, 4
push ecx
call fcn.005fdcf6
mov edx, dword [ebp + 0xc]
add esp, 4
push edx
call fcn.005fdcf6
add esp, 4
jmp 0x548a2d
test eax, eax
je 0x548534
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x3c]
xor ebx, ebx
push ecx
push edx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5486cb
test ebx, ebx
jne 0x5486cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5486cb
push eax
lea eax, [ebp - 0x2cc]
push str.Error_during_GetFileSize____errcode___d._n
push eax
call fcn.005e5bb8
add esp, 0xc
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, esi
call fcn.005406a0
jmp 0x548534
mov edx, dword [ebp - 0x3c]
push 1
push 0
push 0
push edx
call fcn.005e7a50
mov ecx, dword [ebp + 0x10]
add edi, eax
lea eax, [ebp - 0x6c]
push 2
push eax
push 0
adc ebx, edx
push ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x6c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x54853e
mov ecx, dword [esi + 0xdc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x18]
push eax
push ecx
call edi
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x2cc]
push edx
push str.Deleting_record__s_from_registry_n
push eax
call fcn.005e5bb8
add esp, 0xc
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, esi
call fcn.005406a0
mov edx, dword [0x6f175c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x50]
push eax
push str.sk_s
push ecx
mov byte [ebp - 4], 4
call fcn.005fa6fb
mov ecx, dword [ebp - 0x50]
add esp, 0xc
lea edx, [ebp - 0x74]
lea eax, [ebp - 0x68]
push edx
mov edx, dword [esi + 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 0x5487bf
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x30]
mov edx, dword [esi + 0xdc]
add ecx, eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x50]
push ecx
push edx
call edi
mov ecx, dword [ebp + 0x24]
mov edx, dword [esi + 0xdc]
lea eax, [ebp - 0x30]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
push edi
push 0x6c5148
push eax
call fcn.005e5bb8
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
add esp, 0xc
lea edx, [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0xdc]
push 0x10
push edx
push 0
lea eax, [ebp - 0x18]
push 0
push eax
push ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
push edx
push eax
push ebx
push edi
lea ecx, [ebp - 0x2cc]
push str.Adding_record_with_ID__d__startPos__I64d__nextID__d_n
push ecx
call fcn.005e5bb8
add esp, 0x18
lea edx, [ebp - 0x2cc]
mov ecx, esi
push edx
call fcn.005406a0
mov edi, dword [ebp + 0x1c]
push edi
call fcn.005e6c7e
add esp, 4
cmp eax, 0xffffffff
jne 0x54885e
push edi
lea eax, [ebp - 0x2cc]
push str.Could_not_delete_temp_file__ls_n
push eax
call fcn.005e5bb8
add esp, 0xc
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, esi
call fcn.005406a0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.006018cc
jmp 0x548ac7
mov ecx, dword [ebp - 0x40]
cmp ecx, edx
jl 0x548a7d
jg 0x548885
cmp dword [ebp - 0x44], eax
jbe 0x548a7d
test ecx, ecx
jl 0x548a7d
jg 0x54889a
mov eax, dword [ebp - 0x44]
test eax, eax
jbe 0x548a7d
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
push ebx
push edx
push eax
lea ecx, [ebp - 0x2cc]
push str.Chunk_order_violation_error__cInf.ID__d__startPos__I64d_n
push ecx
call fcn.005e5bb8
add esp, 0x14
lea edx, [ebp - 0x2cc]
mov ecx, esi
push edx
call fcn.005406a0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x548a7a
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
sub eax, edi
sbb ecx, edx
js 0x5488ed
jg 0x5488e8
test eax, eax
jbe 0x5488ed
mov dword [ebp - 0x4c], eax
jmp 0x5488f4
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x4c], eax
push ecx
push eax
lea eax, [ebp - 0x2cc]
push str.Try_rollback__set_chunksize_to__I64d_n
push eax
mov dword [ebp - 0x48], ecx
call fcn.005e5bb8
add esp, 0x10
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, esi
call fcn.005406a0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x48]
push 0
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
call edi
mov ebx, eax
mov eax, dword [ebp - 0x4c]
cmp eax, 0xffffffff
jne 0x5489c2
test ebx, ebx
je 0x5489c2
mov edx, dword [ebp + 0x30]
push edx
call fcn.005fdcf6
mov eax, dword [ebp + 0x1c]
add esp, 4
push eax
call fcn.005fdcf6
mov ecx, dword [ebp + 0xc]
add esp, 4
push ecx
call fcn.005fdcf6
mov edx, dword [ebp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edx
call edi
mov eax, dword [ebp + 0x10]
push eax
call edi
push ebx
lea ecx, [ebp - 0x2cc]
push str.SetFilePointer_failed__err___ld_n
push ecx
call fcn.005e5bb8
add esp, 0xc
lea edx, [ebp - 0x2cc]
mov ecx, esi
push edx
call fcn.005406a0
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 0
call fcn.006018cc
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
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x548a4e
call edi
mov ecx, dword [ebp + 0x30]
mov edi, eax
push ecx
call fcn.005fdcf6
mov edx, dword [ebp + 0x1c]
add esp, 4
push edx
call fcn.005fdcf6
mov eax, dword [ebp + 0xc]
add esp, 4
push eax
call fcn.005fdcf6
mov ecx, dword [ebp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call ebx
mov edx, dword [ebp + 0x10]
push edx
call ebx
push edi
lea eax, [ebp - 0x2cc]
push str.SetEndOfFile_failed__err___ld_n
push eax
call fcn.005e5bb8
add esp, 0xc
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, esi
call fcn.005406a0
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 0
call fcn.006018cc
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
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
mov edi, dword [esi + 0xa0]
sub edx, eax
mov eax, dword [ebp - 0x48]
sbb eax, ebx
add edi, edx
mov dword [esi + 0xa0], edi
mov ecx, dword [esi + 0xa4]
adc ecx, eax
mov dword [esi + 0xa4], ecx
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
push ebx
mov dword [ebp - 0x38], ecx
push ecx
push eax
lea ecx, [ebp - 0x2cc]
push str.Set_curID__d__curPos__I64d_n
push ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ebx
call fcn.005e5bb8
add esp, 0x14
lea edx, [ebp - 0x2cc]
mov ecx, esi
push edx
call fcn.005406a0
mov eax, dword [ebp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x548ac7
push eax
call ebx
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 0
call fcn.006018cc
jmp 0x54815c
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ecx
push edx
lea eax, [ebp - 0x34c]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push eax
call fcn.005e5bb8
add esp, 0x10
mov eax, dword [edi]
cmp eax, ebx
je 0x548b01
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x34c]
push ecx
push edi
push ebx
push 0xf003f
push ebx
push 0x6f5cb8
push ebx
push edx
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ebx
push ebx
mov eax, dword [esi + 0xdc]
lea edi, [esi + 0xc8]
push ebx
push ebx
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x548b5a
push str.Cannot_find_registry_subkeys_counter._n
mov ecx, esi
call fcn.005406a0
mov dword [edi], ebx
jmp 0x548b7f
mov ecx, dword [edi]
lea edx, [ebp - 0x2cc]
push ecx
push str.Values_counter_in_the_registry_subkey___d_n
push edx
call fcn.005e5bb8
add esp, 0xc
lea eax, [ebp - 0x2cc]
mov ecx, esi
push eax
call fcn.005406a0
mov dword [esi + 0xd0], 1
mov edx, dword [esi + 0xa0]
mov eax, dword [esi + 0xa4]
mov ecx, edx
mov dword [ebp + 0x24], eax
or ecx, eax
je 0x548bf7
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0xac]
mov edi, eax
or edi, ecx
je 0x548bf7
mov esi, dword [esi + 0xd8]
mov edi, dword [esi]
cmp edi, ebx
je 0x548bf7
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x90], ecx
push eax
mov dword [ebp - 0x8c], edx
mov edx, dword [ebp + 0x24]
push 0x1471
mov ecx, edi
push 0x111
push ecx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], ebx
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