Function at 0x4188c0
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 0x4fbcc9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x520
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
push 0x20a
lea eax, [ebp - 0x228]
mov dword [ebp - 0x52c], 0
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
lea ecx, [ebp - 0x52c]
cmp dword [0x53cae8], 8
mov eax, 0x53cad4
cmovae eax, dword [0x53cad4]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x52c]
test eax, eax
je 0x418980
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x440], 0x104
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 0
push 0
push 0x51c79c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [ebp - 0x228], 0
je 0x418fc5
xor eax, eax
mov dword [ebp - 0x460], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4189b4
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x470]
call fcn.0041a5b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x470]
cmp dword [ebp - 0x45c], 8
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x470]
push eax
call esi
test eax, eax
je 0x418f77
xor eax, eax
mov dword [ebp - 0x4f8], 0
mov dword [ebp - 0x4f4], 7
mov word [ebp - 0x508], ax
mov dword [ebp - 0x4f0], eax
mov dword [ebp - 0x4dc], eax
mov dword [ebp - 0x4d8], 7
mov word [ebp - 0x4ec], ax
mov byte [ebp - 0x4d4], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x508]
cmp dword [0x53cb00], 8
mov eax, 0x53caec
push dword [0x53cafc]
cmovae eax, dword [0x53caec]
push eax
call fcn.0041a5b0
cmp dword [ebp - 0x45c], 8
lea eax, [ebp - 0x470]
push dword [ebp - 0x460]
cmovae eax, dword [ebp - 0x470]
lea ecx, [ebp - 0x4ec]
push eax
mov dword [ebp - 0x4f0], 0x14
call fcn.0041a5b0
push 0x208
lea eax, [ebp - 0x430]
mov byte [ebp - 0x4d4], 0
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
lea eax, [ebp - 0x430]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x448], 0
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418af1
sub ecx, edx
lea eax, [ebp - 0x430]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x458]
call fcn.0041a5b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x458]
cmp dword [0x53cb18], 8
mov eax, 0x53cb04
push dword [0x53cb14]
cmovae eax, dword [0x53cb04]
push eax
call fcn.0041a710
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
call esi
test eax, eax
je 0x418e66
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x520]
call fcn.00498a60
lea eax, [ebp - 0x520]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x4a8]
mov dword [ebp - method.JSONFileValueSerializer.virtual_0], vtable.JSONFileValueSerializer.0
call fcn.00498a40
mov byte [ebp - 0x490], 0
push 0
push 0
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 5
call fcn.0049a750
mov esi, eax
mov dword [ebp - 0x4b0], esi
mov byte [ebp - 4], 6
test esi, esi
je 0x418ed0
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x440]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x440]
test ecx, ecx
je 0x418ed0
lea eax, [ebp - 0x524]
mov dword [ebp - 0x524], 0
push eax
push 0x53cb1c
call fcn.004974b0
test al, al
je 0x418e2b
mov ecx, dword [ebp - 0x524]
lea eax, [ebp - 0x474]
push eax
push 0x53cb34
call fcn.00497530
mov ecx, dword [ebp - 0x524]
lea eax, [ebp - 0x528]
push eax
push 0x53cb4c
mov dword [ebp - 0x528], 0
call fcn.00497560
mov ecx, dword [ebp - 0x528]
test ecx, ecx
je 0x418e2b
xor eax, eax
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x478], 7
mov word [ebp - 0x48c], ax
xor edx, edx
mov dword [ebp - 0x434], eax
xorps xmm0, xmm0
mov dword [ebp - 0x434], edx
movq qword [ebp - 0x43c], xmm0
mov dword [ebp - 0x43c], edx
mov dword [ebp - 0x438], edx
mov byte [ebp - 4], 0xa
xor edi, edi
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
sar eax, 2
test eax, eax
je 0x418cfc
nop
lea eax, [ebp - 0x48c]
push eax
push edi
call fcn.00497600
test al, al
je 0x418ce2
mov eax, dword [ebp - 0x438]
lea ecx, [ebp - 0x48c]
push ecx
cmp dword [ebp - 0x434], eax
je 0x418cd6
mov ecx, eax
call fcn.0041a300
add dword [ebp - 0x438], 0x18
jmp 0x418ce2
push eax
lea ecx, [ebp - 0x43c]
call fcn.0041ace0
mov ecx, dword [ebp - 0x528]
inc edi
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
sar eax, 2
cmp edi, eax
jb 0x418ca0
mov edx, dword [ebp - 0x43c]
cmp dword [ebp - 0x474], 4
jne 0x418d54
mov ecx, dword [ebp - 0x438]
mov eax, 0x2aaaaaab
sub ecx, edx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x418d54
mov eax, dword [ebp - 0x43c]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x530], esp
push eax
call fcn.0041a300
push 0x14
push ecx
mov byte [ebp - 4], 0xb
call fcn.0042eab0
add esp, 4
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.0042f5e0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x43c]
test eax, eax
je 0x418de7
lea ecx, [ebp - 0x43c]
push ecx
push dword [ebp - 0x438]
push eax
call fcn.0041b670
mov ecx, dword [ebp - 0x434]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x43c]
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 0x418dbf
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418fe5
push ecx
push edi
call fcn.0048e9ad
add esp, 8
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x478]
cmp edx, 8
jb 0x418e2b
mov ecx, dword [ebp - 0x48c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418e21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418fea
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov byte [ebp - 4], 0xc
mov ecx, esi
mov eax, dword [esi]
push 1
call dword [eax]
lea ecx, [ebp - 0x4a8]
mov dword [ebp - method.JSONFileValueSerializer.virtual_0], vtable.JSONFileValueSerializer.0
call fcn.0041a210
lea ecx, [ebp - 0x4ac]
call fcn.00496100
lea ecx, [ebp - 0x520]
mov byte [ebp - 4], 2
call fcn.0041a210
mov esi, dword [0x53cd90]
lea eax, [ebp - 0x508]
push eax
cmp dword [0x53cd94], esi
je 0x418fab
mov ecx, esi
mov dword [ebp - 0x530], esi
call fcn.0041a300
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x1c]
mov eax, dword [ebp - 0x4f0]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x4ec]
push eax
call fcn.0041a300
movups xmm0, xmmword [ebp - 0x4d0]
mov al, byte [ebp - 0x4d4]
mov byte [esi + 0x34], al
movups xmmword [esi + 0x38], xmm0
movups xmm0, xmmword [ebp - 0x4c0]
movups xmmword [esi + 0x48], xmm0
add dword [0x53cd90], 0x58
jmp 0x418f0f
mov byte [ebp - 4], 5
test esi, esi
je 0x418ee4
mov byte [ebp - 4], 8
mov ecx, esi
mov eax, dword [esi]
push 1
call dword [eax]
lea ecx, [ebp - 0x4a8]
mov dword [ebp - method.JSONFileValueSerializer.virtual_0], vtable.JSONFileValueSerializer.0
call fcn.0041a210
lea ecx, [ebp - 0x4ac]
call fcn.00496100
lea ecx, [ebp - 0x520]
call fcn.0041a210
mov edx, dword [ebp - 0x444]
cmp edx, 8
jb 0x418f4f
mov ecx, dword [ebp - 0x458]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418f45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418fef
push edx
push ecx
call fcn.0048e9ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x448], 0
lea ecx, [ebp - 0x508]
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
call fcn.004136b0
mov edx, dword [ebp - 0x45c]
cmp edx, 8
jb 0x418fc5
mov ecx, dword [ebp - 0x470]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418fbb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418ff4
jmp 0x418fbb
push esi
mov ecx, 0x53cd8c
call fcn.0041ae90
jmp 0x418f0f
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
int3