Function at 0x409be0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x25c]
sub esp, 0x25c
push 0xffffffffffffffff
push 0x42c284
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x439080]
xor eax, ebp
mov dword [ebp + 0x258], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0xc4], 0x42d500
call fcn.00402c20
mov eax, dword [ebp - 0xc4]
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc8], eax
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 0xc4]
add ecx, dword [eax + 4]
lea eax, [ebp - 0xc0]
push eax
call fcn.00407690
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc8], eax
lea ecx, [ebp - 0xc0]
call fcn.00402fa0
mov ecx, dword [0x43a3e0]
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x90], eax
mov eax, dword [0x43a3dc]
mov dword [ebp - 0xc0], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 0x78], 0
mov byte [ebp - 0x82], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x88], 0
lea eax, [ebp + 0x50]
mov dword [ebp - 4], 3
push eax
push 0x104
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x40a0c6
test eax, eax
je 0x40a0c6
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x17c], 0x42d618
mov dword [ebp - 0x16c], 0x42d620
call fcn.00402c20
mov eax, dword [ebp - 0x17c]
xorps xmm0, xmm0
push 0
mov byte [ebp - 4], 7
mov dword [ebp - 0x14], 9
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x17c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x180], eax
lea ecx, [ebp - 0x17c]
mov eax, dword [ebp - 0x17c]
movlpd qword [ebp - 0x174], xmm0
add ecx, dword [eax + 4]
lea eax, [ebp - 0x164]
push eax
call fcn.00407690
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x16c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x170], eax
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x17c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x180], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 4], 0xc
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x17c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x180], eax
lea ecx, [ebp - 0x164]
call fcn.00402fa0
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
lea eax, [ebp + 0x50]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.00401860
add esp, 8
lea eax, [ebp - 0x16c]
push 0x42d628
push eax
call fcn.00401860
add esp, 8
lea eax, [ebp + 0x38]
lea ecx, [ebp - 0x164]
push eax
call fcn.00408f50
lea ecx, [ebp - 0x17c]
call fcn.00404420
cmp dword [ebp + 0x4c], 7
lea eax, [ebp + 0x38]
push 0x40
cmova eax, dword [ebp + 0x38]
lea ecx, [ebp - 0xc4]
push 2
push eax
mov byte [ebp - 4], 0xe
call fcn.00407890
mov ecx, dword [ebp + 0x4c]
mov byte [ebp - 4], 4
cmp ecx, 7
jbe 0x409f6b
mov edx, dword [ebp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409f61
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0c1
push ecx
push edx
call fcn.0040ef62
add esp, 8
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp + 0x18]
call fcn.0040b4d0
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xf
call fcn.0040c980
lea ecx, [ebp + 0x18]
mov esi, eax
call fcn.0040b4f0
mov ecx, dword [ebp - 0xc4]
mov ecx, dword [ecx + 4]
mov dword [ebp + ecx - 0xc4], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov ecx, dword [ebp - 0xc4]
mov ecx, dword [ecx + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc8], eax
lea ecx, [ebp - 0xc0]
call fcn.004039d0
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc8], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0x10
push eax
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0040de6d
add esp, 4
mov eax, esi
jmp 0x40a09c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x258]
xor ecx, ebp
call fcn.0040ef75
lea esp, [ebp + 0x25c]
pop ebp
ret 0x10
call fcn.00413a5f
push 1
lea ecx, [ebp - 0x238]
call fcn.00403120
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 5
push str.std::string_getLogPath__dwRetVal___MAX_PATH
push eax
call fcn.00401250
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00403ff0
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x238]
call fcn.004090c0
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00405e90
push eax
lea ecx, [ebp - 0x188]
call fcn.00403840
push 0x4376d8
lea eax, [ebp - 0x188]
push eax
call fcn.0041001e
int3