Function at 0x421780
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 0x448b5f
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 0x421e67
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 0x421816
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x128]
call fcn.00403110
push 0x15
push str..ogulniegaprofiles_
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0
call fcn.00402ef0
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.00402ef0
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.00402ef0
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 0x421972
mov edx, dword [ebp - 0x140]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421968
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421e87
push ecx
push edx
call fcn.00427068
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 0x4219cd
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4219c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421e87
push ecx
push edx
call fcn.00427068
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 0x421a25
mov edx, dword [ebp - 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421a1b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421e87
push ecx
push edx
call fcn.00427068
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.0040ade0
add esp, 4
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 7
call fcn.00404dc0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x144]
mov byte [ebp - 0x10d], al
cmp ecx, 7
jbe 0x421abe
mov edx, dword [ebp - 0x158]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421aae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421e8c
push ecx
push edx
call fcn.00427068
mov al, byte [ebp - 0x10d]
add esp, 8
test al, al
je 0x421e2d
push 0xb8
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00428d50
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x108]
call fcn.004230c0
cmp dword [ebp - 0xac], 0
je 0x421db7
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
push 0
mov byte [ebp - 0x30], 0
call fcn.00413d00
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x108]
call fcn.004231e0
lea ecx, [ebp - 0xf8]
call fcn.0040d960
test eax, eax
jne 0x421b51
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.0040b860
lea eax, [ebp - 0x138]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x138], xmm0
call fcn.00411f10
cmp byte [ebp - 0x30], 1
jne 0x421bfc
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 0x421bc0
nop word [eax + eax]
cmp dword [esi + 0x24], 0xf
lea ecx, [esi + 0x10]
mov edx, dword [ecx + 0x10]
jbe 0x421b9e
mov ecx, dword [ecx]
push 0x14
push str.last_session_crashed
call fcn.0041db90
add esp, 8
test eax, eax
jns 0x421bb6
mov esi, dword [esi + 8]
jmp 0x421bba
mov edi, esi
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x421b90
cmp byte [edi + 0xd], 0
jne 0x421beb
cmp dword [edi + 0x24], 0xf
lea ecx, [edi + 0x10]
mov edx, dword [ecx + 0x10]
jbe 0x421bd4
mov ecx, dword [ecx]
push 0x14
push str.last_session_crashed
call fcn.0041db90
add esp, 8
test eax, eax
jg 0x421beb
mov al, 1
jmp 0x421bed
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 0x421c7e
sub ecx, 1
je 0x421c70
mov dword [ebp - 0x114], 0x80000000
sub eax, 1
je 0x421c7e
sub eax, 1
je 0x421c70
mov dword [ebp - 0x114], 1
jmp 0x421c89
mov eax, dword [edx + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x118], eax
jmp 0x421c89
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.00411e50
test al, al
je 0x421d9a
push str.last_session_crashed
lea ecx, [ebp - 0x30]
call fcn.00416130
cmp byte [eax], 4
jne 0x421d9a
push str.last_session_crashed
lea ecx, [ebp - 0x30]
call fcn.00416130
mov ecx, eax
cmp byte [ecx], 4
jne 0x421e91
cmp byte [ecx + 8], 0
je 0x421d9a
lea ecx, [ebp - 0x30]
call fcn.00411f80
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.0040ccc0
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.004268a9
mov ecx, dword [ebp - 0x3c]
add esp, 4
cmp ecx, 7
jbe 0x421d93
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421d89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421ee3
push ecx
push edx
call fcn.00427068
add esp, 8
mov al, 1
jmp 0x421e69
lea ecx, [ebp - 0x30]
call fcn.00411f80
jmp 0x421db0
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.0040ccc0
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.004268a9
add esp, 4
mov ecx, dword [ebp - 0x3c]
cmp ecx, 7
jbe 0x421e67
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421e5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421ee8
push ecx
push edx
call fcn.00427068
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.0042702a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042bddf
call fcn.0042bddf
call fcn.004198a0
push eax
lea ecx, [ebp - 0x158]
call fcn.0040a090
push eax
mov edx, str.type_must_be_boolean__but_is
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x140]
call fcn.00415da0
add esp, 4
push eax
mov edx, 0x12e
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x174]
call fcn.004100c0
add esp, 4
lea eax, [ebp - 0x174]
push 0x45da68
push eax
call fcn.0042873d
call fcn.0042bddf
call fcn.0042bddf
int3