Function at 0x48c180
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 0x48c1bb
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 0x48c4f6
push ebx
push 0x6580d8
push dword [edi + 0x2c]
call fcn.005eb0b3
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x48c4f5
push ebx
mov dword [ebp - 0x820], 1
call fcn.005ec699
add esp, 4
test eax, eax
jne 0x48c20c
push ebx
push 1
push 2
push 0x6580e0
call fcn.005ec93d
add esp, 0x10
cmp dword [edi + 0x30], 0
je 0x48c2d5
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.005c88b0
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.0048c650
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 0x48c2b0
sub ecx, edx
sar ecx, 1
push ebx
push 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.005ec93d
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 0x48c311
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.005ec93d
inc esi
add esp, 0x10
cmp esi, dword [ebp - 0x81c]
jl 0x48c2f0
push ebx
call fcn.005eb84c
push ebx
call fcn.005ec699
push ebx
mov esi, eax
call fcn.005eb1fd
mov eax, dword [edi + 0x34]
add esp, 0xc
test eax, eax
jle 0x48c4f5
cmp esi, eax
jl 0x48c4f5
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.0054e16c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x48c4f5
mov eax, dword [ebp - 0x81c]
add eax, eax
mov dword [ebp - 0x81c], eax
add eax, 2
push eax
push 0
push ebx
call fcn.005c88b0
push 0x6581a8
push dword [edi + 0x2c]
mov byte [ebp - 0x815], 0
call fcn.005eb0b3
add esp, 0x14
mov dword [ebp - 0x824], eax
test eax, eax
je 0x48c3ea
sub esi, dword [ebp - 0x81c]
push 0
push esi
push eax
call fcn.005ebf07
mov esi, dword [ebp - 0x824]
push esi
push 1
push dword [ebp - 0x81c]
push ebx
call fcn.005ebacc
cmp eax, 1
push esi
sete byte [ebp - 0x815]
call fcn.005eb1fd
add esp, 0x20
push 0x6581b0
push dword [edi + 0x2c]
call fcn.005eb0b3
mov esi, eax
add esp, 8
test esi, esi
je 0x48c4ec
push esi
push 1
push 2
push 0x6580e0
call fcn.005ec93d
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.005c88b0
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.0048c650
lea ecx, [ebp - 0x804]
add esp, 0x2c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c4a3
sub ecx, edx
sar ecx, 1
push esi
push 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.005ec93d
add esp, 0x10
cmp byte [ebp - 0x815], 0
je 0x48c4e3
push esi
push 1
push dword [ebp - 0x81c]
push ebx
call fcn.005ec93d
add esp, 0x10
push esi
call fcn.005eb1fd
add esp, 4
push ebx
call fcn.0054e175
add esp, 4
pop ebx
lea ecx, [edi + 0x20]
call fcn.0048c830
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x820]
xor ecx, ebp
pop edi
pop esi
call fcn.0054e0f3
mov esp, ebp
pop ebp
ret