Function at 0x4e5ec0
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 0x58d46f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x20], edi
cmp eax, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
je 0x4e6edf
mov eax, dword [eax + 0x1c]
mov ecx, dword [0x639ad4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ecx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004e8970
push str.Assembling_all_downloaded_portions_into_one_file..._n
mov ecx, edi
call fcn.004e50a0
mov edx, dword [edi + 0x50]
mov eax, dword [edx]
cmp eax, esi
je 0x4e5f3a
push esi
push 0x1392
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x4e5f56
mov ecx, dword [edi + 0x10]
push ecx
push 0x1392
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [edi + 0x14]
push esi
lea ecx, [ebp - 0x64]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x64], esi
push eax
mov dword [ebp - 0x5c], esi
mov word [ebp - 0x60], si
call fcn.004024c0
mov ebx, dword [ebp + 0x10]
mov byte [ebp - 4], 2
cmp ebx, esi
mov byte [ebp - 0x11], 0
je 0x4e6410
push ebx
call fcn.0054e46e
add esp, 4
test eax, eax
je 0x4e6410
cmp dword [edi], esi
je 0x4e6410
mov eax, dword [ebp - 0x64]
cmp eax, esi
jne 0x4e5fa6
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.0055054c
add esp, 8
test eax, eax
je 0x4e6410
push 1
push ebx
call fcn.0045d490
add esp, 8
cmp eax, esi
je 0x4e6000
push ebx
lea ecx, [ebp - 0x34]
call fcn.0056a1c0
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
push eax
push str.Delete_old_file__s_n
push ecx
mov byte [ebp - 4], 3
call fcn.00562ecb
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, edi
push edx
call fcn.004e50a0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0056a100
cmp dword [ebp + 8], esi
jbe 0x4e615b
push esi
push esi
push 2
push esi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e605c
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.00562ecb
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.004e50a0
mov edx, dword [0x63f49c]
mov ecx, dword [edi + 0x4c]
push edx
call fcn.004ec300
jmp 0x4e6940
push 0
push 0
lea eax, [ebp - 0x4c]
push 0
push eax
push ebx
call fcn.0054fba9
add esp, 0x14
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0056a1c0
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x14]
mov eax, dword [ebp - 0x18]
push edx
mov edx, dword [ecx + 0x10]
push eax
push edx
push esi
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.004e6f30
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4e60af
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
jmp 0x4e6565
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x11], 1
call fcn.0056a1c0
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
mov ecx, dword [esi + 0x14]
mov bl, 5
mov byte [ebp - 4], bl
mov edx, dword [ecx + 0x10]
push edx
push str.Rename2_temp_file__s_to__s._n
push eax
call fcn.00562ecb
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.004e50a0
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.005502d1
add esp, 4
cmp eax, 0xffffffff
jne 0x4e6143
mov edx, dword [0x639ad4]
mov dword [ebp - 0x24], edx
mov eax, dword [esi + 0x14]
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 6
mov ecx, dword [eax + 0x10]
push ecx
push str.Could_not_delete_temp_file__s_n
push edx
call fcn.00562ecb
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004e50a0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0056a100
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0056a100
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
jmp 0x4e640b
mov eax, dword [ebp - 0x64]
cmp eax, esi
mov ebx, eax
jne 0x4e6167
lea ebx, [ebp - 0x60]
mov edi, dword [ebp + 0x10]
push 0
push edi
push ebx
call fcn.0045d2e0
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebp - 0x30], esi
jne 0x4e63c4
mov ecx, dword [0x639ad4]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
lea edx, [ebp - 0x24]
push str.Can_not_rename_temp_file__s_to__s__error___ld_n
push edx
call fcn.00562ecb
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
add esp, 0x14
push eax
call fcn.004e50a0
xor eax, eax
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], eax
mov word [ebp - 0x6c], ax
call fcn.00402b60
mov eax, dword [ebp - 0x70]
mov byte [ebp - 4], 8
test eax, eax
jne 0x4e61d9
lea eax, [ebp - 0x6c]
push 0x5c
push eax
call fcn.0054e65e
add esp, 8
test eax, eax
jne 0x4e6205
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0056a100
jmp 0x4e637d
add eax, 2
lea ecx, [ebp - 0x70]
mov word [eax], 0
call fcn.00403580
push 0
push eax
call fcn.0045d550
add esp, 8
test eax, eax
jne 0x4e6361
mov ecx, dword [ebp - 0x20]
push str.Folder_does_not_exist__Creating..._n
call fcn.004e50a0
lea ecx, [ebp - 0x70]
call fcn.00403580
add eax, 6
push 0x5c
push eax
call fcn.0054e48b
add esp, 8
mov esi, eax
test esi, esi
je 0x4e6353
lea ecx, [ebp - 0x70]
call fcn.00403580
push eax
lea ecx, [ebp - 0x50]
call fcn.004034d0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 9
call fcn.00403580
lea ecx, [ebp - 0x70]
mov edi, eax
call fcn.00403580
mov ecx, esi
sub ecx, eax
sar ecx, 1
mov word [edi + ecx*2], 0
lea ecx, [ebp - 0x50]
call fcn.00403580
push 0
push eax
call fcn.0045d550
add esp, 8
test eax, eax
jne 0x4e632f
lea ecx, [ebp - 0x50]
call fcn.00403580
push 0
push eax
call fcn.0045d660
add esp, 8
test eax, eax
jne 0x4e632f
lea ecx, [ebp - 0x50]
call fcn.00403580
push eax
lea ecx, [ebp - 0x34]
call fcn.0056a1c0
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x34]
push eax
push edx
lea eax, [ebp - 0x24]
push str.Can_not_create_folder__s__error___ld_n
push eax
call fcn.00562ecb
mov ecx, dword [ebp - 0x24]
add esp, 0x10
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.004e50a0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.0056a100
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 8
call fcn.00401070
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0056a100
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp + 0x10]
jmp 0x4e6379
add esi, 2
push 0x5c
push esi
call fcn.0054e48b
add esp, 8
lea ecx, [ebp - 0x50]
mov esi, eax
mov byte [ebp - 4], 8
call fcn.00401070
mov edi, dword [ebp + 0x10]
jmp 0x4e624d
push 0
push edi
push ebx
call fcn.0045d2e0
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0056a100
test esi, esi
jne 0x4e63c4
push edi
lea ecx, [ebp - 0x34]
call fcn.0056a1c0
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x34]
push eax
push edx
mov eax, dword [esi + 0x14]
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.00562ecb
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, esi
push eax
call fcn.004e50a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
jmp 0x4e640b
push edi
lea ecx, [ebp - 0x34]
call fcn.0056a1c0
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x1c]
mov edx, dword [esi + 0x14]
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.00562ecb
mov edx, dword [ebp - 0x1c]
add esp, 0x10
mov ecx, esi
push edx
call fcn.004e50a0
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
mov dword [eax], 1
call fcn.0056a100
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x4e65fb
mov al, byte [ebp - 0x11]
test al, al
jne 0x4e65fb
mov ecx, dword [0x639ad4]
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0x10]
push eax
push str._s_tmp
push ecx
call fcn.00562ecb
mov eax, dword [edi + 0x14]
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 0x4e6491
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x24]
push eax
mov eax, dword [edi + 0x14]
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.00562ecb
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, edi
push eax
jmp 0x4e65ea
mov ecx, dword [edi + 0x14]
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 0x4e6521
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.00562ecb
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.004e50a0
mov edx, dword [0x63f49c]
mov ecx, dword [edi + 0x4c]
push edx
call fcn.004ec300
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0056a100
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0056a100
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 + 0x14]
push 0
push eax
mov edx, dword [ecx + 0x10]
push edx
call fcn.0054ea7c
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.004e6f30
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4e6597
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0056a100
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0056a100
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 + 0x14]
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.00562ecb
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.004e50a0
mov edx, dword [ebp - 0x24]
push edx
call fcn.005502d1
add esp, 4
cmp eax, 0xffffffff
jne 0x4e65ef
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push eax
push str.Could_not_delete_temp_file__s_n
push ecx
call fcn.00562ecb
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.004e50a0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0056a100
mov ebx, dword [ebp + 0xc]
cmp dword [ebx], 0
je 0x4e6608
mov eax, dword [ebp + 0x10]
jmp 0x4e6612
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x4e6612
lea eax, [ebp - 0x60]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x34], edi
jne 0x4e6696
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.00562ecb
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.004e50a0
mov edx, dword [0x63f49c]
mov ecx, dword [edi + 0x4c]
push edx
call fcn.004ec300
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0056a100
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 + 0x78]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [esi], 0xffffffff
jne 0x4e66f9
mov eax, dword [esi + 4]
test eax, eax
jne 0x4e66f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e66f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x1c]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.00562ecb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add esp, 0xc
push eax
call fcn.004e50a0
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x4e6716
mov ecx, dword [ebp - 0x3c]
push 1
push 0
push 0
push ecx
call fcn.00550840
mov ecx, dword [esi]
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, edx
mov dword [esi + 4], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x50]
mov eax, dword [eax]
test eax, eax
je 0x4e6734
push esi
push 0x1393
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 0x20]
mov edx, dword [esi]
push ecx
mov ecx, dword [eax + 0x14]
push edx
lea eax, [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
push edx
push str.Size_of__s_is__I64d_n
push eax
call fcn.00562ecb
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.004e50a0
lea edx, [ebp - 0x40]
push 2
push edx
push 0
push edi
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebx], 0
je 0x4e6782
mov eax, dword [ebp + 0x10]
jmp 0x4e678c
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x4e678c
lea eax, [ebp - 0x60]
push 0
push 0
lea ecx, [ebp - 0x58]
push 0
push ecx
push eax
call fcn.0054fba9
add esp, 0x14
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x38]
push edx
call fcn.0056a1c0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 0xe
test ebx, ebx
je 0x4e6b20
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 8]
push eax
call fcn.0056a1c0
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 0xf
cmp dword [ecx], 0
je 0x4e67e0
mov eax, dword [ebp + 8]
jmp 0x4e67f9
mov edx, dword [esi + 0x14]
lea ecx, [ebp - 0x44]
mov eax, dword [edx + 0x10]
push eax
call fcn.0056a16e
or dword [ebp - 0x28], 1
mov eax, dword [eax]
mov byte [ebp - 4], 0x10
mov ecx, dword [ebx + 0x10]
push eax
push ecx
lea edx, [ebp - 0x1c]
push str.Adding_file__s_to_file__s._n
push edx
call fcn.00562ecb
mov al, byte [ebp - 0x28]
add esp, 0x10
test al, 1
mov dword [ebp - 4], 0xf
je 0x4e682d
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x44]
and al, 0xfe
mov dword [ebp - 0x28], eax
call fcn.0056a100
mov eax, dword [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004e50a0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4e696d
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x34]
push 0
push ecx
mov ecx, dword [ebp - 0x20]
push edx
push eax
call fcn.004e6f30
mov esi, eax
test esi, esi
je 0x4e697b
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4e6928
push edi
call fcn.0054e46e
add esp, 4
test eax, eax
je 0x4e6928
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x4e6893
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.0054e52b
add esp, 8
test eax, eax
je 0x4e6928
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x4e68af
lea eax, [ebp - 0x60]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4e68ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0x10]
lea edx, [ebp - 0x1c]
push eax
push ecx
push str.Can_not_rename_back_file__s_to__s__errno___ld_n
push edx
call fcn.00562ecb
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, edi
push eax
call fcn.004e50a0
jmp 0x4e6928
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x14]
mov edx, dword [ecx + 0x10]
lea ecx, [ebp - 0x1c]
push edx
push eax
push str.Rename_back_file__s_to__s._n
push ecx
call fcn.00562ecb
mov edx, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, edi
push edx
call fcn.004e50a0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.0056a100
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0056a100
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0056a100
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.004e50a0
jmp 0x4e697e
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebx + 0x10]
push ecx
call fcn.005502d1
mov edx, dword [ebx + 0x10]
add esp, 4
cmp eax, 0xffffffff
push edx
jne 0x4e699a
push str.Could_not_delete_temp_file__s_n
jmp 0x4e699f
push str.Deleting_temp_file__s_n
lea eax, [ebp - 0x1c]
push eax
call fcn.00562ecb
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004e50a0
mov edx, dword [ebx + 0x24]
lea eax, [ebp - 0x4c]
push edx
push 0x615ee0
push eax
call fcn.0054ea2a
mov eax, dword [esi + 0x54]
mov ebx, dword [ebx + 0x1c]
add esp, 0xc
test eax, eax
je 0x4e6b0f
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x1c]
push edx
push str.Deleting_record__s_from_registry_n
push eax
call fcn.00562ecb
mov ecx, dword [0x639ad4]
add esp, 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x18]
push edx
push str.sk_s
push eax
mov byte [ebp - 4], 0x11
call fcn.00562ecb
mov eax, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x30]
push ecx
mov ecx, dword [esi + 0x54]
push edx
push 0
push 0
push eax
push ecx
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4e6aa5
mov eax, dword [ebp - 0x30]
test eax, eax
jbe 0x4e6aa5
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x24]
push edx
push eax
push 0
push 0
push 0x62ce70
push ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x54]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x54]
lea edx, [ebp - 0x24]
push 4
push edx
push 4
push 0
push 0x62ce70
push eax
call edi
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.004e50a0
xor eax, eax
cmp ebx, eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
je 0x4e6ac7
mov edx, dword [ebx + 0x24]
mov dword [ebp - 0x70], edx
jmp 0x4e6ace
mov dword [ebp - 0x70], 0xffffffff
mov ecx, dword [esi + 0x54]
lea eax, [ebp - 0x74]
push 0x10
push eax
push 0
push 0
push 0x61be94
push ecx
call edi
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x1c]
push edx
push str.Updating_record_with_ID_0__set_nextID__d_n
push eax
call fcn.00562ecb
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004e50a0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xf
call fcn.0056a100
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.0056a100
jmp 0x4e67bb
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004e8310
push str.Rebuilding_file_complete._n
mov ecx, esi
call fcn.004e50a0
cmp dword [esi], 0
je 0x4e6ead
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4e6ead
push edi
call fcn.0054e46e
add esp, 4
test eax, eax
je 0x4e6ead
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x4e6ead
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x4e6b78
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.0054e52b
add esp, 8
test eax, eax
je 0x4e6ead
push 1
push edi
call fcn.0045d490
add esp, 8
test eax, eax
je 0x4e6bd2
push edi
lea ecx, [ebp + 8]
call fcn.0056a1c0
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.00562ecb
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004e50a0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.0056a100
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4e6be0
mov ebx, eax
mov dword [ebp - 0x34], ebx
jmp 0x4e6be8
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x34], ecx
mov ebx, ecx
push 1
push edi
push ebx
call fcn.0045d2e0
add esp, 0xc
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4e6e5e
mov edx, dword [0x639ad4]
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.00562ecb
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x20]
add esp, 0x14
push ecx
mov ecx, ebx
call fcn.004e50a0
xor edi, edi
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x48], edi
mov word [ebp - 0x4c], di
call fcn.00402b60
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 0x14
cmp eax, edi
jne 0x4e6c5a
lea eax, [ebp - 0x4c]
push 0x5c
push eax
call fcn.0054e65e
add esp, 8
cmp eax, edi
jne 0x4e6c86
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x13
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.0056a100
jmp 0x4e6e14
add eax, 2
mov word [eax], di
mov eax, dword [ebp - 0x50]
cmp eax, edi
jne 0x4e6c96
lea eax, [ebp - 0x4c]
push 1
push eax
call fcn.0045d550
add esp, 8
cmp eax, edi
jne 0x4e6df5
push str.Folder_does_not_exist__Creating..._n
mov ecx, ebx
call fcn.004e50a0
mov eax, dword [ebp - 0x50]
cmp eax, edi
jne 0x4e6cbf
lea eax, [ebp - 0x4c]
add eax, 6
push 0x5c
push eax
call fcn.0054e48b
add esp, 8
mov esi, eax
mov bl, 0x15
xor edi, edi
cmp esi, edi
je 0x4e6de0
mov eax, dword [ebp - 0x50]
cmp eax, edi
jne 0x4e6ce5
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], edi
mov word [ebp - 0x6c], di
call fcn.00402b60
mov ecx, dword [ebp - 0x70]
mov byte [ebp - 4], bl
cmp ecx, edi
jne 0x4e6d05
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp - 0x50]
cmp eax, edi
jne 0x4e6d0f
lea eax, [ebp - 0x4c]
mov edx, esi
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], di
mov eax, dword [ebp - 0x70]
cmp eax, edi
jne 0x4e6d23
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0045d550
add esp, 8
cmp eax, edi
jne 0x4e6dbf
mov eax, dword [ebp - 0x70]
cmp eax, edi
jne 0x4e6d40
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0045d660
add esp, 8
cmp eax, edi
jne 0x4e6dbf
mov eax, dword [ebp - 0x70]
cmp eax, edi
jne 0x4e6d59
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0056a1c0
mov byte [ebp - 4], 0x16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp + 8]
push str.Can_not_create_folder__s__error___ld_n
push ecx
call fcn.00562ecb
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add esp, 0x10
push edx
call fcn.004e50a0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0056a100
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x14
call fcn.00401070
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x13
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.0056a100
jmp 0x4e6e0f
add esi, 2
push 0x5c
push esi
call fcn.0054e48b
add esp, 8
lea ecx, [ebp - 0x70]
mov esi, eax
mov byte [ebp - 4], 0x14
call fcn.00401070
jmp 0x4e6cd3
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x34]
push 1
push eax
push ecx
call fcn.0045d2e0
add esp, 0xc
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x13
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.0056a100
xor edi, edi
cmp dword [ebp - 0x2c], edi
jne 0x4e6e5e
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push edx
call fcn.0056a1c0
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 + 0x14]
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.00562ecb
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
push ecx
mov ecx, esi
call fcn.004e50a0
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x10]
jmp 0x4e6ea8
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push edx
call fcn.0056a1c0
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c]
mov ecx, dword [esi + 0x14]
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.00562ecb
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.004e50a0
mov edx, dword [ebp + 0xc]
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x10]
mov dword [edx], 1
call fcn.0056a100
mov eax, dword [0x63e500]
push eax
call fcn.00550d4e
add esp, 4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0056a100
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0056a100
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