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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x6d1554]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
mov edi, ecx
mov dword [ebp - 0x820], 0
push dword [edi + 0x38]
call esi
test eax, eax
jne 0x48c18b
push eax
push dword [edi + 0x38]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push dword [edi + 0x38]
call esi
test eax, eax
je 0x48c4c6
push ebx
push 0x6580d8
push dword [edi + 0x2c]
call fcn.005ea123
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x48c4c5
push ebx
mov dword [ebp - 0x820], 1
call fcn.005eb709
add esp, 4
test eax, eax
jne 0x48c1dc
push ebx
push 1
push 2
push 0x6580e0
call fcn.005eb9ad
add esp, 0x10
cmp dword [edi + 0x30], 0
je 0x48c2a5
lea eax, [ebp - 0x814]
mov dword [edi + 0x30], 0
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x814], xmm0
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.005c7920
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.0048c620
lea ecx, [ebp - 0x804]
add esp, 0x2c
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c280
sub ecx, edx
sar ecx, 1
push ebx
push 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.005eb9ad
add esp, 0x10
mov eax, dword [edi + 0x24]
xor esi, esi
sub eax, dword [edi + 0x20]
sar eax, 2
mov dword [ebp - 0x81c], eax
test eax, eax
jle 0x48c2e1
nop word [eax + eax]
mov eax, dword [edi + 0x20]
push ebx
push 1
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
call fcn.005eb9ad
inc esi
add esp, 0x10
cmp esi, dword [ebp - 0x81c]
jl 0x48c2c0
push ebx
call fcn.005ea8bc
push ebx
call fcn.005eb709
push ebx
mov esi, eax
call fcn.005ea26d
mov eax, dword [edi + 0x34]
add esp, 0xc
test eax, eax
jle 0x48c4c5
cmp esi, eax
jl 0x48c4c5
mov eax, esi
mov ecx, 0x19000
cdq
sub eax, edx
mov edx, 2
sar eax, 1
cmp eax, ecx
cmovg eax, ecx
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x81c], eax
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054d20c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x48c4c5
mov eax, dword [ebp - 0x81c]
add eax, eax
mov dword [ebp - 0x81c], eax
add eax, 2
push eax
push 0
push ebx
call fcn.005c7920
push 0x6581a8
push dword [edi + 0x2c]
mov byte [ebp - 0x815], 0
call fcn.005ea123
add esp, 0x14
mov dword [ebp - 0x824], eax
test eax, eax
je 0x48c3ba
sub esi, dword [ebp - 0x81c]
push 0
push esi
push eax
call fcn.005eaf77
mov esi, dword [ebp - 0x824]
push esi
push 1
push dword [ebp - 0x81c]
push ebx
call fcn.005eab3c
cmp eax, 1
push esi
sete byte [ebp - 0x815]
call fcn.005ea26d
add esp, 0x20
push 0x6581b0
push dword [edi + 0x2c]
call fcn.005ea123
mov esi, eax
add esp, 8
test esi, esi
je 0x48c4bc
push esi
push 1
push 2
push 0x6580e0
call fcn.005eb9ad
add esp, 0x10
lea eax, [ebp - 0x814]
xorps xmm0, xmm0
movups xmmword [ebp - 0x814], xmm0
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.005c7920
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.0048c620
lea ecx, [ebp - 0x804]
add esp, 0x2c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c473
sub ecx, edx
sar ecx, 1
push esi
push 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.005eb9ad
add esp, 0x10
cmp byte [ebp - 0x815], 0
je 0x48c4b3
push esi
push 1
push dword [ebp - 0x81c]
push ebx
call fcn.005eb9ad
add esp, 0x10
push esi
call fcn.005ea26d
add esp, 4
push ebx
call fcn.0054d215
add esp, 4
pop ebx
lea ecx, [edi + 0x20]
call fcn.0048c800
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x820]
xor ecx, ebp
pop edi
pop esi
call fcn.0054d193
mov esp, ebp
pop ebp
ret