Function at 0x417a10
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbbc0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x328
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
mov dword [ebp - 4], eax
mov edx, 0x53c8dc
cmp dword [0x53c8f0], 8
cmovae edx, dword [0x53c8dc]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x260], esp
mov ecx, edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
lea edi, [ecx + 2]
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417aa1
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041a5b0
mov byte [ebp - 4], 1
mov edx, 0x53c8c4
cmp dword [0x53c8d8], 8
cmovae edx, dword [0x53c8c4]
sub esp, 0x18
mov esi, esp
mov ecx, edx
xor eax, eax
mov dword [esi + 0x10], 0
lea edi, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417af0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041a5b0
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 0
push eax
push 0x80000001
call fcn.00415f10
test al, al
je 0x418350
cmp dword [0x53c920], 8
lea ecx, [ebp - 0x25c]
push dword [0x53c91c]
mov eax, 0x53c90c
cmovae eax, dword [0x53c90c]
push eax
call fcn.0041a710
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
lea edx, [ebp - 0x290]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x25c]
call fcn.004134f0
test al, al
je 0x418310
mov edi, dword [ebp - 0x248]
lea ecx, [ebp - 0x25c]
mov edx, dword [ebp - 0x24c]
cmp edi, 8
push 1
cmovae ecx, dword [ebp - 0x25c]
push 0x51c798
push 0xffffffffffffffff
call fcn.0041b170
mov ecx, eax
add esp, 0xc
cmp dword [ebp - 0x24c], ecx
jb 0x4183ac
cmp edi, 8
mov dword [ebp - 0x24c], ecx
lea eax, [ebp - 0x25c]
cmovae eax, dword [ebp - 0x25c]
xor edx, edx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2a8]
push 0x51c798
push eax
call fcn.0041a9b0
add esp, 0xc
push 0x51c798
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x244]
call fcn.0041ac60
add esp, 4
mov byte [ebp - 4], 4
mov ecx, 0x53c924
cmp dword [0x53c938], 8
push dword [0x53c934]
cmovae ecx, dword [0x53c924]
push ecx
mov ecx, eax
call fcn.0041a710
xor ecx, ecx
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movups xmmword [ebp - 0x278], xmm1
mov word [eax], cx
movq qword [ebp - 0x268], xmm0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x278]
cmp dword [ebp - 0x264], 8
push dword [ebp - 0x268]
movd eax, xmm1
cmovae ecx, eax
push ecx
lea ecx, [ebp - 0x25c]
call fcn.0041a710
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x417ccc
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417cc2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4183b1
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x230]
cmp edx, 8
jb 0x417d10
mov ecx, dword [ebp - 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417d06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4183b6
push edx
push ecx
call fcn.0048e9ad
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x294]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
cmp edx, 8
jb 0x417d71
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417d67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4183bb
push edx
push ecx
call fcn.0048e9ad
add esp, 8
cmp dword [ebp - 0x248], 8
lea eax, [ebp - 0x25c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x25c]
push eax
call esi
test eax, eax
je 0x418310
xor eax, eax
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 7
mov word [ebp - 0x328], ax
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x2fc], eax
mov dword [ebp - 0x2f8], 7
mov word [ebp - 0x30c], ax
mov byte [ebp - 0x2f4], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x328]
cmp dword [0x53c908], 8
mov eax, 0x53c8f4
push dword [0x53c904]
cmovae eax, dword [0x53c8f4]
push eax
call fcn.0041a5b0
cmp dword [ebp - 0x248], 8
lea eax, [ebp - 0x25c]
push dword [ebp - 0x24c]
cmovae eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x30c]
push eax
mov dword [ebp - 0x310], 0xf
call fcn.0041a5b0
push 0
push 0x53c954
push 0x53c93c
call fcn.004176e0
push 0x208
mov byte [ebp - 0x2f4], al
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417e95
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x244]
call fcn.0041a5b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x244]
cmp dword [0x53c980], 8
mov eax, 0x53c96c
push dword [0x53c97c]
cmovae eax, dword [0x53c96c]
push eax
call fcn.0041a710
cmp dword [ebp - 0x230], 8
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push eax
call esi
test eax, eax
je 0x4181f4
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00498a60
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x2c8]
mov dword [ebp - method.JSONFileValueSerializer.virtual_0], vtable.JSONFileValueSerializer.0
call fcn.00498a40
mov byte [ebp - 0x2b0], 0
push 0
push 0
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 0xa
call fcn.0049a750
mov esi, eax
mov dword [ebp - 0x2ac], esi
mov byte [ebp - 4], 0xb
test esi, esi
je 0x41825e
mov dword [ebp - 0x334], 0
lea ecx, [ebp - 0x334]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x334]
test ecx, ecx
je 0x41825e
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x32c], 0
push eax
push 0x53c984
call fcn.004974b0
test al, al
je 0x4181ce
mov ecx, dword [ebp - 0x32c]
lea eax, [ebp - 0x260]
push eax
push 0x53c99c
call fcn.00497530
mov ecx, dword [ebp - 0x32c]
lea eax, [ebp - 0x330]
push eax
push 0x53c9b4
mov dword [ebp - 0x330], 0
call fcn.00497560
mov ecx, dword [ebp - 0x330]
test ecx, ecx
je 0x4181ce
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
xor edx, edx
mov dword [ebp - 0x224], eax
xorps xmm0, xmm0
mov dword [ebp - 0x224], edx
movq qword [ebp - 0x22c], xmm0
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], edx
mov byte [ebp - 4], 0xf
xor edi, edi
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
sar eax, 2
test eax, eax
je 0x41809f
lea eax, [ebp - 0x278]
push eax
push edi
call fcn.00497600
test al, al
je 0x418085
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x278]
push ecx
cmp dword [ebp - 0x224], eax
je 0x418079
mov ecx, eax
call fcn.0041a300
add dword [ebp - 0x228], 0x18
jmp 0x418085
push eax
lea ecx, [ebp - 0x22c]
call fcn.0041ace0
mov ecx, dword [ebp - 0x330]
inc edi
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
sar eax, 2
cmp edi, eax
jb 0x418043
mov edx, dword [ebp - 0x22c]
cmp dword [ebp - 0x260], 4
jne 0x4180f7
mov ecx, dword [ebp - 0x228]
mov eax, 0x2aaaaaab
sub ecx, edx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x4180f7
mov eax, dword [ebp - 0x22c]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x338], esp
push eax
call fcn.0041a300
push 0xf
push ecx
mov byte [ebp - 4], 0x10
call fcn.0042eab0
add esp, 4
mov byte [ebp - 4], 0xf
mov ecx, eax
call fcn.0042f5e0
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x41818a
lea ecx, [ebp - 0x22c]
push ecx
push dword [ebp - 0x228]
push eax
call fcn.0041b670
mov ecx, dword [ebp - 0x224]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x22c]
add esp, 0xc
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x418162
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4183c0
push ecx
push edi
call fcn.0048e9ad
add esp, 8
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x4181ce
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4181c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4183c5
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov byte [ebp - 4], 0x11
mov ecx, esi
mov eax, dword [esi]
push 1
call dword [eax]
lea ecx, [ebp - 0x2cc]
call fcn.00413430
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 7
call fcn.0041a210
mov esi, dword [0x53cd90]
lea eax, [ebp - 0x328]
push eax
cmp dword [0x53cd94], esi
je 0x4182d5
mov ecx, esi
mov dword [ebp - 0x338], esi
call fcn.0041a300
mov byte [ebp - 4], 0x12
lea ecx, [esi + 0x1c]
mov eax, dword [ebp - 0x310]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x30c]
push eax
call fcn.0041a300
movups xmm0, xmmword [ebp - 0x2f0]
mov al, byte [ebp - 0x2f4]
mov byte [esi + 0x34], al
movups xmmword [esi + 0x38], xmm0
movups xmm0, xmmword [ebp - 0x2e0]
movups xmmword [esi + 0x48], xmm0
add dword [0x53cd90], 0x58
jmp 0x41829d
mov byte [ebp - 4], 0xa
test esi, esi
je 0x418272
mov byte [ebp - 4], 0xd
mov ecx, esi
mov eax, dword [esi]
push 1
call dword [eax]
lea ecx, [ebp - 0x2c8]
mov dword [ebp - method.JSONFileValueSerializer.virtual_0], vtable.JSONFileValueSerializer.0
call fcn.0041a210
lea ecx, [ebp - 0x2cc]
call fcn.00496100
lea ecx, [ebp - 0x2a8]
call fcn.0041a210
mov edx, dword [ebp - 0x230]
cmp edx, 8
jb 0x4182ec
mov ecx, dword [ebp - 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4182e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4183ca
jmp 0x4182e2
push esi
mov ecx, 0x53cd8c
call fcn.0041ae90
jmp 0x41829d
push edx
push ecx
call fcn.0048e9ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x230], 7
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x234], eax
mov word [ebp - 0x244], ax
call fcn.004136b0
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x418350
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418346
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4183ca
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov edx, dword [ebp - 0x248]
cmp edx, 8
jb 0x41838c
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418382
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4183ca
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0041a880
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
int3