Function at 0x420920
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 0x447ecf
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x168
mov eax, dword [0x45e068]
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 0x449300
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edx, dword [ebp - 0x10c]
test edx, edx
je 0x421007
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 0x4209b6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x128]
call fcn.004030e0
push 0x15
push str..ogulniegaprofiles_
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0
call fcn.00402ed0
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.00402ed0
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.00402ed0
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, 8
jb 0x420b12
mov edx, dword [ebp - 0x140]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420b08
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421027
push ecx
push edx
call fcn.004264a3
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, 8
jb 0x420b6d
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420b63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421027
push ecx
push edx
call fcn.004264a3
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, 8
jb 0x420bc5
mov edx, dword [ebp - 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420bbb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421027
push ecx
push edx
call fcn.004264a3
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.0040a810
add esp, 4
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 7
call fcn.00404d80
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x144]
mov byte [ebp - 0x10d], al
cmp ecx, 8
jb 0x420c5e
mov edx, dword [ebp - 0x158]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420c4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42102c
push ecx
push edx
call fcn.004264a3
mov al, byte [ebp - 0x10d]
add esp, 8
test al, al
je 0x420fcd
push 0xb8
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004281a0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x108]
call fcn.00422260
cmp dword [ebp - 0xac], 0
je 0x420f57
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
push 0
mov byte [ebp - 0x30], 0
call fcn.00413470
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x108]
call fcn.004223f0
lea ecx, [ebp - 0xf8]
call fcn.0040d3e0
test eax, eax
jne 0x420cf1
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.0040b290
lea eax, [ebp - 0x138]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x138], xmm0
call fcn.00411640
cmp byte [ebp - 0x30], 1
jne 0x420d9c
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 0x420d60
nop word [eax + eax]
cmp dword [esi + 0x24], 0x10
lea ecx, [esi + 0x10]
mov edx, dword [ecx + 0x10]
jb 0x420d3e
mov ecx, dword [ecx]
push 0x14
push str.last_session_crashed
call fcn.0041cf40
add esp, 8
test eax, eax
jns 0x420d56
mov esi, dword [esi + 8]
jmp 0x420d5a
mov edi, esi
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x420d30
cmp byte [edi + 0xd], 0
jne 0x420d8b
cmp dword [edi + 0x24], 0x10
lea ecx, [edi + 0x10]
mov edx, dword [ecx + 0x10]
jb 0x420d74
mov ecx, dword [ecx]
push 0x14
push str.last_session_crashed
call fcn.0041cf40
add esp, 8
test eax, eax
jg 0x420d8b
mov al, 1
jmp 0x420d8d
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 0x420e1e
sub ecx, 1
je 0x420e10
mov dword [ebp - 0x114], 0x80000000
sub eax, 1
je 0x420e1e
sub eax, 1
je 0x420e10
mov dword [ebp - 0x114], 1
jmp 0x420e29
mov eax, dword [edx + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x118], eax
jmp 0x420e29
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.00411580
test al, al
je 0x420f3a
push str.last_session_crashed
lea ecx, [ebp - 0x30]
call fcn.00415b40
cmp byte [eax], 4
jne 0x420f3a
push str.last_session_crashed
lea ecx, [ebp - 0x30]
call fcn.00415b40
mov ecx, eax
cmp byte [ecx], 4
jne 0x421031
cmp byte [ecx + 8], 0
je 0x420f3a
lea ecx, [ebp - 0x30]
call fcn.004116b0
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.0040c6d0
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.00425bf4
mov ecx, dword [ebp - 0x3c]
add esp, 4
cmp ecx, 8
jb 0x420f33
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420f29
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421083
push ecx
push edx
call fcn.004264a3
add esp, 8
mov al, 1
jmp 0x421009
lea ecx, [ebp - 0x30]
call fcn.004116b0
jmp 0x420f50
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.0040c6d0
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.00425bf4
add esp, 4
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x421007
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420ffd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421088
push ecx
push edx
call fcn.004264a3
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.00426465
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042b22f
call fcn.0042b22f
call fcn.00419020
push eax
lea ecx, [ebp - 0x158]
call fcn.00409ab0
push eax
mov edx, str.type_must_be_boolean__but_is
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x140]
call fcn.004157b0
add esp, 4
push eax
mov edx, 0x12e
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x174]
call fcn.0040f9c0
add esp, 4
lea eax, [ebp - 0x174]
push 0x45c770
push eax
call fcn.00427b94
call fcn.0042b22f
call fcn.0042b22f
int3