Function at 0x40f680
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4402ef
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x45bb20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x40f81b
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x40f81b
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.Qt5CoreKso.dll_public:_static_class_kso_qt::QDir___cdecl_kso_qt::QDir::temp_void_]
add esp, 4
push edi
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QString___thiscall_kso_qt::QDir::absoluteFilePath_class_kso_qt::QString_const__]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call dword [sym.imp.Qt5CoreKso.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_kso_qt::QString::toStdWString_void_]
mov esi, eax
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 2
jb 0x40f708
mov esi, dword [esi]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
call dword [sym.imp.Qt5CoreKso.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_kso_qt::QString::toStdWString_void_]
cmp dword [eax + 0x14], 8
jb 0x40f71d
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40f75d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f753
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f7a1
push edx
push ecx
call fcn.0043ca8f
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x40f7b1
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f7a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f7a7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0043ca8f
add esp, 8
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x44]
call dword [sym.imp.Qt5CoreKso.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_kso_qt::QString::toStdWString_void_]
cmp dword [eax + 0x14], 8
jb 0x40f7c6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40f809
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f7ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f7ff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0043ca8f
add esp, 8
lea ecx, [ebp - 0x44]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
lea ecx, [ebp - 0x48]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QDir::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043ccfc
mov esp, ebp
pop ebp
ret