Function at 0x55e590
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 - 0xc4]
sub esp, 0xc4
push 0xffffffffffffffff
push 0x6601e6
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0xc0], 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 - 0x6c], esi
mov eax, dword [ebp + 0xe0]
mov dword [ebp - 0x30], eax
xor edi, edi
mov dword [ebp - 4], edi
wait
mov ecx, dword [ebp + 0xd4]
mov dword [esi], ecx
mov eax, dword [ebp + 0xcc]
mov dword [esi + 0x90], eax
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
fldz
fst qword [esi + 0x80]
mov dword [esi + 0xf0], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
fstp qword [esi + 0xb8]
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0xc8], edi
mov edx, dword [ebp + 0xd8]
mov dword [esi + 4], edx
mov ecx, dword [ebp + 0xdc]
mov dword [esi + 8], ecx
mov ebx, dword [ebp + 0xec]
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp + 0xf0]
mov dword [esi + 0x10], ebx
cmp eax, edi
jne 0x55e67b
cmp ecx, edi
jne 0x55e68f
xor eax, eax
wait
jmp 0x55f812
push eax
push str.SoftwareDownloadManager_ldChList
lea edx, [ebp]
push edx
call fcn.0062311b
add esp, 0xc
jmp 0x55e6a2
push ecx
push edx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
lea eax, [ebp]
push eax
call fcn.0062311b
add esp, 0x10
mov byte [ebp - 4], 1
wait
mov eax, dword [esi + 0xdc]
cmp eax, edi
je 0x55e6b8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
wait
mov dword [ebp - 4], edi
jmp 0x55e6ce
lea edi, [esi + 0xdc]
lea ecx, [ebp - 0x88]
push ecx
push edi
push 0
push 0xf003f
push 0
push 0x67997c
push 0
lea edx, [ebp]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x70], 4
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x94]
push ecx
push 0
push 0
push str.f_tfc
mov edx, dword [edi]
push edx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
test eax, eax
jne 0x55e77d
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x70], 4
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x94]
push ecx
push 0
push 0
push str.f_uu
mov edx, dword [edi]
push edx
call ebx
test eax, eax
jne 0x55e759
cmp dword [ebp - 0x94], 1
je 0x55e75c
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp + 0xf4]
push ecx
push eax
mov edx, dword [ebp - 0x30]
push edx
mov ecx, esi
call fcn.0055dfb0
test eax, eax
je 0x55ee7a
wait
jmp 0x55f812
cmp dword [ebp + 0xd0], 0
je 0x55e7ad
mov eax, dword [ebp + 0xe8]
push eax
mov ecx, dword [ebp + 0xe4]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov ecx, esi
call fcn.0055d220
test eax, eax
je 0x55ee7a
wait
jmp 0x55f812
mov dword [esi + 0xcc], 0
mov dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0x687b48
mov edx, dword [edi]
push edx
call ebx
test eax, eax
jne 0x55ee7a
lea ecx, [ebp - 0x14]
call fcn.00402510
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xcc]
test eax, eax
je 0x55e973
push eax
push str.SoftwareDownloadManager_ld
lea eax, [ebp]
push eax
call fcn.0062311b
add esp, 0xc
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
push 0xf003f
push 0
push 0x67997c
push 0
lea eax, [ebp]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0x38]
lea eax, [eax + eax + 2]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f4522
add esp, 4
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
je 0x55ea3d
lea eax, [ebp - 0x38]
push eax
push edi
push 0
push 0
push 0x687b9c
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x55e8c7
push str.Cannot_find_old_localFileName_in_registry._n
mov ecx, esi
call fcn.00554bc0
push edi
call fcn.005f4517
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402580
or eax, 0xffffffff
wait
jmp 0x55f812
push edi
lea ecx, [ebp - 0x2c]
call fcn.00417be0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2c]
push edx
push str.Loading_old_localFileName____s_from_registry_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
mov dword [ebp - 0x38], 8
lea ebx, [esi + 0xa8]
lea edx, [ebp - 0x38]
push edx
push ebx
push 0
push 0
push str.FileSize
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x55e938
push str.Cannot_find_old_file_size_in_registry._n
mov ecx, esi
call fcn.00554bc0
mov dword [ebx], 0
mov dword [ebx + 4], 0
jmp 0x55e95b
mov ecx, dword [ebx + 4]
push ecx
mov edx, dword [ebx]
push edx
push str.Loading_old_file_size__I64d_Bytes_from_registry_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00402580
jmp 0x55e9e9
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x55e8b2
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x55e983
sub eax, edx
sar eax, 1
inc eax
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f4522
add esp, 4
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
je 0x55ea3d
mov ecx, ebx
mov edx, edi
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x55e9c0
mov eax, dword [ebp + 0xe4]
mov dword [esi + 0xa8], eax
mov ecx, dword [ebp + 0xe8]
mov dword [esi + 0xac], ecx
push edi
push 0
mov ecx, esi
call fcn.0055a510
mov dword [ebp - 0x38], 0x10
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x55ea00
sub eax, edx
sar eax, 1
add eax, 0xa
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f4522
add esp, 4
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
jne 0x55ea54
push edi
call fcn.005f4517
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402580
mov eax, 0x753b
wait
jmp 0x55f812
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x55ea60
sub eax, edx
sar eax, 1
add eax, 0xa
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f4522
add esp, 4
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x55eaa3
push edi
call fcn.005f4517
push ebx
call fcn.005f4517
add esp, 8
jmp 0x55ea3d
push str.Rebuilding_old_downloaded_files_before_resume._n
mov ecx, esi
call fcn.00554bc0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x55eaf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_reading_first_chunk__errcode___ld._n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
jmp 0x55eb7d
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], 0
cmp eax, 0xffffffff
jne 0x55eb58
cmp dword [esi + 0xa4], 0
jne 0x55eb58
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x55eb58
push eax
push str.Error_during_GetFileSize____errcode___ld._n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00554bc0
xor eax, eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
jmp 0x55eb73
push 1
push 0
push 0
mov eax, dword [ebp - 0x60]
push eax
call fcn.00624b80
add dword [esi + 0xa0], eax
adc dword [esi + 0xa4], edx
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0xa0]
mov eax, dword [esi + 0xa4]
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], eax
mov dword [esi + 0xcc], 1
xor edx, edx
cmp eax, edx
jg 0x55ebb7
jl 0x55ebab
cmp ecx, edx
jae 0x55ebb7
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 0x50]
push edx
push 0x6795fc
lea eax, [ebp + 0x80]
push eax
call fcn.0062311b
add esp, 0xc
mov eax, dword [ebp - 0x50]
cmp eax, 0xffffffff
jne 0x55ecf8
mov eax, dword [ebp - 0x54]
mov dword [esi + 0xf0], eax
mov ecx, dword [ebp - 0x4c]
mov dword [esi + 0xf8], ecx
mov edx, dword [ebp - 0x48]
mov dword [esi + 0xfc], edx
push eax
push edi
push str._s_ld
push ebx
call fcn.0040f8d0
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x55ec5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.err_chl4484__errcode___ld._n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
push str.This_is_the_last_chunk._End_rebuilding._n
jmp 0x55ed3f
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], 0
cmp eax, 0xffffffff
jne 0x55eccc
cmp dword [esi + 0x104], 0
jne 0x55eccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x55eccc
push eax
push str.err_chl4492__errcode___ld._n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00554bc0
xor eax, eax
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.This_is_the_last_chunk._End_rebuilding._n
jmp 0x55ed3f
push 1
push 0
push 0
mov eax, dword [ebp - 0x68]
push eax
call fcn.00624b80
add dword [esi + 0x100], eax
adc dword [esi + 0x104], edx
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.This_is_the_last_chunk._End_rebuilding._n
jmp 0x55ed3f
push edi
push eax
mov ecx, esi
call fcn.0055a510
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
lea ecx, [ebp + 0x80]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x55eeed
push eax
push str.Error_reading_registry__errCode___ld._End_rebuilding._n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
push edi
call fcn.005f4517
push ebx
call fcn.005f4517
mov edx, dword [ebp - 0x3c]
push edx
call fcn.005f4517
add esp, 0xc
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x55ed6f
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp + 0xcc]
test eax, eax
je 0x55ed8d
push eax
push str.SoftwareDownloadManager_ldChList
lea eax, [ebp]
push eax
call fcn.0062311b
add esp, 0xc
jmp 0x55edac
mov ecx, dword [ebp + 0xdc]
push ecx
mov edx, dword [ebp + 0xd8]
push edx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
lea eax, [ebp]
push eax
call fcn.0062311b
add esp, 0x10
mov byte [ebp - 4], 0xf
wait
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x55edc2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
wait
mov dword [ebp - 4], 3
jmp 0x55eddc
lea edi, [esi + 0xdc]
lea ecx, [ebp - 0x88]
push ecx
push edi
push 0
push 0xf003f
push 0
push 0x67997c
push 0
lea edx, [ebp]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ebx, [esi + 0xc8]
push 0
push 0
push 0
push 0
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x55ee45
push str.Cannot_find_registry_subkeys_counter._n
mov ecx, esi
call fcn.00554bc0
mov dword [ebx], 0
jmp 0x55ee64
mov ecx, dword [ebx]
push ecx
push str.Values_counter_in_the_registry_subkey___ld_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f80
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00554bc0
mov dword [esi + 0xd0], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402580
mov edx, dword [esi + 0xa0]
mov edi, dword [esi + 0xa4]
mov eax, edx
or eax, edi
je 0x55eee5
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0xac]
mov ebx, eax
or ebx, ecx
je 0x55eee5
mov esi, dword [esi + 0xd8]
cmp dword [esi], 0
je 0x55eee5
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xac], 0
lea ecx, [ebp - 0xbc]
push ecx
push 0x1471
push 0x111
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
wait
jmp 0x55f812
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
lea edx, [ebp + 0x80]
push edx
push str.Read_record_num.__s_from_registry:_ID___ld__startPos___I64d__nextID___ld_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0x1c
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
mov edx, dword [ebp - 0x54]
push edx
push edi
push str._s_ld
push ebx
call fcn.0040f8d0
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x55f0e2
lea eax, [ebp - 0x60]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x18], 0
cmp ebx, 0xffffffff
jne 0x55f046
cmp dword [ebp - 0x18], 0
jne 0x55f046
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x55f046
push eax
push str.Error_during_GetFileSize____errcode___ld._n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00554bc0
lea eax, [ebp + 0x80]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea edx, [ebp + 0x80]
push edx
push str.Deleting_record__s_from_registry_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
mov ebx, dword [ebp - 0x40]
push ebx
push 0x6795fc
lea edx, [ebp + 0x80]
push edx
call fcn.0062311b
add esp, 0xc
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x48], ecx
push 0x10
lea edx, [ebp - 0x54]
push edx
push 0
push 0
lea eax, [ebp + 0x80]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test edi, edi
je 0x55f761
mov byte [ebp - 4], 0xc
wait
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
wait
mov dword [ebp - 4], 3
jmp 0x55f761
push 1
push 0
push 0
mov eax, dword [ebp - 0x60]
push eax
call fcn.00624b80
add ebx, eax
mov dword [ebp - 0x1c], ebx
adc dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00417be0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x18]
push edx
push ebx
mov eax, dword [ebp - 0x7c]
push eax
push str.next_file__s__size__I64d_n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f80
add esp, 0x14
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.00402580
cmp dword [ebp - 0x18], 0
jl 0x55efa9
jg 0x55f0b2
test ebx, ebx
jbe 0x55efa9
add dword [esi + 0xa0], ebx
mov eax, dword [ebp - 0x18]
adc dword [esi + 0xa4], eax
cmp dword [ebp - 0x40], 0
je 0x55f132
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push str._s_ld
mov ebx, dword [ebp - 0x3c]
push ebx
call fcn.0040f8d0
add esp, 0x10
jmp 0x55f14a
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push ebx
lea ecx, [ebp - 0x80]
call fcn.00417be0
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x80]
push eax
push str.Error_opening_file__s__errcode___ld._n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f80
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00554bc0
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.00402580
jmp 0x55efa9
mov eax, dword [ebp - 0x34]
push eax
push 0x6ac8fc
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0040f8d0
add esp, 0xc
mov ebx, dword [ebp - 0x3c]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x55f342
push ebx
lea ecx, [ebp - 0x84]
call fcn.00417be0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x84]
push edx
push str.Error_opening_file__s._n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
xor edi, edi
mov dword [ebp - 0xa0], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84]
call fcn.00402580
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00417be0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x18]
push edx
push ebx
mov eax, dword [ebp - 0x20]
push eax
push str.this_file__s__size__I64d_n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f80
add esp, 0x14
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00554bc0
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x90], ebx
lea ecx, [ebp - 0x44]
call fcn.00402510
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x40]
push eax
push str.sk_ld
lea ecx, [ebp - 0x44]
push ecx
call fcn.00402f80
add esp, 0xc
mov dword [ebp - 0x2c], 4
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x55f272
cmp dword [ebp - 0x64], eax
jbe 0x55f272
mov dword [ebp - 0x2c], 4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x90]
push ecx
push ebx
push ebx
push str.mmsPacketSize
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x48]
sbb edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x90]
imul ecx, dword [ebp - 0x64]
mov dword [ebp - 0xc0], 0
add ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc0]
adc ebx, dword [ebp - 0x18]
cmp ecx, eax
jne 0x55f574
cmp ebx, edx
jne 0x55f574
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
push 0
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push edi
mov ecx, esi
call fcn.00558d10
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa0], 0
test ebx, ebx
je 0x55f3d9
cmp ebx, 0x757c
je 0x55f3d9
mov eax, dword [ebp - 0x34]
push eax
call fcn.005f4517
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005f4517
mov edx, dword [ebp - 0x3c]
push edx
call fcn.005f4517
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.00402580
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00402580
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402580
mov eax, ebx
wait
jmp 0x55f812
test edi, edi
je 0x55f1b8
mov dword [ebp - 0x60], 0
lea edx, [ebp - 0x60]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x18], 0
cmp ebx, 0xffffffff
jne 0x55f3a1
cmp dword [ebp - 0x18], 0
jne 0x55f3a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x55f3a1
push eax
push str.Error_during_GetFileSize____errcode___ld._n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
xor ebx, ebx
mov dword [ebp - 0x18], ebx
jmp 0x55f1bd
push 1
push 0
push 0
mov edx, dword [ebp - 0x60]
push edx
call fcn.00624b80
add ebx, eax
mov dword [ebp - 0x1c], ebx
adc dword [ebp - 0x18], edx
mov dword [ebp - 0x9c], 0
push 2
lea eax, [ebp - 0x9c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x55f1c0
lea eax, [ebp + 0x80]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
call edi
lea edx, [ebp + 0x80]
push edx
push str.Deleting_record__s_from_registry_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
mov dword [ebp - 0x98], 0
lea ecx, [ebp - 0x30]
call fcn.00402510
mov byte [ebp - 4], 0xa
lea edx, [ebp + 0x80]
push edx
push str.sk_s
lea eax, [ebp - 0x30]
push eax
call fcn.00402f80
add esp, 0xc
mov dword [ebp - 0xa4], 4
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x98]
push edx
push 0
push 0
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x55f4a2
mov edx, dword [ebp - 0x98]
add dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
call edi
push 4
lea edx, [ebp - 0x64]
push edx
push 4
push 0
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [ebp - 0x40]
push edi
push 0x6795fc
lea edx, [ebp + 0x80]
push edx
call fcn.0062311b
add esp, 0xc
mov dword [ebp - 0x54], edi
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x48], ebx
push 0x10
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
lea edx, [ebp + 0x80]
push edx
mov eax, dword [esi + 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x50]
push ecx
push ebx
mov edx, dword [ebp - 0x5c]
push edx
push edi
push str.Adding_record_with_ID__ld__startPos__I64d__nextID__ld_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0x18
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
mov edx, dword [ebp - 0x28]
push edx
call fcn.00623da3
add esp, 4
cmp eax, 0xffffffff
jne 0x55f563
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00417be0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x8c]
push ecx
push str.Could_not_delete_temp_file__s_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f80
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x8c]
call fcn.00402580
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x30]
call fcn.00402580
jmp 0x55f72e
mov ecx, dword [ebp - 0x18]
cmp ecx, edx
jl 0x55f6e3
jg 0x55f58a
cmp dword [ebp - 0x1c], eax
jbe 0x55f6e3
test ecx, ecx
jl 0x55f6e3
jg 0x55f59e
cmp dword [ebp - 0x1c], 0
jbe 0x55f6e3
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x54]
push eax
push str.Chunk_order_violation_error__cInf.ID__ld__startPos__I64d_n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f80
add esp, 0x14
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00554bc0
test edi, edi
je 0x55f6e3
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x48]
sbb ecx, dword [ebp - 0x58]
js 0x55f5e2
jg 0x55f5e6
test eax, eax
ja 0x55f5e6
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ecx
push ecx
push eax
push str.Try_rollback__set_chunksize_to__I64d_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
push 0
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x78], 0xffffffff
jne 0x55f681
test ebx, ebx
je 0x55f681
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.005f4517
mov edx, dword [ebp - 0x28]
push edx
call fcn.005f4517
mov eax, dword [ebp - 0x3c]
push eax
call fcn.005f4517
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push str.SetFilePointer_failed__err___ld_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f80
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00554bc0
jmp 0x55f316
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x55f6cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.005f4517
mov edx, dword [ebp - 0x28]
push edx
call fcn.005f4517
mov eax, dword [ebp - 0x3c]
push eax
call fcn.005f4517
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push str.SetEndOfFile_failed__err___ld_n
jmp 0x55f665
mov ecx, dword [ebp - 0x78]
sub ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x74]
sbb edx, dword [ebp - 0x18]
add dword [esi + 0xa0], ecx
adc dword [esi + 0xa4], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x58], ecx
push ecx
push edx
push eax
push str.Set_curID__ld__curPos__I64d_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0x14
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
mov edx, dword [ebp - 0x24]
push edx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [ebp - 0x24], 0
test edi, edi
je 0x55f72e
push edi
call ebx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.00402580
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00402580
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x28]
jmp 0x55ebc0
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push str.Adding_record_with_ID__ld__startPos__I64d__nextID__ld_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0x18
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
mov edi, dword [ebp - 0x28]
push edi
call fcn.00623da3
add esp, 4
cmp eax, 0xffffffff
jne 0x55f7d7
push edi
lea ecx, [ebp - 0x68]
call fcn.00417be0
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x68]
push edx
push str.Could_not_delete_temp_file__s_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.00402580
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x28]
jmp 0x55ebc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc0]
xor ecx, ebp
call fcn.0062023e
add ebp, 0xc4
mov esp, ebp
pop ebp
ret 0x2c