Function at 0x44a310
Capabilities:
Check if file exists
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1b20
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x689140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa8], ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
mov dword [ebp - 4], 0
push 7
mov dword [ebp - 0xc4], edi
push 0x10005
mov dword [ebp - 0xa4], 0
push eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x88], eax
movq qword [edi], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x10
mov esi, eax
call fcn.005988b3
mov dword [ebp - 0x90], eax
xorps xmm0, xmm0
add esp, 4
movq qword [eax], xmm0
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_class_asw::wrappers::basic_handle_void___struct_asw::wrappers::detail::traits_file_handle__.0
mov dword [ecx], esi
movq qword [edi], xmm0
mov dword [edi + 4], 0
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xa4], 3
test ecx, ecx
je 0x44a3f3
cmp dword [ecx], 0xffffffff
je 0x44a3f3
mov al, 1
jmp 0x44a3f5
xor al, al
test al, al
jne 0x44a6ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x44a473
cmp eax, 3
jne 0x44a861
mov esi, dword [ebp - 0xa0]
sub esp, 8
mov ecx, esi
mov edx, esp
lea eax, [ecx + 2]
mov dword [edx], esi
mov dword [ebp - 0x8c], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a430
sub ecx, dword [ebp - 0x8c]
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0xc0]
call fcn.004530e0
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.004532a0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0
call fcn.00428f60
jmp 0x44a479
mov esi, dword [ebp - 0xa0]
mov ecx, esi
mov dword [ebp - 0xb0], 0
xorps xmm0, xmm0
mov dword [ebp - 0xac], 0
movups xmmword [ebp - 0xc0], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a4a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xc0]
call fcn.00428c10
push 5
push str..tmp.
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 2
call fcn.00422380
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
mov dword [ebp - 0xa4], 0xb
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 4
call fcn.00428f60
lea eax, [ebp - 0xec]
push eax
call fcn.0045a080
add esp, 4
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0xdc]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x9c], xmm0
call fcn.0044d6d0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x44a560
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.00422380
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.00428f60
cmp dword [ebp - 0x20], 7
lea eax, [ebp - 0x34]
push 0
cmova eax, dword [ebp - 0x34]
push 0x80
push 1
push 0
push 7
push 0x10005
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x10
mov esi, eax
call fcn.005988b3
mov ecx, eax
xorps xmm0, xmm0
mov dword [ebp - 0x90], ecx
lea eax, [ecx + 0xc]
add esp, 4
mov dword [ebp - 0xa4], 0xf
movq qword [ecx], xmm0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 1
mov dword [ecx + 8], 1
mov dword [ecx], vtable.std::_Ref_count_obj2_class_asw::wrappers::basic_handle_void___struct_asw::wrappers::detail::traits_file_handle__.0
mov dword [eax], esi
mov edx, dword [edi + 4]
mov dword [edi], eax
mov dword [ebp - 0x8c], edx
mov dword [edi + 4], ecx
test edx, edx
je 0x44a637
or eax, 0xffffffff
lock xadd dword [edx + 4], eax
jne 0x44a637
mov eax, dword [edx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x5f2510]
mov ecx, dword [ebp - 0x8c]
call esi
mov ecx, dword [ebp - 0x8c]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x44a637
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5f2510]
mov ecx, dword [ebp - 0x8c]
call esi
mov eax, dword [edi]
test eax, eax
je 0x44a8b5
cmp dword [eax], 0xffffffff
je 0x44a8b5
push 0
lea ecx, [ebp - 0x38]
mov word [ebp - 0x14], 0xbbef
push ecx
push 3
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x12], 0xbf
push ecx
mov dword [ebp - 0x38], 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44a892
mov eax, dword [edi]
test eax, eax
je 0x44a681
mov edx, dword [eax]
jmp 0x44a684
or edx, 0xffffffff
mov esi, dword [ebp - 0xa0]
sub esp, 0xc
mov eax, esp
mov ecx, esi
mov dword [ebp - 0x90], eax
mov dword [eax], esi
lea eax, [ecx + 2]
mov dword [ebp - 0x8c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a6a2
sub ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x90]
sar ecx, 1
mov dword [eax + 4], ecx
mov ecx, edx
call fcn.004533f0
add esp, 0xc
test al, al
jne 0x44a6de
cmp dword [ebp - 0x20], 7
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00428f60
jmp 0x44a723
test ecx, ecx
je 0x44a6f4
mov eax, dword [ecx]
jmp 0x44a6f7
or eax, 0xffffffff
lea ecx, [ebp - 0x84]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x44a8e3
cmp dword [ebp - 0x5c], 1
je 0x44a71d
push 0x649
jmp 0x44a899
mov esi, dword [ebp - 0xa0]
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x18], ax
mov byte [ebp - 0x16], al
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov eax, dword [edi]
movups xmmword [ebp - 0x50], xmm0
test eax, eax
je 0x44a743
mov eax, dword [eax]
jmp 0x44a746
or eax, 0xffffffff
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push 3
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44a76e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x44a892
lea ecx, [ebp - 0x18]
mov word [ebp - 0x1c], 0xbbef
movzx eax, word [ecx]
lea edx, [ebp - 0x1c]
mov byte [ebp - 0x1a], 0xbf
cmp ax, word [edx]
jne 0x44a793
movzx eax, byte [ecx + 2]
cmp al, byte [edx + 2]
je 0x44a842
cmp byte [ebp + 0x10], 0
je 0x44a7b7
lea eax, [ebp - 0x88]
push eax
push 0x17
push str.BOM_not_present_in_
lea ecx, [ebp - 0x9c]
call fcn.0044ca60
jmp 0x44a8a4
mov eax, dword [edi]
test eax, eax
je 0x44a7c1
mov ecx, dword [eax]
jmp 0x44a7c4
or ecx, 0xffffffff
mov edx, dword [ebp - 0xa8]
add edx, 0x64
call fcn.00449c00
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x94]
push 1
push esi
push eax
call fcn.0044a310
push eax
mov ecx, edi
call fcn.0044c750
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x8c], ecx
test ecx, ecx
je 0x44a842
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x44a842
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x5f2510]
mov ecx, dword [ebp - 0x8c]
call esi
mov eax, dword [ebp - 0x8c]
or ecx, 0xffffffff
lock xadd dword [eax + 8], ecx
jne 0x44a842
mov edx, dword [eax]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x5f2510]
mov ecx, dword [ebp - 0x8c]
call esi
mov eax, edi
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.0059860b
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x88]
push ecx
push 0x1c
push str.Failed_to_open_log_file_
push eax
lea ecx, [ebp - 0x9c]
call fcn.0044c990
push 0x68501c
lea eax, [ebp - 0x9c]
push eax
call fcn.00599dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00447e70
push 0x68501c
lea eax, [ebp - 0x9c]
push eax
call fcn.00599dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x34]
push ecx
push 0x22
push str.Failed_to_create_new_log_file_
push eax
lea ecx, [ebp - 0x9c]
call fcn.0042f1f0
push 0x68501c
lea eax, [ebp - 0x9c]
push eax
call fcn.00599dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00447e70
push 0x68501c
mov eax, ecx
push eax
call fcn.00599dcb
int3