Function at 0x421c20
Capabilities:
Get common file path

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 0x44912f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x168
mov eax, dword [0x45f080]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push eax
push 0
push 0
push 0x44a300
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edx, dword [ebp - 0x10c]
test edx, edx
je 0x422307
mov ecx, edx
mov dword [ebp - 0x118], 0
xorps xmm0, xmm0
mov dword [ebp - 0x114], 0
movups xmmword [ebp - 0x128], xmm0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421cb6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x128]
call fcn.00403120
push 0x15
push str..ogulniegaprofiles_
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0
call fcn.00402f00
mov dword [ebp - 0x28], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x28], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 6
push str.stable
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00402f00
mov dword [ebp - 0x130], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x140], xmm0
mov dword [ebp - 0x12c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x140], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x130], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 0xd
push str.profile.json
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 2
call fcn.00402f00
mov dword [ebp - 0x40], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x3c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x40], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x12c]
cmp ecx, 7
jbe 0x421e12
mov edx, dword [ebp - 0x140]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421e08
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422327
push ecx
push edx
call fcn.004275d6
add esp, 8
xor eax, eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 7
mov word [ebp - 0x140], ax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x24]
cmp ecx, 7
jbe 0x421e6d
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421e63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422327
push ecx
push edx
call fcn.004275d6
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x114]
cmp ecx, 7
jbe 0x421ec5
mov edx, dword [ebp - 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421ebb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422327
push ecx
push edx
call fcn.004275d6
add esp, 8
xor eax, eax
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x10c], al
lea edx, [ebp - 0x50]
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x114], 7
mov word [ebp - 0x128], ax
call fcn.0040b300
add esp, 4
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 7
call fcn.00404dd0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x144]
mov byte [ebp - 0x10d], al
cmp ecx, 7
jbe 0x421f5e
mov edx, dword [ebp - 0x158]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421f4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42232c
push ecx
push edx
call fcn.004275d6
mov al, byte [ebp - 0x10d]
add esp, 8
test al, al
je 0x4222cd
push 0xb8
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004292c0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x108]
call fcn.00423560
cmp dword [ebp - 0xac], 0
je 0x422257
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
push 0
mov byte [ebp - 0x30], 0
call fcn.00414210
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x108]
call fcn.00423680
lea ecx, [ebp - 0xf8]
call fcn.0040de90
test eax, eax
jne 0x421ff1
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x108]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0040bd80
lea eax, [ebp - 0x138]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x138], xmm0
call fcn.00412420
cmp byte [ebp - 0x30], 1
jne 0x42209c
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov edi, eax
mov dword [ebp - 0x10c], eax
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x422060
nop word [eax + eax]
cmp dword [esi + 0x24], 0xf
lea ecx, [esi + 0x10]
mov edx, dword [ecx + 0x10]
jbe 0x42203e
mov ecx, dword [ecx]
push 0x14
push str.last_session_crashed
call fcn.0041e0a0
add esp, 8
test eax, eax
jns 0x422056
mov esi, dword [esi + 8]
jmp 0x42205a
mov edi, esi
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x422030
cmp byte [edi + 0xd], 0
jne 0x42208b
cmp dword [edi + 0x24], 0xf
lea ecx, [edi + 0x10]
mov edx, dword [ecx + 0x10]
jbe 0x422074
mov ecx, dword [ecx]
push 0x14
push str.last_session_crashed
call fcn.0041e0a0
add esp, 8
test eax, eax
jg 0x42208b
mov al, 1
jmp 0x42208d
xor al, al
test al, al
cmove edi, dword [ebp - 0x10c]
mov dword [ebp - 0x134], edi
lea edx, [ebp - 0x30]
mov dword [ebp - 0x11c], 0
movzx eax, byte [edx]
mov ecx, eax
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0x80000000
sub ecx, 1
je 0x42211e
sub ecx, 1
je 0x422110
mov dword [ebp - 0x114], 0x80000000
sub eax, 1
je 0x42211e
sub eax, 1
je 0x422110
mov dword [ebp - 0x114], 1
jmp 0x422129
mov eax, dword [edx + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x118], eax
jmp 0x422129
mov eax, dword [edx + 8]
mov eax, dword [eax]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x138]
call fcn.00412360
test al, al
je 0x42223a
push str.last_session_crashed
lea ecx, [ebp - 0x30]
call fcn.00416640
cmp byte [eax], 4
jne 0x42223a
push str.last_session_crashed
lea ecx, [ebp - 0x30]
call fcn.00416640
mov ecx, eax
cmp byte [ecx], 4
jne 0x422331
cmp byte [ecx + 8], 0
je 0x42223a
lea ecx, [ebp - 0x30]
call fcn.00412490
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x10c], eax
lea ecx, [ebp - 0xf8]
call fcn.0040d1f0
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x10c], eax
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 0xe
push eax
mov dword [ebp - 0x98], vtable.std::ios_base.0
call fcn.00426e17
mov ecx, dword [ebp - 0x3c]
add esp, 4
cmp ecx, 7
jbe 0x422233
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422229
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422383
push ecx
push edx
call fcn.004275d6
add esp, 8
mov al, 1
jmp 0x422309
lea ecx, [ebp - 0x30]
call fcn.00412490
jmp 0x422250
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x10c], eax
lea ecx, [ebp - 0xf8]
call fcn.0040d1f0
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x10c], eax
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 0x10
push eax
mov dword [ebp - 0x98], vtable.std::ios_base.0
call fcn.00426e17
add esp, 4
mov ecx, dword [ebp - 0x3c]
cmp ecx, 7
jbe 0x422307
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4222fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422388
push ecx
push edx
call fcn.004275d6
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00427598
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042c34f
call fcn.0042c34f
call fcn.00419db0
push eax
lea ecx, [ebp - 0x158]
call fcn.0040a5b0
push eax
mov edx, str.type_must_be_boolean__but_is
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x140]
call fcn.004162b0
add esp, 4
push eax
mov edx, 0x12e
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x174]
call fcn.004105f0
add esp, 4
lea eax, [ebp - 0x174]
push 0x45d910
push eax
call fcn.00428cad
call fcn.0042c34f
call fcn.0042c34f
int3