Function at 0x4e7400
Capabilities:
Access peb ldr_data
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 0x58d4b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x14]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebx + 0xc], edi
mov edi, dword [ebp + 0x28]
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x70], esi
cmp eax, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x78], ebx
mov dword [ebp - 4], esi
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x6c], esi
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x74], esi
mov dword [ebx + 0x68], esi
mov dword [ebx + 0x40], esi
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov dword [ebx + 0x10], edi
jne 0x4e7479
cmp ecx, esi
jne 0x4e7490
jmp 0x4e82ca
push eax
lea ecx, [ebp - 0x328]
push str.SoftwareDownloadManager_ldChList
push ecx
call fcn.0054ea2a
add esp, 0xc
jmp 0x4e74a6
push ecx
push edx
lea edx, [ebp - 0x328]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push edx
call fcn.0054ea2a
add esp, 0x10
mov eax, dword [ebx + 0x54]
lea edi, [ebx + 0x54]
cmp eax, esi
je 0x4e74b7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x328]
push eax
push edi
push esi
push 0xf003f
push esi
push 0x63e040
push esi
push ecx
push reloc.WSOCK32.dll_accept
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [edi]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x30]
push edx
push eax
push esi
push esi
push 0x61be94
push ecx
mov dword [ebx + 0x44], esi
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4e826e
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x4e7662
push eax
lea edx, [ebp - 0x328]
push str.SoftwareDownloadManager_ld
push edx
call fcn.0054ea2a
add esp, 0xc
lea eax, [ebp - 0x64]
lea ecx, [ebp + 0x28]
lea edx, [ebp - 0x328]
push eax
push ecx
push esi
push 0xf003f
push esi
push 0x63e040
push esi
push edx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push esi
lea eax, [ebp - 0x1c]
push esi
mov ecx, dword [ebp + 0x28]
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 - 0x1c]
inc edx
push edx
call fcn.0056649c
mov edi, eax
add esp, 4
cmp edi, esi
mov dword [ebp + 0x24], edi
jne 0x4e7595
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 0x24
mov ecx, dword [ebp + 0x28]
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
push esi
push str.LocalFileName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4e75da
push str.Cannot_find_old_localFileName_in_registry._n
mov ecx, ebx
call fcn.004e50a0
push edi
call fcn.005664c5
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 0x24
push edi
lea edx, [ebp - 0x2c8]
push str.Loading_old_localFileName____s_from_registry_n
push edx
call fcn.0054ea2a
add esp, 0xc
lea eax, [ebp - 0x2c8]
mov ecx, ebx
push eax
call fcn.004e50a0
mov edx, dword [ebp + 0x28]
lea ecx, [ebp - 0x1c]
lea edi, [ebx + 0x30]
push ecx
push edi
push esi
push esi
push str.FileSize
push edx
mov dword [ebp - 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4e7637
push str.Cannot_find_old_file_size_in_registry._n
mov ecx, ebx
call fcn.004e50a0
mov dword [edi], esi
mov dword [edi + 4], esi
jmp 0x4e76e0
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
lea edx, [ebp - 0x2c8]
push str.Loading_old_file_size__I64d_Bytes_from_registry_n
push edx
call fcn.0054ea2a
add esp, 0x10
lea eax, [ebp - 0x2c8]
mov ecx, ebx
push eax
call fcn.004e50a0
jmp 0x4e76e0
cmp dword [ebp + 0x18], esi
jne 0x4e767d
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 0x24
mov edi, dword [ebp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0056649c
add esp, 4
cmp eax, esi
mov dword [ebp + 0x24], eax
jne 0x4e76b1
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 0x24
mov edi, dword [ebp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [ebp + 0x1c]
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x20]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], ecx
xor esi, esi
mov edx, dword [ebp + 0x24]
mov ecx, ebx
push edx
push esi
call fcn.004e9560
mov edi, dword [ebp + 0x24]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x1c], 0x10
repne scasb al, byte es:[edi]
not ecx
add ecx, 9
push ecx
call fcn.0056649c
add esp, 4
cmp eax, esi
mov dword [ebp + 0x18], eax
jne 0x4e7736
mov eax, dword [ebp + 0x24]
push eax
call fcn.005664c5
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 0x24
mov edi, dword [ebp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 9
push ecx
call fcn.0056649c
add esp, 4
cmp eax, esi
mov dword [ebp + 0x20], eax
jne 0x4e7785
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.005664c5
mov edx, dword [ebp + 0x18]
add esp, 4
push edx
call fcn.005664c5
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 0x24
push str.Rebuilding_old_downloaded_files_before_resume._n
mov ecx, ebx
call fcn.004e50a0
mov eax, dword [ebp + 0x24]
push esi
push esi
push 3
push esi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4e77d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c8]
push str.Error_reading_first_chunk__errcode___d._n
push ecx
call fcn.0054ea2a
add esp, 0xc
lea edx, [ebp - 0x2c8]
mov ecx, ebx
push edx
call fcn.004e50a0
jmp 0x4e784f
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], esi
cmp dword [ebx + 0x28], 0xffffffff
jne 0x4e782b
mov eax, esi
cmp eax, esi
jne 0x4e782b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x4e782b
push eax
lea ecx, [ebp - 0x2c8]
push str.Error_during_GetFileSize____errcode___d._n
push ecx
call fcn.0054ea2a
add esp, 0xc
lea edx, [ebp - 0x2c8]
mov ecx, ebx
push edx
call fcn.004e50a0
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], esi
jmp 0x4e7848
mov eax, dword [ebp - 0x3c]
push 1
push esi
push esi
push eax
call fcn.00550840
mov ecx, dword [ebx + 0x28]
add ecx, eax
mov dword [ebx + 0x28], ecx
mov eax, dword [ebx + 0x2c]
adc eax, edx
mov dword [ebx + 0x2c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
push esi
mov dword [ebx + 0x78], ecx
mov ecx, dword [ebp + 0x24]
push esi
lea eax, [ebp + 0xc]
push esi
push eax
push ecx
mov dword [ebx + 0x7c], edx
mov dword [ebx + 0x44], 1
call fcn.0054ea7c
mov eax, dword [ebx + 0x2c]
add esp, 0x14
cmp eax, esi
jg 0x4e7889
jl 0x4e7883
cmp dword [ebx + 0x28], esi
jae 0x4e7889
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
push edx
push 0x615ee0
push eax
call fcn.0054ea2a
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4e7929
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x6c], ecx
mov dword [ebx + 0x70], edx
push str.This_is_the_last_chunk._End_rebuilding._n
mov ecx, ebx
mov dword [ebx + 0x74], eax
call fcn.004e50a0
mov edi, dword [ebp + 0x24]
xor esi, esi
push edi
call fcn.005664c5
mov ecx, dword [ebp + 0x18]
add esp, 4
push ecx
call fcn.005664c5
mov edx, dword [ebp + 0x20]
add esp, 4
push edx
call fcn.005664c5
mov eax, dword [ebx + 0x54]
lea edi, [ebx + 0x54]
add esp, 4
cmp eax, esi
je 0x4e7904
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x4e81c5
push eax
lea eax, [ebp - 0x328]
push str.SoftwareDownloadManager_ldChList
push eax
call fcn.0054ea2a
add esp, 0xc
jmp 0x4e81e1
mov edi, dword [ebp + 0x24]
mov ecx, ebx
push edi
push eax
call fcn.004e9560
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x30]
push ecx
mov ecx, dword [ebx + 0x54]
xor esi, esi
push edx
push esi
lea eax, [ebp - 0x18]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x4e797b
push eax
lea edx, [ebp - 0x2c8]
push str.Error_reading_registry__errCode___d._End_rebuilding._n
push edx
call fcn.0054ea2a
add esp, 0xc
lea eax, [ebp - 0x2c8]
mov ecx, ebx
push eax
call fcn.004e50a0
jmp 0x4e78d2
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x30]
push edx
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
lea eax, [ebp - 0x2c8]
push str.Read_record_num.__s_from_registry:_ID___d__startPos___I64d__nextID___d_n
push eax
call fcn.0054ea2a
add esp, 0x1c
lea ecx, [ebp - 0x2c8]
push ecx
mov ecx, ebx
call fcn.004e50a0
mov edx, dword [ebp - 0x30]
push edx
push edi
mov edi, dword [ebp + 0x18]
push str._s_d
push edi
call fcn.0054ea2a
add esp, 0x10
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x4e7ba9
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor esi, esi
cmp edi, 0xffffffff
jne 0x4e7b2b
test esi, esi
jne 0x4e7b2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e7b2b
push eax
lea edx, [ebp - 0x2c8]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.0054ea2a
add esp, 0xc
lea eax, [ebp - 0x2c8]
mov ecx, ebx
push eax
call fcn.004e50a0
mov edx, dword [ebx + 0x54]
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x2c8]
push eax
push str.Deleting_record__s_from_registry_n
push ecx
call fcn.0054ea2a
add esp, 0xc
lea edx, [ebp - 0x2c8]
mov ecx, ebx
push edx
call fcn.004e50a0
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x18]
push esi
push 0x615ee0
push eax
call fcn.0054ea2a
mov ecx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
add esp, 0xc
lea edx, [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebx + 0x54]
push 0x10
push edx
push 0
lea eax, [ebp - 0x18]
push 0
push eax
push ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4e7abf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x40]
push edx
push eax
push edi
push esi
lea ecx, [ebp - 0x2c8]
push str.Adding_record_with_ID__d__startPos__I64d__nextID__d_n
push ecx
call fcn.0054ea2a
add esp, 0x18
lea edx, [ebp - 0x2c8]
mov ecx, ebx
push edx
call fcn.004e50a0
mov eax, dword [ebp + 0x18]
push eax
call fcn.005502d1
add esp, 4
cmp eax, 0xffffffff
jne 0x4e7892
mov ecx, dword [ebp + 0x18]
lea edx, [ebp - 0x2c8]
push ecx
push str.Could_not_delete_temp_file__s_n
push edx
call fcn.0054ea2a
add esp, 0xc
lea eax, [ebp - 0x2c8]
mov ecx, ebx
push eax
call fcn.004e50a0
jmp 0x4e7892
mov ecx, dword [ebp - 0x3c]
push 1
push 0
push 0
push ecx
call fcn.00550840
add edi, eax
lea eax, [ebp - 0x2c8]
adc esi, edx
mov edx, dword [ebp + 0x18]
push esi
push edi
push edx
push str.next_file__s__size__I64d_n
push eax
call fcn.0054ea2a
add esp, 0x14
lea ecx, [ebp - 0x2c8]
push ecx
mov ecx, ebx
call fcn.004e50a0
test esi, esi
jl 0x4e7a3a
jg 0x4e7b78
test edi, edi
jbe 0x4e7a3a
mov edx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x48]
add edx, edi
mov dword [ebx + 0x28], edx
mov ecx, dword [ebx + 0x2c]
adc ecx, esi
test eax, eax
mov dword [ebx + 0x2c], ecx
je 0x4e7bdb
mov edx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x20]
mov ecx, eax
push ecx
push edx
push str._s_d
push esi
call fcn.0054ea2a
add esp, 0x10
jmp 0x4e7bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea edx, [ebp - 0x2c8]
push str.Error_opening_file__s__errcode___ld._n
push edx
call fcn.0054ea2a
add esp, 0x10
lea eax, [ebp - 0x2c8]
mov ecx, ebx
push eax
call fcn.004e50a0
mov dword [ebp - 0x20], esi
jmp 0x4e7a3a
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
push eax
push 0x615e9c
push ecx
call fcn.0054ea2a
mov esi, dword [ebp + 0x20]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x28], eax
jne 0x4e7d6f
push esi
lea edx, [ebp - 0x2c8]
push str.Error_opening_file__s._n
push edx
call fcn.0054ea2a
add esp, 0xc
lea eax, [ebp - 0x2c8]
mov ecx, ebx
push eax
call fcn.004e50a0
mov dword [ebp + 0x28], 0
xor esi, esi
xor edi, edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], edi
mov edx, dword [ebp + 0x20]
push edi
push esi
push edx
lea eax, [ebp - 0x2c8]
push str.this_file__s__size__I64d_n
push eax
call fcn.0054ea2a
add esp, 0x14
lea ecx, [ebp - 0x2c8]
push ecx
mov ecx, ebx
call fcn.004e50a0
mov edx, dword [0x639ad4]
xor esi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x34]
push eax
push str.sk_ld
push ecx
mov byte [ebp - 4], 3
call fcn.00562ecb
mov ecx, dword [ebp - 0x34]
add esp, 0xc
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x38]
push edx
mov edx, dword [ebx + 0x54]
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, 4
push ecx
push edx
mov dword [ebp - 0x60], edi
call esi
test eax, eax
jne 0x4e7ce5
mov eax, dword [ebp - 0x38]
test eax, eax
jbe 0x4e7ce5
mov edx, dword [ebx + 0x54]
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x6c]
push eax
push ecx
push 0
push 0
push str.mmsPacketSize
push edx
mov dword [ebp - 0x60], edi
call esi
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x40]
sub eax, edx
mov edx, esi
sbb edx, ecx
mov ecx, dword [ebp - 0x6c]
imul ecx, dword [ebp - 0x38]
xor edi, edi
add ecx, dword [ebp - 0x50]
adc edi, dword [ebp - 0x4c]
cmp ecx, eax
jne 0x4e7f68
cmp edi, edx
jne 0x4e7f68
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x28]
lea ecx, [ebp + 0xc]
push 0
push ecx
push edx
push edi
mov ecx, ebx
call fcn.004e6f30
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4e7dfe
mov eax, dword [ebp + 0x24]
push eax
call fcn.005664c5
mov ecx, dword [ebp + 0x18]
add esp, 4
push ecx
call fcn.005664c5
mov edx, dword [ebp + 0x20]
add esp, 4
push edx
call fcn.005664c5
add esp, 4
jmp 0x4e809a
test eax, eax
je 0x4e7c42
mov edx, dword [ebp + 0x28]
lea ecx, [ebp - 0x3c]
xor edi, edi
push ecx
push edx
mov dword [ebp - 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e7dc7
test edi, edi
jne 0x4e7dc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e7dc7
push eax
lea eax, [ebp - 0x2c8]
push str.Error_during_GetFileSize____errcode___d._n
push eax
call fcn.0054ea2a
add esp, 0xc
lea ecx, [ebp - 0x2c8]
push ecx
mov ecx, ebx
call fcn.004e50a0
jmp 0x4e7c42
mov edx, dword [ebp - 0x3c]
push 1
push 0
push 0
push edx
call fcn.00550840
mov ecx, dword [ebp + 0x28]
add esi, eax
lea eax, [ebp - 0x74]
push 2
push eax
push 0
adc edi, edx
push ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x74], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4e7c4c
mov ecx, dword [ebx + 0x54]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x18]
push eax
push ecx
call esi
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x2c8]
push edx
push str.Deleting_record__s_from_registry_n
push eax
call fcn.0054ea2a
add esp, 0xc
lea ecx, [ebp - 0x2c8]
push ecx
mov ecx, ebx
call fcn.004e50a0
mov edx, dword [0x639ad4]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x54]
push eax
push str.sk_s
push ecx
mov byte [ebp - 4], 4
call fcn.00562ecb
mov ecx, dword [ebp - 0x54]
add esp, 0xc
lea edx, [ebp - 0x70]
lea eax, [ebp - 0x68]
push edx
mov edx, dword [ebx + 0x54]
push eax
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x70], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4e7eaf
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebx + 0x54]
add ecx, eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x54]
push ecx
push edx
call esi
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebx + 0x54]
lea eax, [ebp - 0x38]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x18]
push esi
push 0x617e30
push eax
call fcn.0054ea2a
mov ecx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
add esp, 0xc
lea edx, [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebx + 0x54]
push 0x10
push edx
push 0
lea eax, [ebp - 0x18]
push 0
push eax
push ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x40]
push edx
push eax
push edi
push esi
lea ecx, [ebp - 0x2c8]
push str.Adding_record_with_ID__d__startPos__I64d__nextID__d_n
push ecx
call fcn.0054ea2a
add esp, 0x18
lea edx, [ebp - 0x2c8]
mov ecx, ebx
push edx
call fcn.004e50a0
mov esi, dword [ebp + 0x18]
push esi
call fcn.005502d1
add esp, 4
cmp eax, 0xffffffff
jne 0x4e7f4b
push esi
lea eax, [ebp - 0x2c8]
push str.Could_not_delete_temp_file__s_n
push eax
call fcn.0054ea2a
add esp, 0xc
lea ecx, [ebp - 0x2c8]
push ecx
mov ecx, ebx
call fcn.004e50a0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.0056a100
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0056a100
jmp 0x4e7892
mov ecx, dword [ebp - 0x4c]
cmp ecx, edx
jl 0x4e816a
jg 0x4e7f7e
cmp dword [ebp - 0x50], eax
jbe 0x4e816a
test ecx, ecx
jl 0x4e816a
jg 0x4e7f93
mov eax, dword [ebp - 0x50]
test eax, eax
jbe 0x4e816a
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
push esi
push edx
push eax
lea ecx, [ebp - 0x2c8]
push str.Chunk_order_violation_error__cInf.ID__d__startPos__I64d_n
push ecx
call fcn.0054ea2a
add esp, 0x14
lea edx, [ebp - 0x2c8]
mov ecx, ebx
push edx
call fcn.004e50a0
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x4e8167
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x40]
sub eax, esi
sbb ecx, edx
js 0x4e7fe6
jg 0x4e7fe1
test eax, eax
jbe 0x4e7fe6
mov dword [ebp - 0x5c], eax
jmp 0x4e7fed
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x5c], eax
push ecx
push eax
lea eax, [ebp - 0x2c8]
push str.Try_rollback__set_chunksize_to__I64d_n
push eax
mov dword [ebp - 0x58], ecx
call fcn.0054ea2a
add esp, 0x10
lea ecx, [ebp - 0x2c8]
push ecx
mov ecx, ebx
call fcn.004e50a0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp + 0x28]
lea edx, [ebp - 0x58]
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 - 0x5c], eax
call edi
mov esi, eax
mov eax, dword [ebp - 0x5c]
cmp eax, 0xffffffff
jne 0x4e80bb
test esi, esi
je 0x4e80bb
mov edx, dword [ebp + 0x24]
push edx
call fcn.005664c5
mov eax, dword [ebp + 0x18]
add esp, 4
push eax
call fcn.005664c5
mov ecx, dword [ebp + 0x20]
add esp, 4
push ecx
call fcn.005664c5
mov edx, dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edx
call edi
mov eax, dword [ebp + 0x28]
push eax
call edi
push esi
lea ecx, [ebp - 0x2c8]
push str.SetFilePointer_failed__err___ld_n
push ecx
call fcn.0054ea2a
add esp, 0xc
lea edx, [ebp - 0x2c8]
mov ecx, ebx
push edx
call fcn.004e50a0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0056a100
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 0x24
mov eax, dword [ebp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4e8147
call edi
mov ecx, dword [ebp + 0x24]
mov edi, eax
push ecx
call fcn.005664c5
mov edx, dword [ebp + 0x18]
add esp, 4
push edx
call fcn.005664c5
mov eax, dword [ebp + 0x20]
add esp, 4
push eax
call fcn.005664c5
mov ecx, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [ebp + 0x28]
push edx
call esi
push edi
lea eax, [ebp - 0x2c8]
push str.SetEndOfFile_failed__err___ld_n
push eax
call fcn.0054ea2a
add esp, 0xc
lea ecx, [ebp - 0x2c8]
push ecx
mov ecx, ebx
call fcn.004e50a0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0056a100
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 0x24
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebx + 0x28]
sub edx, eax
mov eax, dword [ebp - 0x58]
sbb eax, edi
add esi, edx
mov dword [ebx + 0x28], esi
mov ecx, dword [ebx + 0x2c]
adc ecx, eax
mov dword [ebx + 0x2c], ecx
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
push esi
mov dword [ebp - 0x44], ecx
push ecx
push eax
lea ecx, [ebp - 0x2c8]
push str.Set_curID__d__curPos__I64d_n
push ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], esi
call fcn.0054ea2a
add esp, 0x14
lea edx, [ebp - 0x2c8]
mov ecx, ebx
push edx
call fcn.004e50a0
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x4e81b4
push eax
call esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0056a100
jmp 0x4e7892
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
lea eax, [ebp - 0x328]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push eax
call fcn.0054ea2a
add esp, 0x10
mov eax, dword [edi]
cmp eax, esi
je 0x4e81ee
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x328]
push ecx
push edi
push esi
push 0xf003f
push esi
push 0x63e040
push esi
push edx
push reloc.WSOCK32.dll_accept
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push esi
push esi
lea eax, [ebx + 0x40]
push esi
push esi
push eax
mov eax, dword [edi]
push esi
push esi
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4e8241
push str.Cannot_find_registry_subkeys_counter._n
mov ecx, ebx
call fcn.004e50a0
mov dword [ebx + 0x40], esi
jmp 0x4e8267
mov ecx, dword [ebx + 0x40]
lea edx, [ebp - 0x2c8]
push ecx
push str.Values_counter_in_the_registry_subkey___d_n
push edx
call fcn.0054ea2a
add esp, 0xc
lea eax, [ebp - 0x2c8]
mov ecx, ebx
push eax
call fcn.004e50a0
mov dword [ebx + 0x48], 1
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x2c]
mov ecx, edx
mov dword [ebp + 0x20], eax
or ecx, eax
je 0x4e82ca
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x34]
mov edi, eax
or edi, ecx
je 0x4e82ca
mov ebx, dword [ebx + 0x50]
mov edi, dword [ebx]
cmp edi, esi
je 0x4e82ca
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x8c], ecx
push eax
mov dword [ebp - 0x88], edx
mov edx, dword [ebp + 0x20]
push 0x1389
mov ecx, edi
push 0x111
push ecx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], 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 0x24