Function at 0x409c46
Capabilities:
Check mutex on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push edi
mov dword [ebp - 4], 0
push 0x80000002
push str.SOFTWARECW_MiniGnet_pppoe2_systemset_
push str.LogMode
lea eax, [ebp - 0x10]
push eax
call fcn.00408ec2
add esp, 0x10
mov byte [ebp - 4], 1
push str.TRUE
lea ecx, [ebp - 0x10]
call fcn.0040b8c0
test eax, eax
je 0x409cbc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
jmp 0x409eec
push str.SetupLogError
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x409cf4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
jmp 0x409eec
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409ed1
mov dl, byte [0x4195fc]
mov byte [ebp - 0x238], dl
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x237]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x100
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov cl, byte [0x419600]
mov byte [ebp - 0x114], cl
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x238]
push edx
push str._sRegisterError.log
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x250], 0
lea ecx, [ebp - 0x138]
push ecx
push str.stat.c
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 8
test eax, eax
jne 0x409dbc
cmp dword [ebp - 0x124], 0x100000
jle 0x409dbc
push 0x418fe4
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
jne 0x409de0
push 0x418fe8
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x24c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
push 0x418fec
lea ecx, [ebp + 8]
call fcn.004021c0
test eax, eax
jne 0x409e1f
push 0x418ff0
lea ecx, [ebp - 0x24c]
call fcn.0041153e
jmp 0x409e83
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x23c]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x23e]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x240]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x242]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x246]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x248]
and edx, 0xffff
push edx
push str._04d__02d__02d__02d:_02d:_02d_t____t_s_n
lea eax, [ebp - 0x24c]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x24
cmp dword [ebp - 0x250], 0
je 0x409eb8
mov ecx, dword [ebp - 0x24c]
push ecx
push 0x41901c
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret