Function at 0x50adf0
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 0x5caec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x568
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], esp
mov edx, dword [esi + 0x74]
lea ecx, [ebp - 0x6c]
xor edi, edi
lea ebx, [esi + 0x74]
push eax
push ecx
push edi
push edi
push 0x6625c4
push edx
mov dword [ebp - 0xb0], esi
mov dword [ebp - 4], edi
mov dword [esi + 0x64], edi
mov dword [ebp - 0x30], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x50ae60
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 0x50], edi
mov dword [esi + 0x64], 1
mov dword [esi + 0x54], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov word [ebp - 0x28], di
mov eax, dword [esi + 0x28]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x50b01f
mov ecx, dword [0x682f9c]
mov dword [ebp - 0x5c], ecx
push eax
lea edx, [ebp - 0x5c]
push str.SoftwareDownloadManager_ld
push edx
mov byte [ebp - 4], 2
call fcn.0059e618
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp + 0x10]
push edi
push eax
push edi
push 0xf003f
push edi
push 0x6874e8
push edi
push ecx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x574]
push edx
push eax
push edi
push edi
push str.LocalFileName
push ecx
mov dword [ebp - 0x30], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x50af0a
push str.Cannot_find_old_localFileName__e1148__n
mov ecx, esi
call fcn.00507f30
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.005a584d
jmp 0x50b322
lea edx, [ebp - 0x574]
lea ecx, [ebp - 0x2c]
push edx
call fcn.00401ee0
mov eax, dword [0x682f9c]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp eax, edi
jne 0x50af2f
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
push str.Loading_old_localFileName____ls_from_registry_n
push ecx
call fcn.0059e618
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, esi
push edx
call fcn.00507f30
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
lea eax, [esi + 0x40]
push ecx
push eax
push edi
push edi
push str.FileSize
push edx
mov dword [ebp - 0x30], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x50af84
push str.Cannot_find_old_file_size_in_registry._n
mov ecx, esi
call fcn.00507f30
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
jmp 0x50afa8
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
push eax
push ecx
lea edx, [ebp + 8]
push str.Loading_old_file_size__I64d_Bytes_from_registry_n
push edx
call fcn.0059e618
mov eax, dword [ebp + 8]
add esp, 0x10
mov ecx, esi
push eax
call fcn.00507f30
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x44]
push ecx
push edx
push edi
push edi
push str.Duration
push eax
mov dword [ebp - 0x30], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50aff8
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
mov eax, edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edx
push eax
push ecx
lea edx, [ebp + 8]
push str.Loading_duration_from_registry:__f_sec_n
push edx
call fcn.0059e618
mov eax, dword [ebp + 8]
add esp, 0x10
mov ecx, esi
push eax
call fcn.00507f30
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.005a584d
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.005a584d
jmp 0x50b11a
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x50b322
mov edx, 0x65bf6c
test edx, edx
je 0x50b10e
push eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x84], edi
mov word [ebp - 0x88], di
call fcn.00401ee0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00401070
push 0x65bf6c
lea ecx, [ebp - 0x80]
call fcn.00401e50
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 5
mov dword [ebp + 8], eax
call fcn.00401ed0
push eax
call fcn.00589432
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx + 2]
mov dword [ebp - 0x20], eax
add eax, eax
push eax
mov dword [ebp + 8], eax
call fcn.005a1be9
mov edx, eax
add esp, 8
cmp edx, edi
mov dword [ebp - 0x2c], edx
je 0x50b0f3
mov ecx, dword [ebp + 8]
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x8c]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x80]
call fcn.00401ed0
mov ecx, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x20]
push eax
push ecx
call fcn.005893c2
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00589432
add esp, 0x14
mov dword [ebp - 0x24], eax
xor edi, edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00401070
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x50b124
lea eax, [ebp - 0x28]
push edi
push edi
lea edx, [ebp - 0x10c]
push edi
push edx
push eax
call fcn.0058a1ba
mov eax, dword [ebp - 0x2c]
add esp, 0x14
cmp eax, edi
jne 0x50b141
lea eax, [ebp - 0x28]
push eax
push edi
mov ecx, esi
call fcn.0050e3f0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], edi
mov word [ebp - 0x38], di
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x48], edi
mov word [ebp - 0x4c], di
mov eax, dword [0x682f9c]
mov dword [ebp - 0x14], eax
push str.Rebuilding_old_downloaded_files_before_resume._n
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00507f30
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x38], edi
cmp eax, edi
mov dword [esi + 0x3c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
jne 0x50b18c
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x70]
lea edx, [ebp - 0x1c]
push ecx
push edx
push eax
call fcn.0050ad40
add esp, 0xc
test eax, eax
jne 0x50b1d7
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
sub esp, 0xc
mov ecx, esp
push str.Err_1231__f_s__e_ld._n
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ecx + 8], edx
call fcn.0059e618
mov ecx, dword [ebp - 0x14]
add esp, 0x18
push ecx
mov ecx, esi
call fcn.00507f30
mov edx, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x38]
mov eax, dword [ebp - 0x18]
add ecx, edx
mov dword [esi + 0x38], ecx
mov ecx, dword [esi + 0x3c]
adc ecx, eax
mov eax, ecx
mov dword [esi + 0x3c], ecx
cmp eax, edi
jg 0x50b200
jl 0x50b1fa
cmp dword [esi + 0x38], edi
jae 0x50b200
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov dword [esi + 0x98], ecx
mov dword [esi + 0x9c], edx
mov dword [ebp + 0x10], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov ecx, dword [ebp - 0x68]
cmp ecx, 0xffffffff
jne 0x50b286
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x60]
mov dword [esi + 0x90], ecx
push str.This_is_the_last_chunk._End_rebuilding._n
mov ecx, esi
mov dword [esi + 0x88], eax
mov dword [esi + 0x94], edx
call fcn.00507f30
mov eax, dword [ebx]
test eax, eax
je 0x50b257
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [0x682f9c]
mov dword [ebp - 0x74], ecx
mov eax, dword [esi + 0x28]
mov byte [ebp - 4], 0x11
test eax, eax
je 0x50bc8f
push eax
lea edx, [ebp - 0x74]
push str.SoftwareDownloadManager_ldChList
push edx
call fcn.0059e618
add esp, 0xc
jmp 0x50bca8
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x50b290
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, esi
call fcn.0050e3f0
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x58]
push eax
push 0x65bfb0
push ecx
call fcn.00589e0a
add esp, 0xc
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x58]
push edx
mov edx, dword [ebx]
push eax
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x30], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x50b344
push eax
lea eax, [ebp - 0x14]
push str.Error_reading_registry__errCode___d._End_rebuilding._n
push eax
call fcn.0059e618
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00507f30
mov edx, dword [0x688c04]
mov ecx, dword [esi + 0x6c]
push edx
call fcn.00513250
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.005a584d
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401070
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 0xc
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x6c]
push ecx
push edx
lea ecx, [ebp - 0x58]
push eax
push ecx
lea edx, [ebp - 0x14]
push str.Read_record_num.__s_from_registry:_ID___d__startPos___I64d__nextID___d_n
push edx
call fcn.0059e618
mov eax, dword [ebp - 0x14]
add esp, 0x1c
mov ecx, esi
push eax
call fcn.00507f30
mov eax, dword [ebp - 0x2c]
test eax, eax
mov edi, eax
jne 0x50b380
lea edi, [ebp - 0x28]
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x164]
push 0xa
push ecx
push edx
call fcn.0058aaa2
mov ebx, eax
mov eax, 0x65bff8
add esp, 0xc
test eax, eax
je 0x50b4cc
test edi, edi
je 0x50b4cc
test ebx, ebx
je 0x50b4cc
xor eax, eax
lea ecx, [ebp - 0xa0]
push eax
push 0x65bff8
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x98], eax
mov word [ebp - 0x9c], ax
call fcn.00402800
push edi
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 9
call fcn.00403af0
push ebx
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0xa
call fcn.00403af0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call fcn.00401070
mov ebx, dword [ebp - 0x98]
lea ecx, [ebp - 0xec]
call fcn.00401ed0
push eax
call fcn.00589432
add esp, 4
lea ecx, [ebp - 0xd4]
mov edi, eax
call fcn.00401ed0
push eax
call fcn.00589432
add ebx, edi
lea ebx, [eax + ebx + 3]
lea edi, [ebx + ebx]
push edi
call fcn.005a1be9
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x3c], edx
je 0x50b49f
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0xec]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0xd4]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0xa0]
call fcn.00401ed0
push eax
mov eax, dword [ebp - 0x3c]
push ebx
push eax
call fcn.005893c2
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00589432
add esp, 0x18
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0xa
call fcn.00401070
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 9
call fcn.00401070
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 8
call fcn.00401070
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x50b4d6
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x1c]
push edx
push ecx
push eax
call fcn.0050ad40
add esp, 0xc
test eax, eax
jne 0x50b516
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x50b4f5
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x70]
push edx
push eax
lea eax, [ebp - 0x14]
push str.Err_1275__f_ls__e_ld._n
push eax
call fcn.0059e618
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.00507f30
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x50bb67
jg 0x50b52e
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jbe 0x50bb67
mov edx, dword [ebp - 0x1c]
mov edi, dword [esi + 0x38]
add edi, edx
mov byte [ebp + 0xb], 0
mov dword [esi + 0x38], edi
mov ecx, dword [esi + 0x3c]
adc ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x3c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x50b6a1
test eax, eax
mov edi, eax
jne 0x50b55c
lea edi, [ebp - 0x28]
lea eax, [ebp - 0x164]
push 0xa
push eax
push ecx
call fcn.0058aaa2
mov ecx, 0x65bff8
add esp, 0xc
test ecx, ecx
mov ebx, eax
je 0x50b77c
test edi, edi
je 0x50b77c
test ebx, ebx
je 0x50b77c
xor eax, eax
push eax
push ecx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa4], eax
mov word [ebp - 0xa8], ax
call fcn.00402800
push edi
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xc
call fcn.00403af0
push ebx
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0xd
call fcn.00403af0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xe
call fcn.00401070
mov edi, dword [ebp - 0xa4]
lea ecx, [ebp - 0x104]
call fcn.00401ed0
push eax
call fcn.00589432
add esp, 4
lea ecx, [ebp - 0xe0]
mov ebx, eax
call fcn.00401ed0
push eax
call fcn.00589432
add edi, ebx
lea ebx, [eax + edi + 3]
lea edi, [ebx + ebx]
push edi
call fcn.005a1be9
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x50], edx
je 0x50b674
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x104]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0xe0]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0xac]
call fcn.00401ed0
push eax
mov eax, dword [ebp - 0x50]
push ebx
push eax
call fcn.005893c2
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.00589432
add esp, 0x18
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0xd
call fcn.00401070
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xc
call fcn.00401070
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xac]
jmp 0x50b777
test eax, eax
jne 0x50b6a8
lea eax, [ebp - 0x28]
mov edx, 0x65bf6c
test edx, edx
je 0x50b77c
test eax, eax
je 0x50b77c
xor ecx, ecx
push eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], ecx
mov word [ebp - 0x7c], cx
lea ecx, [ebp - 0x80]
call fcn.00401ee0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xf
call fcn.00401070
push 0x65bf6c
lea ecx, [ebp - 0xf8]
call fcn.00401e50
mov edi, dword [ebp - 0xf0]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x10
call fcn.00401ed0
push eax
call fcn.00589432
lea ebx, [eax + edi + 2]
lea edi, [ebx + ebx]
push edi
call fcn.005a1be9
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x50], edx
je 0x50b761
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x80]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0xf8]
call fcn.00401ed0
push eax
mov eax, dword [ebp - 0x50]
push ebx
push eax
call fcn.005893c2
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.00589432
add esp, 0x14
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xf
call fcn.00401070
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x80]
call fcn.00401070
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x50b786
lea eax, [ebp - 0x4c]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x50b8a3
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jne 0x50b7b4
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x14]
push str.Error_opening_file__ls._n
push edx
call fcn.0059e618
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, esi
push eax
call fcn.00507f30
xor edi, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x4c]
sub esp, 0xc
mov edx, esp
push str.this_file__s__size__I64d_n
mov dword [edx], eax
mov eax, dword [ebp - 0x48]
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x14]
push ecx
mov dword [edx + 8], eax
call fcn.0059e618
mov edx, dword [ebp - 0x14]
add esp, 0x1c
mov ecx, esi
push edx
call fcn.00507f30
mov eax, dword [ebp - 0x60]
mov ecx, eax
mov dword [ebp - 0x20], eax
sar ecx, 0x1f
cmp eax, ebx
jbe 0x50bac3
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
jne 0x50b830
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x10c]
push eax
push edx
push ecx
push edi
mov ecx, esi
call fcn.0050a7d0
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x757c
je 0x50bb67
test ebx, ebx
je 0x50b92c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.005a584d
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401070
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 0xc
cmp edi, ebx
je 0x50b7d3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
jne 0x50b8f9
mov eax, ebx
cmp eax, ebx
jne 0x50b8f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [ebp - 0x70], eax
je 0x50b8f9
push eax
lea edx, [ebp - 0x14]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.0059e618
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, esi
push eax
call fcn.00507f30
jmp 0x50b7d3
mov ecx, dword [ebp - 0x20]
push 1
push ebx
push ebx
push ecx
call fcn.0058bcb0
mov ecx, dword [ebp - 0x1c]
push 2
add ecx, eax
mov eax, dword [ebp - 0x18]
adc eax, edx
lea edx, [ebp - 0x5c]
push edx
push ebx
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x50b7d9
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x94]
push eax
push str._skf
push ecx
call fcn.00589e0a
add esp, 0xc
lea edx, [ebp - 0xb8]
lea eax, [ebp - 0xc8]
lea ebx, [esi + 0x74]
push edx
push eax
mov edx, dword [ebx]
push 0
lea ecx, [ebp - 0x94]
push 0
push ecx
push edx
mov dword [ebp - 0xb8], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x50b983
push str.error____No_keyframe_found_0__n
mov ecx, esi
call fcn.00507f30
mov ecx, dword [ebx]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x58]
push eax
push ecx
call edi
mov eax, dword [ebx]
lea edx, [ebp - 0x94]
push edx
push eax
call edi
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x14]
push ecx
push str.Deleting_record__s_from_registry_n
push edx
call fcn.0059e618
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, esi
push eax
call fcn.00507f30
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x58]
push edi
push 0x65e490
push ecx
call fcn.00589e0a
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
add esp, 0xc
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], eax
mov eax, dword [ebx]
push 0x10
push ecx
push 0
lea edx, [ebp - 0x58]
push 0
push edx
push eax
mov dword [ebp - 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
push ecx
push edx
push eax
push edi
lea ecx, [ebp - 0x14]
push str.Adding_record_with_ID__d__startPos__I64d__nextID__d_n
push ecx
call fcn.0059e618
mov edx, dword [ebp - 0x14]
add esp, 0x18
mov ecx, esi
push edx
call fcn.00507f30
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x50ba2c
lea eax, [ebp - 0x38]
push eax
call fcn.0058ae33
add esp, 4
cmp eax, 0xffffffff
jne 0x50ba61
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x50ba44
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x14]
push str.Could_not_delete_temp_file__ls_n
push eax
call fcn.0059e618
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00507f30
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
xor edx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x18]
push edi
sbb ecx, edx
mov edx, dword [ebp - 0xc8]
add edx, eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], edx
lea edx, [ebp - 0x94]
adc eax, ecx
push str._dkf
push edx
mov dword [ebp - 0xc4], eax
call fcn.00589e0a
mov edx, dword [ebx]
add esp, 0xc
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x94]
push 0x10
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x50b21b
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x114]
push eax
push str._skf
push ecx
call fcn.00589e0a
add esp, 0xc
lea edx, [ebp - 0xb4]
lea eax, [ebp - 0x124]
lea ebx, [esi + 0x74]
push edx
push eax
mov edx, dword [ebx]
push 0
lea ecx, [ebp - 0x114]
push 0
push ecx
push edx
mov dword [ebp - 0xb4], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x50bb20
push str.No_keyframe_found_n
mov ecx, esi
call fcn.00507f30
mov byte [ebp + 0xb], 1
jmp 0x50bb51
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x6c]
push edx
push ecx
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp - 0x14]
push str.Set_curID__d__curPos__I64d_n
push eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
call fcn.0059e618
mov ecx, dword [ebp - 0x14]
add esp, 0x14
push ecx
mov ecx, esi
call fcn.00507f30
test edi, edi
je 0x50bb5c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
test al, al
je 0x50b21b
mov eax, dword [esi + 0x74]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ebx, [esi + 0x74]
lea edx, [ebp - 0x58]
push edx
push eax
call edi
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x88]
push ecx
push str._skf
push edx
call fcn.00589e0a
mov ecx, dword [ebx]
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
push ecx
call edi
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x14]
push edx
push str.Deleting_record__s_from_registry_n
push eax
call fcn.0059e618
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00507f30
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x58]
push edi
push 0x65bfb0
push edx
call fcn.00589e0a
mov eax, dword [ebp - 0x40]
add esp, 0xc
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx]
push 0x10
push ecx
push 0
lea edx, [ebp - 0x58]
mov dword [ebp - 0x6c], edi
mov edi, dword [ebp - 0x44]
push 0
push edx
push eax
mov dword [ebp - 0x64], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + 0x10]
push ecx
push edx
push edi
push eax
lea ecx, [ebp - 0x14]
push str.Adding_record_with_ID__d__startPos__I64d__nextID__d_n
push ecx
call fcn.0059e618
mov edx, dword [ebp - 0x14]
add esp, 0x18
mov ecx, esi
push edx
call fcn.00507f30
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x50bc2c
lea eax, [ebp - 0x38]
push eax
call fcn.0058ae33
add esp, 4
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x3c]
jne 0x50bc66
test eax, eax
jne 0x50bc44
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x14]
push str.Could_not_delete_temp_file__ls_n
push eax
call fcn.0059e618
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00507f30
jmp 0x50b21b
test eax, eax
jne 0x50bc6d
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x14]
push str.Delete_temp_file__ls_n
push edx
call fcn.0059e618
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, esi
push eax
call fcn.00507f30
jmp 0x50b21b
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
lea edx, [ebp - 0x74]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push edx
call fcn.0059e618
add esp, 0x10
mov eax, dword [ebx]
test eax, eax
je 0x50bcb5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
push 0
push ebx
push 0
push 0xf003f
push 0
push 0x6874e8
push 0
push eax
push reloc.WSOCK32.dll_accept
mov dword [ebp - 4], 0x11
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
push 0
mov ecx, dword [ebx]
lea edi, [esi + 0x60]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x50bd17
push str.Cannot_find_registry_subkeys_counter._n
mov ecx, esi
call fcn.00507f30
mov dword [edi], 0
jmp 0x50bd55
mov eax, dword [edi]
shr eax, 1
mov dword [edi], eax
mov edx, dword [0x682f9c]
mov edi, eax
mov dword [ebp - 0x20], edx
push edi
lea eax, [ebp - 0x20]
push str.Values_counter_in_the_registry_subkey___d_n
push eax
mov byte [ebp - 4], 0x14
call fcn.0059e618
mov ecx, dword [ebp - 0x20]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00507f30
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x11
call fcn.005a584d
mov ecx, esi
mov dword [esi + 0x68], 1
call fcn.0050bde0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 8
call fcn.005a584d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.005a584d
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00401070
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 0xc