Function at 0x40c080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413922
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x41b044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x454], 0
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [0x41b484]
add esp, 0xc
lea ecx, [ecx + 0x74]
call fcn.0040f39c
test eax, eax
je 0x40c3ae
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40c3ae
lea eax, [ebp - 0x218]
push eax
push 0
push 0x416478
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40c3ae
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x50c], 0x416470
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x508]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50c]
mov dword [ebp - 0x454], 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0x50c]
mov dword [ebp - 4], 1
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 - 0x50c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x510], eax
lea eax, [ebp - 0x508]
mov ecx, eax
mov dword [ebp - 0x458], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [ebp - 0x508]
mov byte [ebp - 4], 2
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0x4c0], 0
mov byte [ebp - 0x4cb], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x41b4a8]
mov dword [ebp - 0x4c8], eax
mov eax, dword [0x41b4ac]
mov dword [ebp - 0x4bc], 0
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x4d0], 0
push 0x40
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push 0x22
push eax
call sub.MSVCP140.dll_struct__iobuf____cdecl_std::_Fiopen_unsigned_short_int_const___int__int_
add esp, 0xc
test eax, eax
je 0x40c2a8
push 1
push eax
lea ecx, [ebp - 0x508]
call fcn.0040c680
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x508]
call dword [sym.imp.MSVCP140.dll_public:_class_std::locale___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void_]
push eax
mov byte [ebp - 4], 4
call fcn.00409380
add esp, 4
mov esi, eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::codecvt_base::always_noconv_void_const]
test al, al
je 0x40c25d
mov dword [ebp - 0x4d0], 0
jmp 0x40c26f
lea ecx, [ebp - 0x508]
mov dword [ebp - 0x4d0], esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov edi, dword [ebp - 0x458]
mov byte [ebp - 4], 5
test edi, edi
je 0x40c2c3
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4153b8]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x40c2c3
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4153b8]
mov ecx, edi
call esi
jmp 0x40c2c3
mov eax, dword [ebp - 0x50c]
lea ecx, [ebp - 0x50c]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov ecx, dword [0x41b484]
mov dword [ebp - 4], 6
lea ecx, [ecx + 0x74]
call fcn.0040f418
mov edx, eax
mov dword [ebp - 0x440], 0
mov ecx, edx
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c300
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x450]
call fcn.004033f0
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00403520
add esp, 8
cmp dword [ebp - 0x424], 0x10
lea eax, [ebp - 0x438]
push 0
push dword [ebp - 0x428]
cmovae eax, dword [ebp - 0x438]
lea ecx, [ebp - 0x50c]
push eax
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
lea ecx, [ebp - 0x508]
call fcn.0040cc10
test eax, eax
jne 0x40c386
push eax
mov eax, dword [ebp - 0x50c]
lea ecx, [ebp - 0x50c]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x438]
call fcn.00403310
lea ecx, [ebp - 0x450]
call fcn.00403310
lea ecx, [ebp - 0x50c]
mov dword [ebp - 4], 0xffffffff
call fcn.00409d40
xor eax, eax
mov dword [ebx + 0x10], 0
lea ecx, [ebp - 0x218]
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c3d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.004073f0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411460
mov esp, ebp
pop ebp
ret