Function at 0x1000bff0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100353f3
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x1007700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push esi
call fcn.1000b290
push 0x10077118
mov dword [ebp - 0x43c], 0x10077118
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
mov ebx, dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
test eax, eax
je 0x1000c04f
push eax
call ebx
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [0x10077114], 0xffffffff
mov dword [0x1007714c], eax
mov word [0x10077150], 0x101
jne 0x1000c31d
xorps xmm0, xmm0
mov dword [ebp - 0x428], eax
movq qword [ebp - 0x434], xmm0
mov dword [ebp - 0x42c], 0
mov dword [ebp - method.CRegistry.virtual_0], vtable.CRegistry.0
call fcn.10001260
mov ecx, eax
test ecx, ecx
jne 0x1000c0ae
push 0x80004005
call fcn.10008930
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
push str.SOFTWARERAZERSynapse3
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.1000fd70
mov dword [ebp - 0x430], 0x80000002
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x424], 4
push eax
push ecx
lea ecx, [ebp - 0x434]
call fcn.1000fa80
mov eax, dword [ebp - 0x428]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push esi
mov dword [0x1007714c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or edi, 0xffffffff
mov dword [0x10077114], eax
cmp eax, edi
jne 0x1000c238
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x218]
push esi
push str._s_2
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x10077114], eax
cmp eax, edi
jne 0x1000c238
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push str._sRazerSynapse3Log_s
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x420]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x10077114], eax
cmp eax, edi
jne 0x1000c238
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push str._sSynapse3_s
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x218]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x10077114], eax
cmp eax, edi
je 0x1000c2f8
test esi, esi
jne 0x1000c240
xor ecx, ecx
jmp 0x1000c254
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c245
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, 0x10077148
call fcn.10006030
call fcn.10001260
mov ecx, eax
test ecx, ecx
jne 0x1000c275
push 0x80004005
call fcn.10008930
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 3
push eax
push str._Starting_Log:__s__r_n_r_n
call fcn.1000ba80
mov esi, dword [ebp - 0x424]
mov dword [ebp - 0x438], 0
cmp dword [esi - 4], 1
mov eax, dword [esi - 0xc]
lea ebx, [eax + eax]
jle 0x1000c2c6
push eax
lea ecx, [ebp - 0x424]
call fcn.10006c50
mov esi, dword [ebp - 0x424]
push 0
lea eax, [ebp - 0x438]
push eax
push ebx
push esi
push dword [0x10077114]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000c2f8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x42c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1000c317
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push 0x10077118
mov dword [ebp - 4], 4
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
test eax, eax
je 0x1000c33c
push eax
call ebx
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033482
mov esp, ebp
pop ebp
ret 8