Function at 0x4f20e0
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 0x5aa4d7
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 0x4f335a
mov eax, dword [eax + 0x30]
mov ecx, dword [0x65ca8c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x1c], ecx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004f5d10
push str.Assembling_all_downloaded_portions_into_one_file..._n
mov ecx, edi
call fcn.004f1060
mov edx, dword [edi + 0x70]
mov eax, dword [edx]
cmp eax, esi
je 0x4f215a
push esi
push 0x1392
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x4f2176
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.00402610
mov ebx, dword [ebp + 0x10]
mov byte [ebp - 4], 2
cmp ebx, esi
mov byte [ebp - 0x11], 0
je 0x4f26b2
push ebx
call fcn.0056aeae
add esp, 4
test eax, eax
je 0x4f26b2
cmp dword [edi], esi
je 0x4f26b2
mov eax, dword [ebp - 0x68]
cmp eax, esi
jne 0x4f21c6
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.0056cfcc
add esp, 8
test eax, eax
je 0x4f26b2
push 1
push ebx
call fcn.00464e30
add esp, 8
cmp eax, esi
je 0x4f2220
push ebx
lea ecx, [ebp - 0x38]
call fcn.00586bf3
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.0057f8fb
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, edi
push edx
call fcn.004f1060
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00586b33
cmp dword [ebp + 8], esi
jbe 0x4f23fe
cmp dword [0x63a28c], esi
je 0x4f2248
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 0x4f228c
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00586bf3
mov eax, dword [ebp - 0x2c]
push 0x3f
push eax
call fcn.0056aa70
add esp, 8
test eax, eax
push esi
push esi
push 2
push esi
push 1
push 0xc0000000
jne 0x4f227b
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x4f2282
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00586b33
cmp esi, 0xffffffff
jne 0x4f22ca
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.0057f8fb
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, edi
push eax
call fcn.004f1060
mov ecx, dword [0x662550]
push ecx
mov ecx, dword [edi + 0x6c]
call fcn.004fa710
jmp 0x4f2c8d
push 0
push 0
lea edx, [ebp - 0x34]
push 0
push edx
push ebx
call fcn.0056c696
add esp, 0x14
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x24]
push eax
call fcn.00586bf3
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.004f33b0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4f2352
cmp edi, 0x757c
je 0x4f2352
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00586b33
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00586b33
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.00586bf3
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.0057f8fb
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov ecx, esi
push eax
call fcn.004f1060
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
mov edx, dword [esi + 0x20]
mov eax, dword [edx + 0x10]
push eax
call fcn.0056cd51
add esp, 4
cmp eax, 0xffffffff
jne 0x4f23e6
mov ecx, dword [0x65ca8c]
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.0057f8fb
mov edx, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.004f1060
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00586b33
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00586b33
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
jmp 0x4f26ad
mov eax, dword [ebp - 0x68]
cmp eax, esi
mov ebx, eax
jne 0x4f240a
lea ebx, [ebp - 0x64]
mov edi, dword [ebp + 0x10]
push 0
push edi
push ebx
call fcn.00464c10
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebp - 0x34], esi
jne 0x4f2666
mov eax, dword [0x65ca8c]
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.0057f8fb
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
add esp, 0x14
push edx
call fcn.004f1060
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.00402e20
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 8
test eax, eax
jne 0x4f247b
lea eax, [ebp - 0x58]
push 0x5c
push eax
call fcn.0056b10e
add esp, 8
test eax, eax
jne 0x4f24a7
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00586b33
jmp 0x4f261f
add eax, 2
lea ecx, [ebp - 0x5c]
mov word [eax], 0
call fcn.00403a70
push 0
push eax
call fcn.00464fc0
add esp, 8
test eax, eax
jne 0x4f2603
mov ecx, dword [ebp - 0x20]
push str.Folder_does_not_exist__Creating..._n
call fcn.004f1060
lea ecx, [ebp - 0x5c]
call fcn.00403a70
add eax, 6
push 0x5c
push eax
call fcn.0056aecb
add esp, 8
mov esi, eax
test esi, esi
je 0x4f25f5
lea ecx, [ebp - 0x5c]
call fcn.00403a70
push eax
lea ecx, [ebp - 0x74]
call fcn.004039c0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 9
call fcn.00403a70
lea ecx, [ebp - 0x5c]
mov edi, eax
call fcn.00403a70
mov ecx, esi
sub ecx, eax
sar ecx, 1
mov word [edi + ecx*2], 0
lea ecx, [ebp - 0x74]
call fcn.00403a70
push 0
push eax
call fcn.00464fc0
add esp, 8
test eax, eax
jne 0x4f25d1
lea ecx, [ebp - 0x74]
call fcn.00403a70
push 0
push eax
call fcn.004651a0
add esp, 8
test eax, eax
jne 0x4f25d1
lea ecx, [ebp - 0x74]
call fcn.00403a70
push eax
lea ecx, [ebp - 0x38]
call fcn.00586bf3
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.0057f8fb
mov ecx, dword [ebp - 0x24]
add esp, 0x10
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.004f1060
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 9
call fcn.00586b33
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.00586b33
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp + 0x10]
jmp 0x4f261b
add esi, 2
push 0x5c
push esi
call fcn.0056aecb
add esp, 8
lea ecx, [ebp - 0x74]
mov esi, eax
mov byte [ebp - 4], 8
call fcn.00401070
mov edi, dword [ebp + 0x10]
jmp 0x4f24ef
push 0
push edi
push ebx
call fcn.00464c10
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.00586b33
test esi, esi
jne 0x4f2666
push edi
lea ecx, [ebp - 0x38]
call fcn.00586bf3
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.0057f8fb
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, esi
push eax
call fcn.004f1060
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
jmp 0x4f26ad
push edi
lea ecx, [ebp - 0x38]
call fcn.00586bf3
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.0057f8fb
mov edx, dword [ebp - 0x1c]
add esp, 0x10
mov ecx, esi
push edx
call fcn.004f1060
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
mov dword [eax], 1
call fcn.00586b33
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x4f28a5
mov al, byte [ebp - 0x11]
test al, al
jne 0x4f28a5
mov ecx, dword [0x65ca8c]
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.0057f8fb
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 0x4f2733
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.0057f8fb
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, edi
push eax
jmp 0x4f2894
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 0x4f27c3
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.0057f8fb
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.004f1060
mov edx, dword [0x662550]
mov ecx, dword [edi + 0x6c]
push edx
call fcn.004fa710
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00586b33
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00586b33
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.0056b52c
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.004f33b0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4f2841
cmp edi, 0x757c
je 0x4f2841
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00586b33
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00586b33
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.0057f8fb
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.004f1060
mov edx, dword [ebp - 0x24]
push edx
call fcn.0056cd51
add esp, 4
cmp eax, 0xffffffff
jne 0x4f2899
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push eax
push str.Could_not_delete_temp_file__s_n
push ecx
call fcn.0057f8fb
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.004f1060
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00586b33
mov eax, dword [0x63a28c]
test eax, eax
je 0x4f28e5
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4f28bb
mov eax, dword [ebp + 0x10]
jmp 0x4f28c5
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4f28c5
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 0x4f2966
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x4f28f2
mov eax, dword [ebp + 0x10]
jmp 0x4f28fc
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4f28fc
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00586bf3
mov ecx, dword [ebp - 0x2c]
push 0x3f
push ecx
call fcn.0056aa70
add esp, 8
test eax, eax
jne 0x4f292f
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 0x4f2959
cmp dword [esi], 0
je 0x4f2939
mov eax, dword [ebp + 0x10]
jmp 0x4f2943
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4f2943
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.00586b33
cmp edi, 0xffffffff
jne 0x4f29cf
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.0057f8fb
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.004f1060
mov edx, dword [0x662550]
mov ecx, dword [edi + 0x6c]
push edx
call fcn.004fa710
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00586b33
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 0x4f2a35
mov eax, dword [esi + 4]
test eax, eax
jne 0x4f2a35
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x4f2a35
call ebx
push eax
lea edx, [ebp - 0x1c]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.0057f8fb
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.004f1060
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x4f2a55
mov ecx, dword [ebp - 0x3c]
push 1
push 0
push 0
push ecx
call fcn.0056d280
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 0x4f2a70
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.0057f8fb
mov edx, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.004f1060
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 0x4f2abd
mov eax, dword [ebp + 0x10]
jmp 0x4f2ac7
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4f2ac7
lea eax, [ebp - 0x64]
push 0
push 0
lea edx, [ebp - 0x50]
push 0
push edx
push eax
call fcn.0056c696
add esp, 0x14
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x40]
push eax
call fcn.00586bf3
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 0x4f2e6b
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00586bf3
mov edx, dword [ebp + 0xc]
mov byte [ebp - 4], 0xf
cmp dword [edx], 0
je 0x4f2b1b
mov eax, dword [ebp - 0x24]
jmp 0x4f2b34
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00586ba1
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.0057f8fb
mov al, byte [ebp - 0x28]
add esp, 0x10
test al, 1
mov dword [ebp - 4], 0xf
je 0x4f2b68
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x48]
and al, 0xfe
mov dword [ebp - 0x28], eax
call fcn.00586b33
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.004f1060
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4f2cba
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.004f33b0
mov esi, eax
test esi, esi
je 0x4f2cc6
cmp esi, 0x757c
je 0x4f2cc6
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4f2c75
push edi
call fcn.0056aeae
add esp, 4
test eax, eax
je 0x4f2c75
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4f2bdc
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.0056afdb
add esp, 8
test eax, eax
je 0x4f2c75
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4f2bf8
lea eax, [ebp - 0x64]
push 0
push eax
push edi
call fcn.00464c10
add esp, 0xc
test eax, eax
jne 0x4f2c3b
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.0057f8fb
mov edx, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, edi
push edx
call fcn.004f1060
jmp 0x4f2c75
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.0057f8fb
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
push ecx
mov ecx, edi
call fcn.004f1060
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call fcn.00586b33
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00586b33
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00586b33
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.004f1060
mov eax, dword [ebx + 0x10]
push eax
call fcn.0056cd51
mov ecx, dword [ebx + 0x10]
add esp, 4
cmp eax, 0xffffffff
push ecx
jne 0x4f2ce2
push str.Could_not_delete_temp_file__s_n
jmp 0x4f2ce7
push str.Deleting_temp_file__s_n
lea edx, [ebp - 0x1c]
push edx
call fcn.0057f8fb
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004f1060
mov ecx, dword [ebx + 0x38]
lea edx, [ebp - 0x58]
push ecx
push 0x636fe4
push edx
call fcn.0056b4da
mov eax, dword [esi + 0x74]
mov ebx, dword [ebx + 0x30]
add esp, 0xc
test eax, eax
je 0x4f2e5a
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.0057f8fb
mov ecx, dword [0x65ca8c]
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.0057f8fb
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 0x4f2df0
mov eax, dword [ebp - 0x38]
test eax, eax
jbe 0x4f2df0
mov ecx, dword [esi + 0x74]
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x18]
push edx
push eax
push 0
push 0
push 0x64f19c
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 0x64f19c
push eax
call edi
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.004f1060
xor eax, eax
cmp ebx, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
je 0x4f2e12
mov edx, dword [ebx + 0x38]
mov dword [ebp - 0x74], edx
jmp 0x4f2e19
mov dword [ebp - 0x74], 0xffffffff
mov ecx, dword [esi + 0x74]
lea eax, [ebp - 0x78]
push 0x10
push eax
push 0
push 0
push 0x63d538
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.0057f8fb
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004f1060
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call fcn.00586b33
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call fcn.00586b33
jmp 0x4f2af6
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 0x4f2ebc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, ebx
je 0x4f2ebc
call edi
push eax
lea ecx, [ebp - 0x1c]
push str.Error_during_GetFileSize____errcode___ld._n
push ecx
call fcn.0057f8fb
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.004f1060
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
jmp 0x4f2ed9
mov eax, dword [ebp - 0x3c]
push 1
push ebx
push ebx
push eax
call fcn.0056d280
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.004f55e0
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.0057f8fb
mov edx, dword [ebp - 0x1c]
add esp, 0x10
mov ecx, esi
push edx
call fcn.004f1060
cmp dword [esi], ebx
je 0x4f3280
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4f3280
push edi
call fcn.0056aeae
add esp, 4
test eax, eax
je 0x4f3280
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x4f3280
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4f2f48
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.0056afdb
add esp, 8
test eax, eax
je 0x4f3280
push 1
push edi
call fcn.00464e30
add esp, 8
test eax, eax
je 0x4f2fa2
push edi
lea ecx, [ebp + 8]
call fcn.00586bf3
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.0057f8fb
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004f1060
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.00586b33
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4f2fb0
mov ebx, eax
mov dword [ebp - 0x38], ebx
jmp 0x4f2fb8
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x38], ecx
mov ebx, ecx
push 1
push edi
push ebx
call fcn.00464c10
add esp, 0xc
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4f3231
mov edx, dword [0x65ca8c]
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.0057f8fb
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x20]
add esp, 0x14
push ecx
mov ecx, ebx
call fcn.004f1060
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.00402e20
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 0x14
cmp eax, edi
jne 0x4f302a
lea eax, [ebp - 0x58]
push 0x5c
push eax
call fcn.0056b10e
add esp, 8
cmp eax, edi
jne 0x4f3056
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x13
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.00586b33
jmp 0x4f31e2
add eax, 2
mov word [eax], di
mov eax, dword [ebp - 0x5c]
cmp eax, edi
jne 0x4f3066
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.00464fc0
add esp, 8
cmp eax, edi
jne 0x4f31c3
push str.Folder_does_not_exist__Creating..._n
mov ecx, ebx
call fcn.004f1060
mov eax, dword [ebp - 0x5c]
cmp eax, edi
jne 0x4f308f
lea eax, [ebp - 0x58]
add eax, 6
push 0x5c
push eax
call fcn.0056aecb
add esp, 8
mov esi, eax
mov bl, 0x15
xor edi, edi
cmp esi, edi
je 0x4f31ae
mov eax, dword [ebp - 0x5c]
cmp eax, edi
jne 0x4f30b5
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.00402e20
mov ecx, dword [ebp - 0x74]
mov byte [ebp - 4], bl
cmp ecx, edi
jne 0x4f30d5
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 0x5c]
cmp eax, edi
jne 0x4f30df
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 0x4f30f3
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.00464fc0
add esp, 8
cmp eax, edi
jne 0x4f318d
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4f3110
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.004651a0
add esp, 8
cmp eax, edi
jne 0x4f318d
lea ecx, [ebp - 0x74]
call fcn.00403a70
push eax
lea ecx, [ebp - 0x34]
call fcn.00586bf3
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.0057f8fb
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add esp, 0x10
push edx
call fcn.004f1060
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.00586b33
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.00586b33
jmp 0x4f31dd
add esi, 2
push 0x5c
push esi
call fcn.0056aecb
add esp, 8
lea ecx, [ebp - 0x74]
mov esi, eax
mov byte [ebp - 4], 0x14
call fcn.00401070
jmp 0x4f30a3
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x38]
push 1
push eax
push ecx
call fcn.00464c10
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.00586b33
xor edi, edi
cmp dword [ebp - 0x2c], edi
jne 0x4f3231
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push edx
call fcn.00586bf3
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.0057f8fb
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
push ecx
mov ecx, esi
call fcn.004f1060
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xe
call fcn.00586b33
jmp 0x4f3280
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push edx
call fcn.00586bf3
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.0057f8fb
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.004f1060
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xe
mov dword [edx], 1
call fcn.00586b33
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4f3328
mov eax, dword [0x6614e8]
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 0x4f32ba
cmp dword [ebp + 8], 1
je 0x4f3328
mov ecx, dword [esi + 0x6c]
call fcn.004fa5d0
mov ecx, dword [0x6614c8]
push ecx
call fcn.0056d78e
mov eax, dword [esi + 0x6c]
add esp, 4
add eax, 4
cmp byte [eax], 0
je 0x4f3328
mov edx, dword [0x65ca8c]
mov dword [ebp + 0x10], edx
push eax
lea eax, [ebp + 0x10]
push 0x636fa0
push eax
mov byte [ebp - 4], 0x19
call fcn.0057f8fb
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push 0x5c
push ecx
call fcn.0056aa30
add esp, 8
test eax, eax
je 0x4f331c
mov byte [eax], 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.0056d0ab
add esp, 4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xe
call fcn.00586b33
mov eax, dword [0x6614c8]
push eax
call fcn.0056d78e
add esp, 4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00586b33
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00586b33
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