Function at 0x413f00
Capabilities:
Check if file exists
Get common file path
Get startup folder
Query or enumerate registry value

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 0x4fb675
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x340
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 - 0x27c], 0
mov dword [ebp - 0x278], 7
mov word [ebp - 0x28c], ax
mov dword [ebp - 4], eax
push 0x20a
push eax
mov byte [ebp - 0x331], al
mov dword [ebp - 0x32c], eax
lea eax, [ebp - 0x228]
push eax
call fcn.004bcaf0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x32c]
add esp, 0xc
mov eax, 0x53c234
cmp dword [0x53c248], 8
cmovae eax, dword [0x53c234]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call esi
mov eax, dword [ebp - 0x32c]
test eax, eax
jne 0x413fee
cmp dword [0x53c248], 8
lea ecx, [ebp - 0x32c]
push ecx
push 0x20019
mov eax, 0x53c234
cmovae eax, dword [0x53c234]
push 0
push eax
push 0x80000001
call esi
mov eax, dword [ebp - 0x32c]
test eax, eax
je 0x414016
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x244], 0x104
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 0
push 0
push str.Path
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [ebp - 0x228], 0
je 0x414932
xor eax, eax
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414050
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.0041a5b0
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x4140b6
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
push dword [ebp - 0x230]
cmovae eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x28c]
push eax
call fcn.0041a5b0
mov byte [ebp - 0x331], 1
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x4140fa
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4140f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41498e
push edx
push ecx
call fcn.0048e9ad
add esp, 8
cmp byte [ebp - 0x331], 0
je 0x414932
push 0x53c24c
lea eax, [ebp - 0x2c8]
push 0x51c798
push eax
call fcn.0041a9b0
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x41412e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28c]
call fcn.0041a710
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2b4]
cmp edx, 8
jb 0x414181
mov ecx, dword [ebp - 0x2c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414177
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414993
push edx
push ecx
call fcn.0048e9ad
add esp, 8
cmp dword [ebp - 0x278], 8
lea eax, [ebp - 0x28c]
cmovae eax, dword [ebp - 0x28c]
push eax
call edi
test eax, eax
je 0x414932
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], 3
lea ecx, [ebp - 0x328]
cmp dword [0x53c278], 8
mov eax, 0x53c264
push dword [0x53c274]
cmovae eax, dword [0x53c264]
push eax
call fcn.0041a5b0
cmp dword [ebp - 0x278], 8
lea eax, [ebp - 0x28c]
push dword [ebp - 0x27c]
cmovae eax, dword [ebp - 0x28c]
lea ecx, [ebp - 0x30c]
push eax
mov dword [ebp - 0x310], 3
call fcn.0041a5b0
push 0
push 0x53c294
push 0x53c27c
call fcn.004176e0
push 0x208
mov byte [ebp - 0x2f4], al
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
lea eax, [ebp - 0x228]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x340], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x33c], 7
mov word [ebp - 0x350], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4142a0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x350]
call fcn.0041a5b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x350]
cmp dword [0x53c2c0], 8
mov eax, 0x53c2ac
push dword [0x53c2bc]
cmovae eax, dword [0x53c2ac]
push eax
call fcn.0041a710
mov dword [ebp - 0x24c], 0
xor ecx, ecx
mov dword [ebp - 0x248], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x25c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x33c]
cmp edx, 8
jb 0x41436d
mov ecx, dword [ebp - 0x350]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414363
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414998
push edx
push ecx
call fcn.0048e9ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x340], 0
cmp dword [ebp - 0x248], 8
mov word [ebp - 0x350], ax
lea eax, [ebp - 0x25c]
cmovae eax, dword [ebp - 0x25c]
push eax
mov dword [ebp - 0x33c], 7
call edi
test eax, eax
jne 0x4144ed
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], 7
lea edx, [ecx + 2]
mov word [ebp - 0x274], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4143d0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x274]
call fcn.0041a5b0
push 0x53c2c4
lea edx, [ebp - 0x274]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x240]
call fcn.0041ab30
mov esi, eax
add esp, 4
lea eax, [ebp - 0x25c]
cmp eax, esi
je 0x41444c
mov ecx, eax
call fcn.0041a210
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x25c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x24c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x41448c
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414482
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41499d
push edx
push ecx
call fcn.0048e9ad
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
cmp edx, 8
jb 0x4144ed
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4144e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4149a2
push edx
push ecx
call fcn.0048e9ad
add esp, 8
cmp dword [ebp - 0x248], 8
lea eax, [ebp - 0x25c]
cmovae eax, dword [ebp - 0x25c]
push eax
call edi
test eax, eax
je 0x414816
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00498a60
lea eax, [ebp - 0x2c8]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x2ac]
mov dword [ebp - method.JSONFileValueSerializer.virtual_0], vtable.JSONFileValueSerializer.0
call fcn.00498a40
mov byte [ebp - 0x294], 0
push 0
push 0
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 0xa
call fcn.0049a750
mov esi, eax
mov dword [ebp - 0x2cc], esi
mov byte [ebp - 4], 0xb
test esi, esi
je 0x414880
mov dword [ebp - 0x244], 0
lea ecx, [ebp - 0x244]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x244]
test ecx, ecx
je 0x414880
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x32c], 0
push eax
push 0x53c2dc
call fcn.004974b0
test al, al
je 0x4147db
mov ecx, dword [ebp - 0x32c]
lea eax, [ebp - 0x290]
push eax
push 0x53c2f4
call fcn.00497530
mov ecx, dword [ebp - 0x32c]
lea eax, [ebp - 0x330]
push eax
push 0x53c30c
mov dword [ebp - 0x330], 0
call fcn.00497560
mov ecx, dword [ebp - 0x330]
test ecx, ecx
je 0x4147db
xor eax, eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
xor edx, edx
mov dword [ebp - 0x22c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x22c], edx
movq qword [ebp - 0x234], xmm0
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x230], 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 0x4146ac
lea eax, [ebp - 0x274]
push eax
push edi
call fcn.00497600
test al, al
je 0x414692
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x274]
push ecx
cmp dword [ebp - 0x22c], eax
je 0x414686
mov ecx, eax
call fcn.0041a300
add dword [ebp - 0x230], 0x18
jmp 0x414692
push eax
lea ecx, [ebp - 0x234]
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 0x414650
mov edx, dword [ebp - 0x234]
cmp dword [ebp - 0x290], 4
jne 0x414704
mov ecx, dword [ebp - 0x230]
mov eax, 0x2aaaaaab
sub ecx, edx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x414704
mov eax, dword [ebp - 0x234]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x338], esp
push eax
call fcn.0041a300
push 3
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 - 0x234]
test eax, eax
je 0x414797
lea ecx, [ebp - 0x234]
push ecx
push dword [ebp - 0x230]
push eax
call fcn.0041b670
mov ecx, dword [ebp - 0x22c]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x234]
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 0x41476f
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4149a7
push ecx
push edi
call fcn.0048e9ad
add esp, 8
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x4147db
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4147d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4149ac
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 - 0x2ac]
mov dword [ebp - method.JSONFileValueSerializer.virtual_0], vtable.JSONFileValueSerializer.0
call fcn.0041a210
lea ecx, [ebp - 0x2b0]
call fcn.00496100
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 6
call fcn.0041a210
mov esi, dword [0x53cd90]
lea eax, [ebp - 0x328]
push eax
cmp dword [0x53cd94], esi
je 0x4148f7
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 0x4148bf
mov byte [ebp - 4], 0xa
test esi, esi
je 0x414894
mov byte [ebp - 4], 0xd
mov ecx, esi
mov eax, dword [esi]
push 1
call dword [eax]
lea ecx, [ebp - 0x2ac]
mov dword [ebp - method.JSONFileValueSerializer.virtual_0], vtable.JSONFileValueSerializer.0
call fcn.0041a210
lea ecx, [ebp - 0x2b0]
call fcn.00496100
lea ecx, [ebp - 0x2c8]
call fcn.0041a210
mov edx, dword [ebp - 0x248]
cmp edx, 8
jb 0x41490e
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414904
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4149b1
jmp 0x414904
push esi
mov ecx, 0x53cd8c
call fcn.0041ae90
jmp 0x4148bf
push edx
push ecx
call fcn.0048e9ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x248], 7
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x24c], eax
mov word [ebp - 0x25c], ax
call fcn.004136b0
mov edx, dword [ebp - 0x278]
cmp edx, 8
jb 0x41496e
mov ecx, dword [ebp - 0x28c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414964
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4149b1
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.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
int3