Function at 0x409c00
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x25c]
sub esp, 0x25c
push 0xffffffffffffffff
push 0x42c474
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 0x40a0e6
test eax, eax
je 0x40a0e6
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.00401870
add esp, 8
lea eax, [ebp - 0x16c]
push 0x42d628
push eax
call fcn.00401870
add esp, 8
lea eax, [ebp + 0x38]
lea ecx, [ebp - 0x164]
push eax
call fcn.00408f70
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 0x409f8b
mov edx, dword [ebp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409f81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0e1
push ecx
push edx
call fcn.0040effd
add esp, 8
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp + 0x18]
call fcn.0040b540
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xf
call fcn.0040ca20
lea ecx, [ebp + 0x18]
mov esi, eax
call fcn.0040b560
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.0040df07
add esp, 4
mov eax, esi
jmp 0x40a0bc
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.0040f010
lea esp, [ebp + 0x25c]
pop ebp
ret 0x10
call fcn.00413c5f
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.004090e0
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00405e50
push eax
lea ecx, [ebp - 0x188]
call fcn.00403840
push 0x437418
lea eax, [ebp - 0x188]
push eax
call fcn.0041021e
int3