Function at 0x444bf4
Capabilities:
Check if file exists
Create directory
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x54c728]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor eax, eax
push esi
mov esi, ecx
push edi
mov edi, eax
push dword [esi + 0x4c]
call ebx
test eax, eax
jne 0x444c2a
push eax
push dword [esi + 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push dword [esi + 0x4c]
call ebx
test eax, eax
je 0x44501a
lea ebx, [esi + 0x2c]
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x444c44
mov eax, dword [ebx]
push 0x50f29c
push eax
lea eax, [ebp - 0x818]
push eax
call fcn.004dbd48
add esp, 0xc
cmp dword [ebp - 0x818], edi
je 0x44501a
push dword [ebp - 0x818]
xor edi, edi
inc edi
mov dword [ebp - 0x834], edi
call fcn.004dc9e5
pop ecx
push 2
pop ecx
test eax, eax
jne 0x444c96
push dword [ebp - 0x818]
push edi
push ecx
push 0x50f2a4
call fcn.004dcc09
add esp, 0x10
xor eax, eax
cmp dword [esi + 0x44], eax
je 0x444d61
mov dword [esi + 0x44], eax
lea edi, [ebp - 0x814]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x800
xor edi, edi
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.004ccab0
movzx eax, word [ebp - 0x808]
add esp, 0xc
push eax
movzx eax, word [ebp - 0x80a]
push eax
movzx eax, word [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x80e]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._r_n_Start_Log___06d:_06d_:__04d__02d__02d__02d:_02d:_02d__n
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00445126
lea ecx, [ebp - 0x804]
add esp, 0x2c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x444d32
push dword [ebp - 0x818]
mov edi, dword [ebp - 0x834]
sub ecx, edx
sar ecx, 1
push edi
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.004dcc09
add esp, 0x10
mov eax, dword [esi + 0x24]
xor ecx, ecx
sub eax, dword [esi + 0x20]
sar eax, 2
mov dword [ebp - 0x820], ecx
test eax, eax
jle 0x444da8
mov ebx, eax
mov eax, dword [esi + 0x20]
push dword [ebp - 0x818]
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
call fcn.004dcc09
mov ecx, dword [ebp - 0x820]
add esp, 0x10
inc ecx
mov dword [ebp - 0x820], ecx
cmp ecx, ebx
jl 0x444d78
lea ebx, [esi + 0x2c]
push dword [ebp - 0x818]
call fcn.004de590
push dword [ebp - 0x818]
call fcn.004dc9e5
push dword [ebp - 0x818]
mov dword [ebp - 0x830], eax
call fcn.004dbe06
and dword [ebp - 0x818], 0
add esp, 0xc
cmp dword [esi + 0x48], 0
jle 0x44501a
mov eax, dword [ebp - 0x830]
cmp eax, dword [esi + 0x48]
jl 0x44501a
cmp eax, 0x32000
jge 0x444e00
cdq
sub eax, edx
sar eax, 1
jmp 0x444e05
mov eax, 0x19000
shr eax, 1
xor ecx, ecx
mov dword [ebp - 0x824], eax
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a996d
pop ecx
mov ecx, eax
mov dword [ebp - 0x820], ecx
test ecx, ecx
je 0x44501a
mov eax, dword [ebp - 0x824]
add eax, eax
mov dword [ebp - 0x82c], eax
add eax, 2
push eax
push 0
push ecx
call fcn.004ccab0
xor eax, eax
add esp, 0xc
cmp dword [ebx + 0x14], 8
mov byte [ebp - 0x824], al
mov eax, ebx
jb 0x444e62
mov eax, dword [ebx]
push 0x50cd20
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.004dbd48
add esp, 0xc
cmp dword [ebp - 0x828], 0
je 0x444ed6
xor eax, eax
push eax
mov eax, dword [ebp - 0x830]
sub eax, dword [ebp - 0x82c]
push eax
push dword [ebp - 0x828]
call fcn.004dc3ca
push dword [ebp - 0x828]
push edi
push dword [ebp - 0x82c]
push dword [ebp - 0x820]
call fcn.004dc068
push dword [ebp - 0x828]
dec eax
neg eax
sbb al, al
inc al
mov dword [ebp - 0x824], eax
call fcn.004dbe06
add esp, 0x20
xor eax, eax
mov dword [ebp - 0x828], eax
cmp dword [ebx + 0x14], 8
jb 0x444ede
mov ebx, dword [ebx]
push 0x50f368
lea eax, [ebp - 0x81c]
push ebx
push eax
call fcn.004dbd48
add esp, 0xc
cmp dword [ebp - 0x81c], 0
je 0x44500e
push dword [ebp - 0x81c]
push edi
push 2
pop eax
push eax
push 0x50f2a4
call fcn.004dcc09
xor eax, eax
lea edi, [ebp - 0x814]
stosd dword es:[edi], eax
add esp, 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.004ccab0
movzx eax, word [ebp - 0x808]
add esp, 0xc
push eax
movzx eax, word [ebp - 0x80a]
push eax
movzx eax, word [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x80e]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._r_n_Truncate_Log___06d:_06d_:__04d__02d__02d__02d:_02d:_02d__n
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00445126
add esp, 0x2c
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
push 2
pop edi
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x444fab
push dword [ebp - 0x81c]
mov edi, dword [ebp - 0x834]
sub ecx, edx
sar ecx, 1
push edi
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.004dcc09
add esp, 0x10
cmp byte [ebp - 0x824], bl
je 0x444ffc
push dword [ebp - 0x81c]
push edi
push dword [ebp - 0x82c]
push dword [ebp - 0x820]
call fcn.004dcc09
add esp, 0x10
push dword [ebp - 0x81c]
call fcn.004dbe06
pop ecx
mov dword [ebp - 0x81c], ebx
push dword [ebp - 0x820]
call fcn.004a9976
pop ecx
lea ecx, [esi + 0x20]
call fcn.0044522c
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a995c
leave
ret