Function at 0x421120
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 0x447fe2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x258
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 - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0
push 0
push 0x449300
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edx, dword [ebp - 0x24]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x80], 0
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x7c], 0
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4211a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.004030e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x80]
test ecx, ecx
jne 0x421225
mov ecx, dword [ebp - 0x7c]
cmp ecx, 8
jb 0x421207
mov edx, dword [ebp - 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4211fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421d1b
push ecx
push edx
call fcn.004264a3
add esp, 8
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
mov edi, 0x7ffffffe
mov eax, edi
sub eax, ecx
cmp eax, 0x15
jb 0x421d20
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x90]
push 0x15
cmovae eax, dword [ebp - 0x90]
push str..ogulniegaprofiles_
push ecx
push eax
push ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x78]
call fcn.0040a6d0
push 6
push str.stable
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.00402ed0
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x64]
cmp ecx, 8
jb 0x4212e7
mov edx, dword [ebp - 0x78]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4212dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421d25
push ecx
push edx
call fcn.004264a3
add esp, 8
xor eax, eax
mov dword [ebp - 0x68], 0
push 0xd
xorps xmm0, xmm0
mov dword [ebp - 0x64], 7
push str.profile.json
lea ecx, [ebp - 0x58]
mov word [ebp - 0x78], ax
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
call fcn.004030e0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x40]
mov byte [ebp - 0x24], 0
lea ecx, [ebp - 0x238]
push dword [ebp - 0x24]
call fcn.0040a810
add esp, 4
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 5
call fcn.004051b0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x224]
cmp ecx, 8
jb 0x421386
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42137c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421d2a
push ecx
push edx
call fcn.004264a3
add esp, 8
xorps xmm0, xmm0
mov byte [ebp - 0x268], 3
push 0x18
movq qword [ebp - 0x260], xmm0
movlpd qword [ebp - 0x28], xmm0
call fcn.00426473
mov esi, eax
add esp, 4
lea eax, [ebp - 0x59]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 6
xorps xmm0, xmm0
push 0x14
movups xmmword [esi], xmm0
push str.last_session_crashed
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0040a440
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x268]
mov dword [ebp - 0x258], eax
xorps xmm0, xmm0
movq qword [ebp - 0x248], xmm0
mov byte [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0x260], esi
mov byte [ebp - 0x254], 1
mov byte [ebp - 0x250], 4
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 1
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x268]
push eax
push ecx
lea ecx, [ebp - 0x220]
call fcn.00422230
lea eax, [ebp - 0x208]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x220]
push ecx
sub esp, 8
lea ecx, [ebp - 0x150]
call fcn.00422850
push 0x421d60
push 1
push 0x18
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xa
push eax
call fcn.0042680a
push 0x421d60
push 2
push 0x18
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 0xb
push eax
call fcn.0042680a
mov edx, dword [ebp - 0x30]
mov eax, edi
mov esi, dword [ebp - 0x48]
sub eax, edx
cmp eax, esi
jb 0x421d2f
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push esi
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x238]
call fcn.0040a6d0
sub esp, 0xc
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x208]
push eax
call fcn.00422260
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov esi, dword [ecx + eax + 0xc]
mov eax, dword [ebp - 0x208]
and esi, 6
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 - 0x208]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x20c], eax
lea ecx, [ebp - 0x1f8]
call fcn.0040c6d0
mov eax, dword [ebp - 0x208]
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 - 0x208]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x20c], eax
lea eax, [ebp - 0x198]
mov byte [ebp - 4], 0xd
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00425bf4
mov byte [ebp - 4], 0xb
add esp, 4
mov ecx, dword [ebp - 0x224]
cmp ecx, 8
jb 0x4215b5
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4215ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421d34
push ecx
push edx
call fcn.004264a3
add esp, 8
test esi, esi
je 0x421736
push 0xb0
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.004281a0
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov esi, dword [ebp - 0x48]
sub edi, edx
cmp edi, esi
jb 0x421d39
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push esi
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x78]
call fcn.0040a6d0
sub esp, 8
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x140]
push 2
push eax
call fcn.0040ca40
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x64]
cmp ecx, 8
jb 0x42165f
mov edx, dword [ebp - 0x78]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421655
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421d3e
push ecx
push edx
call fcn.004264a3
add esp, 8
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
cmp dword [ebp - 0xf0], eax
je 0x4216c4
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x140]
call fcn.00422550
lea ecx, [ebp - 0x13c]
call fcn.0040d3e0
test eax, eax
jne 0x4216c4
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x140]
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
mov eax, dword [ebp - 0x140]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x144], eax
lea ecx, [ebp - 0x13c]
call fcn.0040c6d0
mov eax, dword [ebp - 0x140]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x144], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd8], vtable.std::ios_base.0
jmp 0x421c48
push 0xb8
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.004281a0
mov edx, dword [ebp - 0x30]
mov eax, edi
mov esi, dword [ebp - 0x48]
sub eax, edx
add esp, 0xc
cmp eax, esi
jb 0x421d43
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push esi
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x238]
call fcn.0040a6d0
sub esp, 0xc
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x208]
push eax
call fcn.00422260
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x224]
cmp ecx, 8
jb 0x4217e4
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4217da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421d48
push ecx
push edx
call fcn.004264a3
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
cmp dword [ebp - 0x1ac], eax
je 0x421bdb
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x68]
push eax
mov byte [ebp - 0x70], al
call fcn.00413470
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x208]
call fcn.004223f0
lea ecx, [ebp - 0x1f8]
call fcn.0040d3e0
test eax, eax
jne 0x421867
mov eax, dword [ebp - 0x208]
lea ecx, [ebp - 0x208]
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
mov eax, dword [ebp - 0x24]
xorps xmm0, xmm0
movq qword [ebp - 0x210], xmm0
mov byte [ebp - 0x28], 1
mov esi, dword [ebp - 0x28]
mov byte [ebp - 0x218], 4
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], eax
push str.last_session_crashed
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x18
call fcn.00415b40
mov edx, eax
mov byte [ebp - 4], 0x17
mov cl, byte [edx]
mov byte [edx], 4
mov eax, dword [edx + 8]
mov byte [ebp - 0x218], cl
mov ecx, dword [edx + 0xc]
mov dword [edx + 8], esi
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x20c], ecx
lea ecx, [ebp - 0x218]
mov dword [edx + 0xc], esi
mov dword [ebp - 0x210], eax
call fcn.004116b0
push 0xb0
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.004281a0
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov esi, dword [ebp - 0x48]
sub edi, edx
cmp edi, esi
jb 0x421d4d
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push esi
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x220]
call fcn.0040a6d0
sub esp, 8
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x140]
push 2
push eax
call fcn.0040ca40
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x20c]
cmp ecx, 8
jb 0x421985
mov edx, dword [ebp - 0x220]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42197b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421d52
push ecx
push edx
call fcn.004264a3
add esp, 8
xor eax, eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 7
mov word [ebp - 0x220], ax
cmp dword [ebp - 0xf0], eax
je 0x4219f0
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x140]
call fcn.00422550
lea ecx, [ebp - 0x13c]
call fcn.0040d3e0
test eax, eax
jne 0x4219f0
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x140]
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
mov eax, dword [ebp - 0x140]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x144], eax
lea ecx, [ebp - 0x13c]
call fcn.0040c6d0
mov eax, dword [ebp - 0x140]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x144], eax
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0x1c
push eax
mov dword [ebp - 0xd8], vtable.std::ios_base.0
call fcn.00425bf4
add esp, 4
lea ecx, [ebp - 0x70]
call fcn.004116b0
jmp 0x421bd4
mov dword [ebp - 4], 0x14
mov eax, dword [ebp - 0x208]
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 - 0x208]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x20c], eax
lea ecx, [ebp - 0x1f8]
call fcn.0040c6d0
mov eax, dword [ebp - 0x208]
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 - 0x208]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x20c], eax
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x198]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.00425bf4
add esp, 4
lea ecx, [ebp - 0x150]
call fcn.004116b0
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x421c96
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421c8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421d1b
push ecx
push edx
call fcn.004264a3
add esp, 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x421ccc
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421cc2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421d1b
push ecx
push edx
call fcn.004264a3
add esp, 8
mov ecx, dword [ebp - 0x7c]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x421207
mov edx, dword [ebp - 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4211fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4211fd
call fcn.0042b22f
call fcn.00401330
call fcn.0042b22f
call fcn.0042b22f
call fcn.00401330
call fcn.0042b22f
call fcn.00401330
call fcn.0042b22f
call fcn.00401330
call fcn.0042b22f
call fcn.00401330
call fcn.0042b22f
call fcn.00401330
int3