Function at 0x401d20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42317d
mov eax, dword fs:[0]
push eax
sub esp, 0x598
mov eax, dword [0x43304c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x428], esi
push 0
push 0x1a
lea eax, [ebp - 0x218]
mov dword [ebp - 0x42c], esi
push eax
push 0
mov dword [ebp - 0x424], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x42f6c8
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040fd36
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0040fdab
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x42f6d8
push 0x104
push eax
call fcn.0040fd36
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5a0]
mov dword [ebp - 0x424], 1
call fcn.004047e0
push ecx
push 1
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x590]
call fcn.00405210
test eax, eax
lea ecx, [ebp - 0x5a0]
mov eax, dword [ebp - 0x5a0]
mov ebx, 4
mov eax, dword [eax + 4]
je 0x401e3a
add ecx, eax
xor edx, edx
mov eax, ebx
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x401e4e
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.00407080
mov eax, dword [ebp - 0x5a0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x594], 6
jne 0x401eb9
mov edx, esi
lea ecx, [ebp - 0x5a0]
call fcn.00405d10
lea ecx, [ebp - 0x590]
call fcn.00405140
test eax, eax
jne 0x401fe7
mov eax, dword [ebp - 0x5a0]
lea ecx, [ebp - 0x5a0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00407080
jmp 0x401fe7
push ecx
lea ecx, [ebp - 0x4e8]
call fcn.004047e0
push ecx
push 1
push str.id.txt
lea ecx, [ebp - 0x4d8]
mov byte [ebp - 4], 2
call fcn.00405210
test eax, eax
lea ecx, [ebp - 0x4e8]
mov eax, dword [ebp - 0x4e8]
mov eax, dword [eax + 4]
je 0x401efb
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
cmovne ebx, eax
jmp 0x401f0f
add ecx, eax
xor ebx, ebx
cmp dword [ecx + 0x38], ebx
sete bl
lea ebx, [ebx*4 + 2]
or ebx, dword [ecx + 0xc]
push 0
push ebx
call fcn.00407080
mov eax, dword [ebp - 0x4e8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x4dc], 6
jne 0x401f71
mov edx, esi
lea ecx, [ebp - 0x4e8]
call fcn.00405d10
lea ecx, [ebp - 0x4d8]
call fcn.00405140
test eax, eax
jne 0x401f71
mov eax, dword [ebp - 0x4e8]
lea ecx, [ebp - 0x4e8]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00407080
mov eax, dword [ebp - 0x4e8]
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 - 0x4e8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x4ec], eax
lea ecx, [ebp - 0x4d8]
call fcn.00404480
mov eax, dword [ebp - 0x4e8]
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 - 0x4e8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x4ec], eax
lea eax, [ebp - 0x478]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00407798
add esp, 4
mov eax, dword [ebp - 0x5a0]
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 - 0x5a0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x5a4], eax
lea ecx, [ebp - 0x590]
call fcn.00404480
mov eax, dword [ebp - 0x5a0]
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 - 0x5a0]
mov edx, dword [eax + 4]
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0x5a4], ecx
lea eax, [ebp - 0x530]
mov dword [ebp - 4], 4
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00407798
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004082ae
mov esp, ebp
pop ebp
ret