Function at 0x55d200
Capabilities:
Delete registry value
Get file size
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x4e8]
sub esp, 0x4e8
push 0xffffffffffffffff
push 0x6600d0
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x4e4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov edi, dword [ebp + 0x4f0]
xor ebx, ebx
mov dword [ebp - 4], ebx
wait
mov dword [esi + 0xcc], ebx
mov dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x4c]
push ecx
push ebx
push ebx
push 0x687b38
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x55d751
mov dword [esi + 0xcc], 1
fldz
fstp qword [esi + 0xb8]
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x20], ebx
mov word [ebp + 0x1c], ax
mov byte [ebp - 4], 1
cmp dword [esi + 0x90], ebx
je 0x55d46e
lea ecx, [ebp - 0x1c]
call fcn.00402500
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x90]
push ecx
push str.SoftwareDownloadManager_ld
lea edx, [ebp - 0x1c]
push edx
call fcn.00402f70
add esp, 0xc
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
push 0xf003f
push ebx
push 0x67997c
push ebx
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x24], 0x410
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp + 0x24]
push eax
push ebx
push ebx
push 0x687b8c
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x55d343
push str.Cannot_find_old_localFileName__e1148__n
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00401210
or eax, 0xffffffff
wait
jmp 0x55df5f
lea edx, [ebp + 0x24]
push edx
lea ecx, [ebp + 0x18]
call fcn.004017f0
lea ecx, [ebp - 0x20]
call fcn.00402500
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x55d365
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.004182b0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x34]
push eax
push str.Loading_old_localFileName____s_from_registry_n
lea ecx, [ebp - 0x20]
push ecx
call fcn.00402f70
add esp, 0xc
mov edx, dword [ebp - 0x20]
push edx
mov ecx, esi
call fcn.00554bc0
mov dword [ebp - 0x24], 8
lea edi, [esi + 0xa8]
lea eax, [ebp - 0x24]
push eax
push edi
push ebx
push ebx
push str.FileSize
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x55d3cc
push str.Cannot_find_old_file_size_in_registry._n
mov ecx, esi
call fcn.00554bc0
mov dword [edi], ebx
mov dword [edi + 4], ebx
jmp 0x55d3ef
mov edx, dword [edi + 4]
push edx
mov eax, dword [edi]
push eax
push str.Loading_old_file_size__I64d_Bytes_from_registry_n
lea ecx, [ebp - 0x20]
push ecx
call fcn.00402f70
add esp, 0x10
mov edx, dword [ebp - 0x20]
push edx
mov ecx, esi
call fcn.00554bc0
mov dword [ebp - 0x24], 8
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push ebx
push str.Duration
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x55d43e
fld qword [ebp - 0x2c]
fst qword [esi + 0xb8]
sub esp, 8
fstp qword [esp]
push str.Loading_duration_from_registry:__f_sec_n
lea eax, [ebp - 0x20]
push eax
call fcn.00402f70
add esp, 0x10
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, esi
call fcn.00554bc0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00402570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00402570
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402570
jmp 0x55d49d
cmp edi, ebx
je 0x55d32e
push ebx
push edi
push 0x678ea8
lea ecx, [ebp + 0x18]
call fcn.004021b0
mov eax, dword [ebp + 0x4f4]
mov dword [esi + 0xa8], eax
mov ecx, dword [ebp + 0x4f8]
mov dword [esi + 0xac], ecx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x55d4a7
lea eax, [ebp + 0x1c]
push eax
push ebx
mov ecx, esi
call fcn.0055a4f0
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x14], ebx
xor edx, edx
mov word [ebp + 0x10], dx
mov byte [ebp - 4], 5
mov dword [ebp], ebx
mov dword [ebp + 8], ebx
xor eax, eax
mov word [ebp + 4], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 7
push str.Rebuilding_old_downloaded_files_before_resume._n
mov ecx, esi
call fcn.00554bc0
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x55d504
lea eax, [ebp + 0x1c]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x2c]
push edx
push eax
call fcn.00555dc0
add esp, 0xc
test eax, eax
jne 0x55d560
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x55d523
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.004182b0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push str.Err_1231__f_s__e_ld._n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x34]
call fcn.00402570
mov ecx, dword [ebp - 0x2c]
add dword [esi + 0xa0], ecx
mov edx, dword [ebp - 0x28]
adc dword [esi + 0xa4], edx
cmp dword [esi + 0xa4], ebx
jg 0x55d590
jl 0x55d584
cmp dword [esi + 0xa0], ebx
jae 0x55d590
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov eax, dword [esi + 0xa0]
mov dword [esi + 0x108], eax
mov ecx, dword [esi + 0xa4]
mov dword [esi + 0x10c], ecx
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xffffffff
jne 0x55d759
mov edx, dword [ebp - 0x4c]
mov dword [esi + 0xf0], edx
mov eax, dword [ebp - 0x44]
mov dword [esi + 0xf8], eax
mov ecx, dword [ebp - 0x40]
mov dword [esi + 0xfc], ecx
push str.This_is_the_last_chunk._End_rebuilding._n
mov ecx, esi
call fcn.00554bc0
mov eax, dword [esi + 0xdc]
cmp eax, ebx
je 0x55d5f7
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
lea ecx, [ebp - 0x58]
call fcn.00402500
mov byte [ebp - 4], 0xf
mov eax, dword [esi + 0x90]
lea edx, [ebp - 0x58]
cmp eax, ebx
je 0x55d621
push eax
push str.SoftwareDownloadManager_ldChList
push edx
call fcn.00402f70
add esp, 0xc
jmp 0x55d637
mov eax, dword [esi + 8]
push eax
mov ecx, dword [esi + 4]
push ecx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push edx
call fcn.00402f70
add esp, 0x10
mov byte [ebp - 4], 0x10
wait
mov eax, dword [esi + 0xdc]
cmp eax, ebx
je 0x55d64d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
wait
mov dword [ebp - 4], 0xf
jmp 0x55d667
lea ebx, [esi + 0xdc]
push 0
push ebx
push 0
push 0xf003f
push 0
push 0x67997c
push 0
mov eax, dword [ebp - 0x58]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea edi, [esi + 0xc8]
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x55d6cb
push str.Cannot_find_registry_subkeys_counter._n
mov ecx, esi
call fcn.00554bc0
mov dword [edi], 0
jmp 0x55d704
shr dword [edi], 1
lea ecx, [ebp - 0x1c]
call fcn.00402500
mov byte [ebp - 4], 0x12
mov edx, dword [edi]
push edx
push str.Values_counter_in_the_registry_subkey___ld_n
lea eax, [ebp - 0x1c]
push eax
call fcn.00402f70
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov dword [esi + 0xd0], 1
mov ecx, esi
call fcn.00557b50
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.00402570
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [ebp - 4], 5
lea ecx, [ebp]
call fcn.00401210
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00401210
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00401210
xor eax, eax
wait
jmp 0x55df5f
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x55d763
lea eax, [ebp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0055a4f0
mov edx, dword [ebp - 0x48]
push edx
push 0x6795fc
lea eax, [ebp + 0x494]
push eax
call fcn.0062304b
add esp, 0xc
mov dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x4c]
push edx
push ebx
push ebx
lea eax, [ebp + 0x494]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x55d805
push eax
push str.Error_reading_registry__errCode___ld._End_rebuilding._n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00554bc0
mov ecx, dword [0x75ea40]
push ecx
mov ecx, dword [esi + 0xd4]
call fcn.0056ae20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [ebp - 4], 5
lea ecx, [ebp]
call fcn.00401210
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00401210
jmp 0x55d32e
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
lea eax, [ebp + 0x494]
push eax
push str.Read_record_num.__s_from_registry:_ID___ld__startPos___I64d__nextID___ld_n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
add esp, 0x1c
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00554bc0
mov eax, dword [ebp + 0x18]
cmp eax, ebx
mov ebx, eax
jne 0x55d844
lea ebx, [ebp + 0x1c]
push 0
push 0xa
lea eax, [ebp + 0x434]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00622ed2
add esp, 0xc
push eax
push ebx
push 0x678de0
lea ecx, [ebp + 0xc]
call fcn.00402320
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x55d874
lea eax, [ebp + 0x10]
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.00555dc0
add esp, 0xc
test eax, eax
jne 0x55d8d0
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x55d893
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.004182b0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x34]
push eax
push str.Err_1275__f_s__e_ld._n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x34]
call fcn.00402570
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 0x28]
test eax, eax
jl 0x55ddb9
jg 0x55d8eb
cmp dword [ebp - 0x2c], 0
jbe 0x55ddb9
mov byte [ebp - 0x15], 0
mov ecx, dword [ebp - 0x2c]
add dword [esi + 0xa0], ecx
adc dword [esi + 0xa4], eax
test edi, edi
je 0x55d931
mov ebx, dword [ebp + 0x18]
test ebx, ebx
jne 0x55d90c
lea ebx, [ebp + 0x1c]
push 0
push 0xa
lea edx, [ebp + 0x434]
push edx
push edi
call fcn.00622ed2
add esp, 0xc
push eax
push ebx
push 0x678de0
lea ecx, [ebp]
call fcn.00402320
jmp 0x55d94b
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x55d93b
lea eax, [ebp + 0x1c]
push 0
push eax
push 0x678ea8
lea ecx, [ebp]
call fcn.004021b0
mov eax, dword [ebp]
test eax, eax
jne 0x55d955
lea eax, [ebp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
jne 0x55da69
mov eax, dword [ebp]
test eax, eax
jne 0x55d984
lea eax, [ebp + 4]
push eax
lea ecx, [ebp - 0x60]
call fcn.004182b0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x60]
push eax
push str.Error_opening_file__s._n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00554bc0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x60]
call fcn.00402570
xor edi, edi
mov dword [ebp - 0x2c], edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp]
test eax, eax
jne 0x55d9d8
lea eax, [ebp + 4]
push eax
lea ecx, [ebp - 0x20]
call fcn.004182b0
mov byte [ebp - 4], 0xb
push ebx
push edi
mov ecx, dword [ebp - 0x20]
push ecx
push str.this_file__s__size__I64d_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0x14
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00554bc0
mov eax, dword [ebp - 0x40]
mov ecx, eax
sar ecx, 0x1f
mov dword [ebp - 0x70], eax
test eax, eax
jbe 0x55dd06
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x55da24
lea ecx, [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x55da2e
lea eax, [ebp + 0x10]
mov edx, dword [ebp - 0x70]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.00558cf0
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x30], 0x757c
jne 0x55dafb
mov byte [ebp - 0x15], 1
jmp 0x55dda0
test eax, eax
je 0x55d9c4
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
cmp edi, 0xffffffff
jne 0x55dac4
test ebx, ebx
jne 0x55dac4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x55dac4
push eax
push str.Error_during_GetFileSize____errcode___ld._n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00554bc0
jmp 0x55d9c4
push 1
push 0
push 0
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00624ab0
add edi, eax
mov dword [ebp - 0x2c], edi
adc ebx, edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x7c], 0
push 2
lea edx, [ebp - 0x7c]
push edx
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x55d9ce
cmp dword [ebp - 0x30], 0
je 0x55db46
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x20]
call fcn.00402570
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [ebp - 4], 5
lea ecx, [ebp]
call fcn.00401210
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00401210
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00401210
mov eax, dword [ebp - 0x30]
wait
jmp 0x55df5f
lea edx, [ebp + 0x494]
push edx
push str._skf
lea eax, [ebp + 0x4d4]
push eax
call fcn.0062304b
add esp, 0xc
mov dword [ebp - 0x78], 0x10
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x90]
push edx
push 0
push 0
lea eax, [ebp + 0x4d4]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x55db9b
push str.error____No_keyframe_found_0__n
mov ecx, esi
call fcn.00554bc0
lea edx, [ebp + 0x494]
push edx
mov eax, dword [esi + 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp + 0x4d4]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp + 0x494]
push eax
push str.Deleting_record__s_from_registry_n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00554bc0
mov eax, dword [ebp - 0x38]
push eax
push 0x6795fc
lea ecx, [ebp + 0x494]
push ecx
call fcn.0062304b
add esp, 0xc
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x40], ecx
push 0x10
lea edx, [ebp - 0x4c]
push edx
push 0
push 0
lea eax, [ebp + 0x494]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push str.Adding_record_with_ID__ld__startPos__I64d__nextID__ld_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f70
add esp, 0x18
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x55dc64
lea eax, [ebp + 0x10]
push eax
call fcn.00623cd3
add esp, 4
cmp eax, 0xffffffff
jne 0x55dcb5
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x55dc7c
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x74]
call fcn.004182b0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x74]
push edx
push str.Could_not_delete_temp_file__s_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f70
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x74]
call fcn.00402570
xor edx, edx
sub edi, dword [ebp - 0x70]
sbb ebx, edx
add dword [ebp - 0x90], edi
adc dword [ebp - 0x8c], ebx
mov eax, dword [ebp - 0x38]
push eax
push str._ldkf
lea ecx, [ebp + 0x4d4]
push ecx
call fcn.0062304b
add esp, 0xc
push 0x10
lea edx, [ebp - 0x90]
push edx
push 0
push 0
lea eax, [ebp + 0x4d4]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x55dda0
lea edx, [ebp + 0x494]
push edx
push str._skf
lea eax, [ebp + 0x474]
push eax
call fcn.0062304b
add esp, 0xc
mov dword [ebp - 0x80], 0x10
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0xa0]
push edx
push 0
push 0
lea eax, [ebp + 0x474]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x55dd61
push str.No_keyframe_found_n
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 0x15], 1
jmp 0x55dd92
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x50], edx
push edx
push ecx
push eax
push str.Set_curID__ld__curPos__I64d_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0x14
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00554bc0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x55dda0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x20]
call fcn.00402570
mov edi, dword [ebp - 0x38]
cmp byte [ebp - 0x15], 0
je 0x55df27
lea ecx, [ebp + 0x494]
push ecx
mov edx, dword [esi + 0xdc]
push edx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
call ebx
lea eax, [ebp + 0x494]
push eax
push str._skf
lea ecx, [ebp + 0x484]
push ecx
call fcn.0062304b
add esp, 0xc
lea edx, [ebp + 0x484]
push edx
mov eax, dword [esi + 0xdc]
push eax
call ebx
lea ecx, [ebp + 0x494]
push ecx
push str.Deleting_record__s_from_registry_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00554bc0
push edi
push 0x6795fc
lea ecx, [ebp + 0x494]
push ecx
call fcn.0062304b
add esp, 0xc
mov dword [ebp - 0x4c], edi
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x44], ebx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x40], edx
push 0x10
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
lea ecx, [ebp + 0x494]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push ebx
push edi
push str.Adding_record_with_ID__ld__startPos__I64d__nextID__ld_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0x18
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00554bc0
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x55de8f
lea eax, [ebp + 0x10]
push eax
call fcn.00623cd3
add esp, 4
cmp eax, 0xffffffff
mov eax, dword [ebp + 0xc]
jne 0x55dee7
test eax, eax
jne 0x55dea7
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x64]
call fcn.004182b0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x64]
push ecx
push str.Could_not_delete_temp_file__s_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x64]
call fcn.00402570
xor ebx, ebx
jmp 0x55d5b3
test eax, eax
jne 0x55deee
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x68]
call fcn.004182b0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x68]
push ecx
push str.Delete_temp_file__s_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.00402570
xor ebx, ebx
jmp 0x55d5b3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4e4]
xor ecx, ebp
call fcn.0062016f
add ebp, 0x4e8
mov esp, ebp
pop ebp
ret 0xc