Function at 0x1002f720
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059835
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x10072f40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2b0], edi
mov dword [ebp - 0x294], 0
mov dword [ebp - 4], 0
sub esp, 0x18
lea eax, [ebp + 0xc]
mov dword [ebp - 0x2a8], esp
mov ecx, esp
mov byte [ebp - 0x295], 0
push eax
call fcn.100121a0
mov byte [ebp - 4], 1
push dword [ebp + 8]
mov byte [ebp - 4], 0
mov ecx, edi
call fcn.1001a280
movzx ecx, byte [ebp - 0x295]
test al, al
lea eax, [ebp - 0x218]
mov edx, 1
push eax
push 0
push 0
push 0x23
cmovne ecx, edx
push 0
mov dword [ebp - 0x2ac], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
lea eax, [ebp - 0x218]
js 0x1002f7d7
push str.RazerSynapse3ServiceBinDevicesDefaults_
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x1002f7eb
push str.C:ProgramDataRazerSynapse3ServiceBinDevicesDefaults_
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x268], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x264], 0
movups xmmword [ebp - 0x278], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002f812
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x278]
call fcn.10001e10
mov byte [ebp - 4], 2
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x2a8], esp
xorps xmm0, xmm0
lea ecx, [ebp - 0x218]
lea esi, [ecx + 2]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002f860
sub ecx, esi
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.10001e10
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2bc]
push eax
mov byte [ebp - 4], 2
mov ecx, edi
call fcn.10035960
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x2b8]
mov esi, dword [ebp - 0x2bc]
cmp esi, edi
je 0x1002fd28
cmp dword [esi + 0x14], 8
xorps xmm0, xmm0
mov edx, 0xa
mov dword [ebp - 0x220], 0
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x21c], 0
mov ecx, esi
mov dword [ebp - 0x2a4], esi
jb 0x1002f8e5
mov ecx, dword [esi]
mov dword [ebp - 0x2a4], ecx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2a0], eax
cmp eax, 0x7ffffffe
ja 0x1002fd7a
cmp eax, 8
jae 0x1002f91b
mov edx, 7
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edx
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x230], xmm0
jmp 0x1002f98c
or eax, 7
mov dword [ebp - 0x21c], 7
cmp eax, 0x7ffffffe
jbe 0x1002f936
mov eax, SysReAllocString
jmp 0x1002f93c
cmp eax, 0xa
cmovb eax, edx
mov dword [ebp - 0x29c], eax
lea ecx, [ebp - 0x230]
inc eax
push eax
call fcn.10006060
mov edx, eax
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x230], edx
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x21c], ecx
lea ecx, [eax*2 + 2]
mov dword [ebp - 0x220], eax
push ecx
push dword [ebp - 0x2a4]
push edx
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x29c]
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, SysReAllocString
sub eax, dword [ebp - 0x268]
cmp eax, dword [ebp - 0x2a0]
jb 0x1002fd7a
cmp dword [ebp - 0x264], 8
lea ecx, [ebp - 0x278]
push dword [ebp - 0x2a0]
cmovae ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x230]
cmp edx, 8
cmovae eax, dword [ebp - 0x230]
push eax
push dword [ebp - 0x268]
lea eax, [ebp - 0x278]
push ecx
push eax
push dword [ebp - 0x2a8]
lea ecx, [ebp - 0x290]
call fcn.100122a0
or dword [ebp - 0x294], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x290]
push 1
push 0x1005e2c4
call fcn.100330b0
mov dword [ebp - 0x250], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x260], xmm0
mov dword [ebp - 0x24c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x260], xmm0
movq xmm0, qword [eax + 0x10]
or dword [ebp - 0x294], 2
movq qword [ebp - 0x250], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 8
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x260]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
push eax
call fcn.100330b0
xor ecx, ecx
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x248], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x294]
or eax, 4
movq qword [ebp - 0x238], xmm0
mov dword [ebp - 0x294], eax
and eax, 0xfffffffd
mov dword [ebp - 0x294], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x24c]
cmp ecx, 8
jb 0x1002fb1b
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002fb0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002fd22
push ecx
push edx
call fcn.1005024f
mov eax, dword [ebp - 0x294]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x250], 0
and eax, 0xfffffffe
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], cx
mov dword [ebp - 0x294], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x290]
call fcn.10002cb0
mov ecx, dword [ebp - 0x248]
lea edx, [ebp - 0x248]
sub esp, 0x18
mov dword [ebp - 0x2a8], ecx
cmp dword [ebp - 0x234], 8
mov eax, esp
xorps xmm0, xmm0
mov dword [ebp - 0x2c0], esp
cmovae edx, ecx
mov dword [ebp - 0x2a0], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x29c], edx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
cmp ecx, 0x7ffffffe
ja 0x1002fd7a
mov dword [eax + 0x14], 7
cmp ecx, 8
jae 0x1002fbc3
push 0x10
push edx
push eax
mov dword [eax + 0x10], ecx
call sub.VCRUNTIME140.dll_memmove
jmp 0x1002fc23
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x1002fbd5
mov ecx, SysReAllocString
jmp 0x1002fbe0
cmp ecx, 0xa
mov edx, 0xa
cmovb ecx, edx
mov dword [ebp - 0x2a4], ecx
inc ecx
push ecx
mov ecx, eax
call fcn.10006060
mov ecx, dword [ebp - 0x2a0]
mov edx, dword [ebp - 0x238]
mov dword [ecx + 0x10], edx
mov edx, dword [ebp - 0x2a4]
mov dword [ecx], eax
mov dword [ecx + 0x14], edx
mov ecx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x29c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebp - 4], 0xb
push dword [ebp + 8]
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x2b0]
call fcn.1002eba0
mov ecx, dword [ebp - 0x2ac]
test al, al
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
and dword [ebp - 0x294], 0xfffffffb
mov byte [ebp - 0x2ac], cl
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x1002fca0
mov edx, dword [ebp - 0x2a8]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002fc96
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002fd22
push ecx
push edx
call fcn.1005024f
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x1002fcfd
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002fcf3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002fd22
push ecx
push edx
call fcn.1005024f
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
add esi, 0x18
mov word [ebp - 0x230], ax
jmp 0x1002f8a4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2bc]
call fcn.10016e20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x278]
call fcn.10002cb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10002cb0
mov ecx, dword [ebp - 0x2ac]
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005078e
mov esp, ebp
pop ebp
ret 0x1c
call fcn.10005ff0
int3