Function at 0x422660
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 0x449bff
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x168
mov eax, dword [0x460080]
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 0x44b300
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edx, dword [ebp - 0x10c]
test edx, edx
je 0x422d47
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 0x4226f6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x128]
call fcn.004032e0
push 0x15
push str..ogulniegaprofiles_
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0
call fcn.004030c0
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.004030c0
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.004030c0
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 0x422852
mov edx, dword [ebp - 0x140]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422848
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422d67
push ecx
push edx
call fcn.004281e7
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 0x4228ad
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4228a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422d67
push ecx
push edx
call fcn.004281e7
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 0x422905
mov edx, dword [ebp - 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4228fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422d67
push ecx
push edx
call fcn.004281e7
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.0040b640
add esp, 4
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 7
call fcn.00404f90
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x144]
mov byte [ebp - 0x10d], al
cmp ecx, 7
jbe 0x42299e
mov edx, dword [ebp - 0x158]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42298e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422d6c
push ecx
push edx
call fcn.004281e7
mov al, byte [ebp - 0x10d]
add esp, 8
test al, al
je 0x422d0d
push 0xb8
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00429ed0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x108]
call fcn.00424100
cmp dword [ebp - 0xac], 0
je 0x422c97
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
push 0
mov byte [ebp - 0x30], 0
call fcn.00414550
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x108]
call fcn.00424220
lea ecx, [ebp - 0xf8]
call fcn.0040e1d0
test eax, eax
jne 0x422a31
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.0040c0c0
lea eax, [ebp - 0x138]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x138], xmm0
call fcn.00412760
cmp byte [ebp - 0x30], 1
jne 0x422adc
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 0x422aa0
nop word [eax + eax]
cmp dword [esi + 0x24], 0xf
lea ecx, [esi + 0x10]
mov edx, dword [ecx + 0x10]
jbe 0x422a7e
mov ecx, dword [ecx]
push 0x14
push str.last_session_crashed
call fcn.0041e3e0
add esp, 8
test eax, eax
jns 0x422a96
mov esi, dword [esi + 8]
jmp 0x422a9a
mov edi, esi
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x422a70
cmp byte [edi + 0xd], 0
jne 0x422acb
cmp dword [edi + 0x24], 0xf
lea ecx, [edi + 0x10]
mov edx, dword [ecx + 0x10]
jbe 0x422ab4
mov ecx, dword [ecx]
push 0x14
push str.last_session_crashed
call fcn.0041e3e0
add esp, 8
test eax, eax
jg 0x422acb
mov al, 1
jmp 0x422acd
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 0x422b5e
sub ecx, 1
je 0x422b50
mov dword [ebp - 0x114], 0x80000000
sub eax, 1
je 0x422b5e
sub eax, 1
je 0x422b50
mov dword [ebp - 0x114], 1
jmp 0x422b69
mov eax, dword [edx + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x118], eax
jmp 0x422b69
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.004126a0
test al, al
je 0x422c7a
push str.last_session_crashed
lea ecx, [ebp - 0x30]
call fcn.00416980
cmp byte [eax], 4
jne 0x422c7a
push str.last_session_crashed
lea ecx, [ebp - 0x30]
call fcn.00416980
mov ecx, eax
cmp byte [ecx], 4
jne 0x422d71
cmp byte [ecx + 8], 0
je 0x422c7a
lea ecx, [ebp - 0x30]
call fcn.004127d0
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.0040d530
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.00427a28
mov ecx, dword [ebp - 0x3c]
add esp, 4
cmp ecx, 7
jbe 0x422c73
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422c69
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422dc3
push ecx
push edx
call fcn.004281e7
add esp, 8
mov al, 1
jmp 0x422d49
lea ecx, [ebp - 0x30]
call fcn.004127d0
jmp 0x422c90
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.0040d530
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.00427a28
add esp, 4
mov ecx, dword [ebp - 0x3c]
cmp ecx, 7
jbe 0x422d47
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422d3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422dc8
push ecx
push edx
call fcn.004281e7
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.004281a9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042cf5f
call fcn.0042cf5f
call fcn.0041a0f0
push eax
lea ecx, [ebp - 0x158]
call fcn.0040a8f0
push eax
mov edx, str.type_must_be_boolean__but_is
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x140]
call fcn.004165f0
add esp, 4
push eax
mov edx, 0x12e
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x174]
call fcn.00410930
add esp, 4
lea eax, [ebp - 0x174]
push 0x45ea50
push eax
call fcn.004298bd
call fcn.0042cf5f
call fcn.0042cf5f
int3