Function at 0x505660
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
cmp dword [ecx], 0
je 0x50588e
mov esi, ecx
lea edi, [esp + 0x20]
push edi
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
push edi
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
add esp, 4
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
mov ebx, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], esi
mov esi, dword [esi]
mov eax, esp
push dword [ebp + 8]
push eax
call dword [method.QString.toUtf8_helper_QString_const_]
add esp, 8
mov eax, dword [esp]
add eax, dword [eax + 0xc]
add edi, 0xffffff9c
inc ebx
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x20]
push edi
push ebx
push dword [esp + 0x30]
push str.__.2d._.2d._.2d___.2d:_.2d:_.2d___s_n
push esi
call fcn.00521ac0
add esp, 0x24
mov eax, dword [esp]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x505714
test ecx, ecx
je 0x505706
lock dec dword [eax]
jne 0x505714
mov eax, dword [esp]
push 4
push 1
push eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
add esp, 0xc
mov esi, dword [esp + 0x1c]
push dword [esi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
push dword [esi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
add esp, 4
cmp eax, 0x100001
jl 0x50588e
mov edi, dword [esi + 4]
add edi, dword [edi + 0xc]
lea ebx, [esp + 8]
mov ecx, ebx
push 0xffffffffffffffff
push 0x55e465
call dword [method.QByteArray.QByteArray_char_const__int_]
mov eax, dword [esi + 4]
mov dword [esp], eax
mov ecx, dword [eax]
dec ecx
cmp ecx, 0xfffffffd
ja 0x505761
lock inc dword [eax]
mov ecx, esp
push ebx
call dword [method.QByteArray.append_QByteArray_const_]
mov ebx, dword [eax]
mov eax, dword [ebx]
dec eax
cmp eax, 0xfffffffd
ja 0x505777
lock inc dword [ebx]
mov eax, dword [esp]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x50579b
test ecx, ecx
je 0x50578d
lock dec dword [eax]
jne 0x50579b
mov eax, dword [esp]
push 4
push 1
push eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
add esp, 0xc
mov eax, dword [ebx + 0xc]
add eax, ebx
push eax
push edi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_rename
add esp, 8
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x5057c8
test eax, eax
je 0x5057ba
lock dec dword [ebx]
jne 0x5057c8
push 4
push 1
push ebx
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
add esp, 0xc
mov eax, dword [esp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5057ee
test ecx, ecx
je 0x5057e0
lock dec dword [eax]
jne 0x5057ee
mov eax, dword [esp + 8]
push 4
push 1
push eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
add esp, 0xc
push dword [esi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov dword [esi], 0
mov eax, dword [sym.imp.Qt5Core.dll_QArrayData::shared_null]
mov dword [esp + 4], eax
cmp dword [eax + 4], 0
je 0x505852
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
call dword [method.QString.toUtf8_helper_QString_const_]
add esp, 8
mov eax, dword [esi + 4]
mov ecx, dword [esp]
mov dword [esi + 4], ecx
mov dword [esp], eax
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x50584d
test ecx, ecx
je 0x50583f
lock dec dword [eax]
jne 0x50584d
mov eax, dword [esp]
push 4
push 1
push eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
add esp, 0xc
cmp dword [esi], 0
jne 0x505868
mov eax, dword [esi + 4]
add eax, dword [eax + 0xc]
push 0x55e43e
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
add esp, 8
mov dword [esi], eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x50588e
test ecx, ecx
je 0x505880
lock dec dword [eax]
jne 0x50588e
mov eax, dword [esp + 4]
push 4
push 2
push eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4