Function at 0x4013e0
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 0x404366
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1f8
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x204]
call fcn.00402b70
mov edi, eax
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 0xe
jb 0x401485
lea eax, [ecx + 0xe]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x40146c
mov eax, dword [edi]
push 0xe
lea esi, [eax + ecx]
push str.tempScript.ps1
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xe], 0
jmp 0x4014a4
push 0xe
push str.tempScript.ps1
mov byte [ebp - 0x1ec], 0
mov ecx, edi
push dword [ebp - 0x1ec]
push 0xe
call fcn.00403300
mov edi, eax
mov dword [ebp - 0x128], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x124], 0
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x138], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x128], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1f0]
cmp ecx, 0x10
jb 0x40152a
mov edx, dword [ebp - 0x204]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401520
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401520
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004035fa
add esp, 8
push 0xb0
lea eax, [ebp - 0x1e8]
mov dword [ebp - 0x1f4], 0
push 0
push eax
mov dword [ebp - 0x1f0], 0xf
mov byte [ebp - 0x204], 0
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x124], 0x10
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x1e8]
cmovae eax, dword [ebp - 0x138]
push eax
call fcn.00402930
mov eax, dword [ebp - 0x1e8]
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 - 0x1e8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1ec], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x198], 0
je 0x4015de
lea ecx, [ebp - 0x1e8]
call fcn.00402ea0
lea ecx, [ebp - 0x1e4]
call fcn.00402e20
test eax, eax
jne 0x4015de
push eax
mov eax, dword [ebp - 0x1e8]
lea ecx, [ebp - 0x1e8]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x1e8]
call fcn.00401220
mov ecx, dword [ebp - 0x124]
cmp ecx, 0x10
jb 0x401625
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40161b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40161b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004035fa
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004035bc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret