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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037902
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x1007d00c]
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.1000b560
push 0x1007def8
mov dword [ebp - 0x43c], 0x1007def8
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x1000caaa
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov dword [ebp - 4], 0
cmp dword [0x1007def4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [0x1007df2c], eax
mov word [0x1007df30], 0x101
jne 0x1000cd54
xorps xmm0, xmm0
mov dword [ebp - 0x428], eax
push str.SOFTWARERAZERSynapse3
lea ecx, [ebp - 0x438]
movq qword [ebp - 0x438], xmm0
mov dword [ebp - 0x430], 0
call fcn.1000fdf0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x424], 4
push eax
push ecx
lea ecx, [ebp - 0x438]
call fcn.1000ff80
mov eax, dword [ebp - 0x428]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push esi
mov dword [0x1007df2c], eax
call edi
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov dword [0x1007def4], eax
cmp eax, 0xffffffff
jne 0x1000cb8d
push esi
lea eax, [ebp - 0x218]
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 edi
mov dword [0x1007def4], eax
cmp eax, 0xffffffff
mov ecx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
jne 0x1000cbec
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1c
push 0
call ecx
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 edi
mov ecx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [0x1007def4], eax
cmp eax, 0xffffffff
jne 0x1000cc42
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0x1a
push 0
call ecx
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 edi
mov dword [0x1007def4], eax
or edi, 0xffffffff
cmp eax, edi
je 0x1000cd17
test esi, esi
jne 0x1000cc55
xor ecx, ecx
jmp 0x1000cc6f
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000cc60
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, 0x1007df28
call fcn.100069c0
mov dword [ebp - 0x424], 0
call fcn.100011b0
mov ecx, eax
test ecx, ecx
je 0x1000cd87
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x424]
push eax
push str._Starting_Log:__s__r_n_r_n
call fcn.1000bfd0
mov esi, dword [ebp - 0x424]
mov dword [ebp - 0x42c], 0
cmp dword [esi - 4], 1
mov eax, dword [esi - 0xc]
lea ebx, [eax + eax]
jle 0x1000cce5
push eax
lea ecx, [ebp - 0x424]
call fcn.10006bf0
mov esi, dword [ebp - 0x424]
push 0
lea eax, [ebp - 0x42c]
push eax
push ebx
push esi
push dword [0x1007def4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000cd17
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov dword [ebp - method.CRegistry.virtual_0], vtable.CRegistry.0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x430]
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x430]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1000cd54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
push 0x1007def8
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
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.10034b1d
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.10008700
int3