Function at 0x4f3790
Capabilities:
Delete registry value
Get file size
Move file
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac137
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x20], edi
cmp eax, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
je 0x4f4a0a
mov eax, dword [eax + 0x30]
mov ecx, dword [0x65ec1c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x1c], ecx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004f73c0
push str.Assembling_all_downloaded_portions_into_one_file..._n
mov ecx, edi
call fcn.004f2710
mov edx, dword [edi + 0x70]
mov eax, dword [edx]
cmp eax, esi
je 0x4f380a
push esi
push 0x1392
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x4f3826
mov ecx, dword [edi + 0x10]
push ecx
push 0x1392
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [edi + 0x20]
push esi
lea ecx, [ebp - 0x68]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x68], esi
push eax
mov dword [ebp - 0x60], esi
mov word [ebp - 0x64], si
call fcn.00402600
mov ebx, dword [ebp + 0x10]
mov byte [ebp - 4], 2
cmp ebx, esi
mov byte [ebp - 0x11], 0
je 0x4f3d62
push ebx
call fcn.0056ca2e
add esp, 4
test eax, eax
je 0x4f3d62
cmp dword [edi], esi
je 0x4f3d62
mov eax, dword [ebp - 0x68]
cmp eax, esi
jne 0x4f3876
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.0056eb4c
add esp, 8
test eax, eax
je 0x4f3d62
push 1
push ebx
call fcn.004654e0
add esp, 8
cmp eax, esi
je 0x4f38d0
push ebx
lea ecx, [ebp - 0x38]
call fcn.00588780
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x1c]
push eax
push str.Delete_old_file__s_n
push ecx
mov byte [ebp - 4], 3
call fcn.0058148b
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, edi
push edx
call fcn.004f2710
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.005886c0
cmp dword [ebp + 8], esi
jbe 0x4f3aae
cmp dword [0x63c2c4], esi
je 0x4f38f8
push esi
push esi
push 2
push esi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
jmp 0x4f393c
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00588780
mov eax, dword [ebp - 0x2c]
push 0x3f
push eax
call fcn.0056c5f0
add esp, 8
test eax, eax
push esi
push esi
push 2
push esi
push 1
push 0xc0000000
jne 0x4f392b
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x4f3932
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.005886c0
cmp esi, 0xffffffff
jne 0x4f397a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea edx, [ebp - 0x1c]
push esi
push str.Error_opening_local_file_for_writing__errcode___ld._n
push edx
call fcn.0058148b
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, edi
push eax
call fcn.004f2710
mov ecx, dword [0x6646e8]
push ecx
mov ecx, dword [edi + 0x6c]
call fcn.004fbdd0
jmp 0x4f433d
push 0
push 0
lea edx, [ebp - 0x34]
push 0
push edx
push ebx
call fcn.0056e216
add esp, 0x14
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x24]
push eax
call fcn.00588780
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x20]
mov edx, dword [ebp - 0x24]
push ecx
mov ecx, dword [eax + 0x10]
push edx
push ecx
push esi
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.004f4a60
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4f3a02
cmp edi, 0x757c
je 0x4f3a02
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.005886c0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005886c0
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 0xc
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x11], 1
call fcn.00588780
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
push edx
lea edx, [ebp - 0x1c]
mov eax, dword [esi + 0x20]
mov bl, 5
mov byte [ebp - 4], bl
mov ecx, dword [eax + 0x10]
push ecx
push str.Rename2_temp_file__s_to__s._n
push edx
call fcn.0058148b
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov ecx, esi
push eax
call fcn.004f2710
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
mov edx, dword [esi + 0x20]
mov eax, dword [edx + 0x10]
push eax
call fcn.0056e8d1
add esp, 4
cmp eax, 0xffffffff
jne 0x4f3a96
mov ecx, dword [0x65ec1c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [esi + 0x20]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
mov eax, dword [edx + 0x10]
push eax
push str.Could_not_delete_temp_file__s_n
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.004f2710
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.005886c0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.005886c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
jmp 0x4f3d5d
mov eax, dword [ebp - 0x68]
cmp eax, esi
mov ebx, eax
jne 0x4f3aba
lea ebx, [ebp - 0x64]
mov edi, dword [ebp + 0x10]
push 0
push edi
push ebx
call fcn.004652c0
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebp - 0x34], esi
jne 0x4f3d16
mov eax, dword [0x65ec1c]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
lea ecx, [ebp - 0x24]
push str.Can_not_rename_temp_file__s_to__s__error___ld_n
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
add esp, 0x14
push edx
call fcn.004f2710
xor eax, eax
push edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], eax
mov word [ebp - 0x58], ax
call fcn.00402e10
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 8
test eax, eax
jne 0x4f3b2b
lea eax, [ebp - 0x58]
push 0x5c
push eax
call fcn.0056cc8e
add esp, 8
test eax, eax
jne 0x4f3b57
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.005886c0
jmp 0x4f3ccf
add eax, 2
lea ecx, [ebp - 0x5c]
mov word [eax], 0
call fcn.00403a60
push 0
push eax
call fcn.00465670
add esp, 8
test eax, eax
jne 0x4f3cb3
mov ecx, dword [ebp - 0x20]
push str.Folder_does_not_exist__Creating..._n
call fcn.004f2710
lea ecx, [ebp - 0x5c]
call fcn.00403a60
add eax, 6
push 0x5c
push eax
call fcn.0056ca4b
add esp, 8
mov esi, eax
test esi, esi
je 0x4f3ca5
lea ecx, [ebp - 0x5c]
call fcn.00403a60
push eax
lea ecx, [ebp - 0x74]
call fcn.004039b0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 9
call fcn.00403a60
lea ecx, [ebp - 0x5c]
mov edi, eax
call fcn.00403a60
mov ecx, esi
sub ecx, eax
sar ecx, 1
mov word [edi + ecx*2], 0
lea ecx, [ebp - 0x74]
call fcn.00403a60
push 0
push eax
call fcn.00465670
add esp, 8
test eax, eax
jne 0x4f3c81
lea ecx, [ebp - 0x74]
call fcn.00403a60
push 0
push eax
call fcn.00465850
add esp, 8
test eax, eax
jne 0x4f3c81
lea ecx, [ebp - 0x74]
call fcn.00403a60
push eax
lea ecx, [ebp - 0x38]
call fcn.00588780
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x38]
push eax
push edx
lea eax, [ebp - 0x24]
push str.Can_not_create_folder__s__error___ld_n
push eax
call fcn.0058148b
mov ecx, dword [ebp - 0x24]
add esp, 0x10
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.004f2710
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 9
call fcn.005886c0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 8
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.005886c0
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp + 0x10]
jmp 0x4f3ccb
add esi, 2
push 0x5c
push esi
call fcn.0056ca4b
add esp, 8
lea ecx, [ebp - 0x74]
mov esi, eax
mov byte [ebp - 4], 8
call fcn.00401070
mov edi, dword [ebp + 0x10]
jmp 0x4f3b9f
push 0
push edi
push ebx
call fcn.004652c0
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.005886c0
test esi, esi
jne 0x4f3d16
push edi
lea ecx, [ebp - 0x38]
call fcn.00588780
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
push eax
push edx
mov eax, dword [esi + 0x20]
lea edx, [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
push ecx
push str.Can_not_rename_temp_file__s_to__s__errno___ld_n
push edx
call fcn.0058148b
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, esi
push eax
call fcn.004f2710
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
jmp 0x4f3d5d
push edi
lea ecx, [ebp - 0x38]
call fcn.00588780
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x1c]
mov edx, dword [esi + 0x20]
mov byte [ebp - 4], 0xc
mov eax, dword [edx + 0x10]
push eax
push str.Rename_temp_file__s_to__s._n
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x1c]
add esp, 0x10
mov ecx, esi
push edx
call fcn.004f2710
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
mov dword [eax], 1
call fcn.005886c0
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x4f3f55
mov al, byte [ebp - 0x11]
test al, al
jne 0x4f3f55
mov ecx, dword [0x65ec1c]
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
mov edx, dword [edi + 0x20]
mov eax, dword [edx + 0x10]
push eax
push str._s_tmp
push ecx
call fcn.0058148b
mov eax, dword [edi + 0x20]
mov edx, dword [ebp - 0x24]
add esp, 0xc
mov ecx, dword [eax + 0x10]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4f3de3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x24]
push eax
mov eax, dword [edi + 0x20]
push edx
lea edx, [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
push ecx
push str.Step5__can_not_rename_temp_file__s_to__s__errno___ld_n
push edx
call fcn.0058148b
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, edi
push eax
jmp 0x4f3f44
mov ecx, dword [edi + 0x20]
push 0
push 0
push 2
mov edx, dword [ecx + 0x10]
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f3e73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1c]
push esi
push str.Error_opening_local_file_for_writing__errcode___ld._n
push eax
call fcn.0058148b
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.004f2710
mov edx, dword [0x6646e8]
mov ecx, dword [edi + 0x6c]
push edx
call fcn.004fbdd0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.005886c0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005886c0
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 0xc
mov ebx, dword [ebp - 0x20]
push 0
push 0
lea eax, [ebp - 0x18]
mov ecx, dword [ebx + 0x20]
push 0
push eax
mov edx, dword [ecx + 0x10]
push edx
call fcn.0056d0ac
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
add esp, 0x14
lea ecx, [ebp - 0x18]
push eax
push ecx
push edx
push esi
mov ecx, ebx
call fcn.004f4a60
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4f3ef1
cmp edi, 0x757c
je 0x4f3ef1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.005886c0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005886c0
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 0xc
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x1c]
push ecx
push edx
push str.Skip_first_bytes_via_temp_file__s._n
push eax
call fcn.0058148b
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.004f2710
mov edx, dword [ebp - 0x24]
push edx
call fcn.0056e8d1
add esp, 4
cmp eax, 0xffffffff
jne 0x4f3f49
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push eax
push str.Could_not_delete_temp_file__s_n
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.004f2710
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.005886c0
mov eax, dword [0x63c2c4]
test eax, eax
je 0x4f3f95
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4f3f6b
mov eax, dword [ebp + 0x10]
jmp 0x4f3f75
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4f3f75
lea eax, [ebp - 0x64]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp + 8], edi
jmp 0x4f4016
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x4f3fa2
mov eax, dword [ebp + 0x10]
jmp 0x4f3fac
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4f3fac
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00588780
mov ecx, dword [ebp - 0x2c]
push 0x3f
push ecx
call fcn.0056c5f0
add esp, 8
test eax, eax
jne 0x4f3fdf
mov edx, dword [ebp - 0x2c]
push eax
push eax
push 3
push eax
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x4f4009
cmp dword [esi], 0
je 0x4f3fe9
mov eax, dword [ebp + 0x10]
jmp 0x4f3ff3
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4f3ff3
lea eax, [ebp - 0x64]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], edi
call fcn.005886c0
cmp edi, 0xffffffff
jne 0x4f407f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1c]
push esi
push str.Error_opening_local_file_for_writing__errcode___ld._n
push eax
call fcn.0058148b
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.004f2710
mov edx, dword [0x6646e8]
mov ecx, dword [edi + 0x6c]
push edx
call fcn.004fbdd0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005886c0
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 0xc
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x3c]
push ecx
push edi
lea esi, [eax + 0x98]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [esi], 0xffffffff
jne 0x4f40e5
mov eax, dword [esi + 4]
test eax, eax
jne 0x4f40e5
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x4f40e5
call ebx
push eax
lea edx, [ebp - 0x1c]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.0058148b
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.004f2710
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x4f4105
mov ecx, dword [ebp - 0x3c]
push 1
push 0
push 0
push ecx
call fcn.0056ee00
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x20]
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, edx
mov dword [esi + 4], eax
mov edx, dword [ebx + 0x70]
mov eax, dword [edx]
test eax, eax
je 0x4f4120
push esi
push 0x1393
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 4]
mov edx, dword [ebx + 0x20]
mov ecx, dword [esi]
push eax
mov eax, dword [edx + 0x10]
push ecx
push eax
lea ecx, [ebp - 0x1c]
push str.Size_of__s_is__I64d_n
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.004f2710
lea eax, [ebp - 0x44]
push 2
push eax
push 0
push edi
mov dword [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x4f416d
mov eax, dword [ebp + 0x10]
jmp 0x4f4177
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4f4177
lea eax, [ebp - 0x64]
push 0
push 0
lea edx, [ebp - 0x50]
push 0
push edx
push eax
call fcn.0056e216
add esp, 0x14
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x40]
push eax
call fcn.00588780
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 0xe
test ebx, ebx
je 0x4f451b
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00588780
mov edx, dword [ebp + 0xc]
mov byte [ebp - 4], 0xf
cmp dword [edx], 0
je 0x4f41cb
mov eax, dword [ebp - 0x24]
jmp 0x4f41e4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x48]
call fcn.0058872e
or dword [ebp - 0x28], 1
mov eax, dword [eax]
mov byte [ebp - 4], 0x10
mov edx, dword [ebx + 0x10]
push eax
push edx
lea eax, [ebp - 0x1c]
push str.Adding_file__s_to_file__s._n
push eax
call fcn.0058148b
mov al, byte [ebp - 0x28]
add esp, 0x10
test al, 1
mov dword [ebp - 4], 0xf
je 0x4f4218
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x48]
and al, 0xfe
mov dword [ebp - 0x28], eax
call fcn.005886c0
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.004f2710
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4f436a
mov edx, dword [ebx + 0x24]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebx + 0x10]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
mov ecx, dword [ebp - 0x20]
push edx
call fcn.004f4a60
mov esi, eax
test esi, esi
je 0x4f4376
cmp esi, 0x757c
je 0x4f4376
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4f4325
push edi
call fcn.0056ca2e
add esp, 4
test eax, eax
je 0x4f4325
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4f428c
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.0056cb5b
add esp, 8
test eax, eax
je 0x4f4325
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4f42a8
lea eax, [ebp - 0x64]
push 0
push eax
push edi
call fcn.004652c0
add esp, 0xc
test eax, eax
jne 0x4f42eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx + 0x10]
lea ecx, [ebp - 0x1c]
push edx
push eax
push str.Can_not_rename_back_file__s_to__s__errno___ld_n
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, edi
push edx
call fcn.004f2710
jmp 0x4f4325
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push eax
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x1c]
push ecx
push edx
push str.Rename_back_file__s_to__s._n
push eax
call fcn.0058148b
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
push ecx
mov ecx, edi
call fcn.004f2710
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call fcn.005886c0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.005886c0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005886c0
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 0xc
push str.This_file_has_flag_isCmpleted__0__it_has_not_been_added._n
mov ecx, esi
call fcn.004f2710
mov eax, dword [ebx + 0x10]
push eax
call fcn.0056e8d1
mov ecx, dword [ebx + 0x10]
add esp, 4
cmp eax, 0xffffffff
push ecx
jne 0x4f4392
push str.Could_not_delete_temp_file__s_n
jmp 0x4f4397
push str.Deleting_temp_file__s_n
lea edx, [ebp - 0x1c]
push edx
call fcn.0058148b
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004f2710
mov ecx, dword [ebx + 0x38]
lea edx, [ebp - 0x58]
push ecx
push 0x638fec
push edx
call fcn.0056d05a
mov eax, dword [esi + 0x74]
mov ebx, dword [ebx + 0x30]
add esp, 0xc
test eax, eax
je 0x4f450a
lea ecx, [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x1c]
push edx
push str.Deleting_record__s_from_registry_n
push eax
call fcn.0058148b
mov ecx, dword [0x65ec1c]
add esp, 0xc
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x2c]
push edx
push str.sk_s
push eax
mov byte [ebp - 4], 0x11
call fcn.0058148b
mov eax, dword [ebp - 0x2c]
add esp, 0xc
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x38]
push ecx
mov ecx, dword [esi + 0x74]
push edx
push 0
push 0
push eax
push ecx
mov dword [ebp - 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f44a0
mov eax, dword [ebp - 0x38]
test eax, eax
jbe 0x4f44a0
mov ecx, dword [esi + 0x74]
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x18]
push edx
push eax
push 0
push 0
push 0x65130c
push ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x74]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x74]
lea edx, [ebp - 0x18]
push 4
push edx
push 4
push 0
push 0x65130c
push eax
call edi
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.004f2710
xor eax, eax
cmp ebx, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
je 0x4f44c2
mov edx, dword [ebx + 0x38]
mov dword [ebp - 0x74], edx
jmp 0x4f44c9
mov dword [ebp - 0x74], 0xffffffff
mov ecx, dword [esi + 0x74]
lea eax, [ebp - 0x78]
push 0x10
push eax
push 0
push 0
push 0x63f570
push ecx
call edi
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x1c]
push edx
push str.Updating_record_with_ID_0__set_nextID__d_n
push eax
call fcn.0058148b
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004f2710
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call fcn.005886c0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call fcn.005886c0
jmp 0x4f41a6
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ebx, ebx
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ebx
mov eax, dword [esi + 0x48]
cmp eax, 0xffffffff
jne 0x4f456c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, ebx
je 0x4f456c
call edi
push eax
lea ecx, [ebp - 0x1c]
push str.Error_during_GetFileSize____errcode___ld._n
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.004f2710
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
jmp 0x4f4589
mov eax, dword [ebp - 0x3c]
push 1
push ebx
push ebx
push eax
call fcn.0056ee00
mov ecx, dword [esi + 0x48]
add ecx, eax
mov dword [esi + 0x48], ecx
mov eax, dword [esi + 0x4c]
adc eax, edx
mov dword [esi + 0x4c], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004f6c90
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
push edx
push eax
lea ecx, [ebp - 0x1c]
push str.Rebuilding_complete__real_size___I64d_n
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x1c]
add esp, 0x10
mov ecx, esi
push edx
call fcn.004f2710
cmp dword [esi], ebx
je 0x4f4930
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4f4930
push edi
call fcn.0056ca2e
add esp, 4
test eax, eax
je 0x4f4930
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x4f4930
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4f45f8
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.0056cb5b
add esp, 8
test eax, eax
je 0x4f4930
push 1
push edi
call fcn.004654e0
add esp, 8
test eax, eax
je 0x4f4652
push edi
lea ecx, [ebp + 8]
call fcn.00588780
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push ecx
push str.Delete_old_file__s_n
push edx
mov byte [ebp - 4], 0x12
call fcn.0058148b
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004f2710
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.005886c0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4f4660
mov ebx, eax
mov dword [ebp - 0x38], ebx
jmp 0x4f4668
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x38], ecx
mov ebx, ecx
push 1
push edi
push ebx
call fcn.004652c0
add esp, 0xc
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4f48e1
mov edx, dword [0x65ec1c]
mov dword [ebp + 8], edx
mov byte [ebp - 4], 0x13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push eax
push esi
push ebx
lea eax, [ebp + 8]
push str.Can_not_rename_temp_file__s_to__s__error___ld_n
push eax
call fcn.0058148b
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x20]
add esp, 0x14
push ecx
mov ecx, ebx
call fcn.004f2710
xor edi, edi
push esi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x58], di
call fcn.00402e10
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 0x14
cmp eax, edi
jne 0x4f46da
lea eax, [ebp - 0x58]
push 0x5c
push eax
call fcn.0056cc8e
add esp, 8
cmp eax, edi
jne 0x4f4706
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x13
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.005886c0
jmp 0x4f4892
add eax, 2
mov word [eax], di
mov eax, dword [ebp - 0x5c]
cmp eax, edi
jne 0x4f4716
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.00465670
add esp, 8
cmp eax, edi
jne 0x4f4873
push str.Folder_does_not_exist__Creating..._n
mov ecx, ebx
call fcn.004f2710
mov eax, dword [ebp - 0x5c]
cmp eax, edi
jne 0x4f473f
lea eax, [ebp - 0x58]
add eax, 6
push 0x5c
push eax
call fcn.0056ca4b
add esp, 8
mov esi, eax
mov bl, 0x15
xor edi, edi
cmp esi, edi
je 0x4f485e
mov eax, dword [ebp - 0x5c]
cmp eax, edi
jne 0x4f4765
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x6c], edi
mov word [ebp - 0x70], di
call fcn.00402e10
mov ecx, dword [ebp - 0x74]
mov byte [ebp - 4], bl
cmp ecx, edi
jne 0x4f4785
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 0x5c]
cmp eax, edi
jne 0x4f478f
lea eax, [ebp - 0x58]
mov edx, esi
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], di
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4f47a3
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.00465670
add esp, 8
cmp eax, edi
jne 0x4f483d
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4f47c0
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.00465850
add esp, 8
cmp eax, edi
jne 0x4f483d
lea ecx, [ebp - 0x74]
call fcn.00403a60
push eax
lea ecx, [ebp - 0x34]
call fcn.00588780
mov byte [ebp - 4], 0x16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp + 8]
push str.Can_not_create_folder__s__error___ld_n
push ecx
call fcn.0058148b
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add esp, 0x10
push edx
call fcn.004f2710
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.005886c0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x14
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x13
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.005886c0
jmp 0x4f488d
add esi, 2
push 0x5c
push esi
call fcn.0056ca4b
add esp, 8
lea ecx, [ebp - 0x74]
mov esi, eax
mov byte [ebp - 4], 0x14
call fcn.00401070
jmp 0x4f4753
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x38]
push 1
push eax
push ecx
call fcn.004652c0
add esp, 0xc
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x13
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.005886c0
xor edi, edi
cmp dword [ebp - 0x2c], edi
jne 0x4f48e1
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push edx
call fcn.00588780
mov byte [ebp - 4], 0x17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x20]
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x20]
push eax
lea eax, [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
push edx
push str.Can_not_rename_temp_file__s_to__s__errno___ld_n
push eax
call fcn.0058148b
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
push ecx
mov ecx, esi
call fcn.004f2710
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xe
call fcn.005886c0
jmp 0x4f4930
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push edx
call fcn.00588780
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c]
mov ecx, dword [esi + 0x20]
mov byte [ebp - 4], 0x18
mov edx, dword [ecx + 0x10]
push edx
push str.Rename_temp_file__s_to__s._n
push eax
call fcn.0058148b
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.004f2710
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xe
mov dword [edx], 1
call fcn.005886c0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4f49d8
mov eax, dword [0x663680]
lea ecx, [ebp + 0xc]
lea edx, [ebp + 8]
push ecx
push edx
push 0
push 0
push str.bSaveLogs
push eax
mov dword [ebp + 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f496a
cmp dword [ebp + 8], 1
je 0x4f49d8
mov ecx, dword [esi + 0x6c]
call fcn.004fbc90
mov ecx, dword [0x663660]
push ecx
call fcn.0056f30e
mov eax, dword [esi + 0x6c]
add esp, 4
add eax, 4
cmp byte [eax], 0
je 0x4f49d8
mov edx, dword [0x65ec1c]
mov dword [ebp + 0x10], edx
push eax
lea eax, [ebp + 0x10]
push 0x638fa8
push eax
mov byte [ebp - 4], 0x19
call fcn.0058148b
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push 0x5c
push ecx
call fcn.0056c5b0
add esp, 8
test eax, eax
je 0x4f49cc
mov byte [eax], 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.0056ec2b
add esp, 4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xe
call fcn.005886c0
mov eax, dword [0x663660]
push eax
call fcn.0056f30e
add esp, 4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.005886c0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005886c0
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