Function at 0x10049370
Capabilities:
Check if file exists
Delete file
Get file size
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd7c
mov eax, dword [0x1007b00c]
xor eax, esp
mov dword [esp + 0xd78], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [esp + 0x964]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
push 0x412
push 0
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xa8]
push 0x80
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x28]
push 0x80
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x40
lea eax, [esp + 0xac]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 2
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0x40
lea eax, [esp + 0x2c]
push eax
push str.hh:mm:ss
lea eax, [esp + 0x24]
push eax
push 8
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x34]
push ebx
push dword [esp + 0x20]
push eax
lea eax, [esp + 0xc0]
push eax
push str._s__s:_HRESULT:_d_ft:_x_func:_x_path:_s__s_r_n
lea eax, [esp + 0x988]
push 0x208
push eax
call fcn.1000b7e0
push 0x209
lea eax, [esp + 0x574]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [esp + 0x99c]
add esp, 0x34
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10049480
push 0
push 0
push 0x208
sub ecx, edx
lea eax, [esp + 0x554]
push eax
sar ecx, 1
lea eax, [esp + 0x978]
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x20a
lea eax, [esp + 0x75c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x128]
push 0x20a
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [esp + 0x758]
call fcn.100496a0
test eax, eax
je 0x10049679
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [esp + 0x758]
push eax
lea eax, [esp + 0x12c]
push 0x104
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x128]
push str.QMDellog.dat
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
lea eax, [esp + 0x128]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1004965e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x100000
jb 0x10049619
push 0x20a
lea eax, [esp + 0x33c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x33c]
push 0x104
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x338]
push str..bak
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [esp + 0x338]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100495d5
lea eax, [esp + 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x338]
push eax
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1004965e
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x140]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1004965e
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x548]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049630
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
sub ecx, edx
lea eax, [esp + 0x550]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0xc], eax
jmp 0x10049660
xor eax, eax
test ebx, ebx
jne 0x1004967c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd78]
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
or ebx, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xd84]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret