Function at 0x402880
Capabilities:
Allocate or change rwx memory
Check for time delay via queryperformancecounter
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0xf0], 0
movq qword [ebp - 0xf8], xmm0
lea eax, [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x14], 0x306678
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], 4
mov dword [ebp - 0xf0], esi
push 5
push str.1.txt
lea ecx, [ebp - 0x110]
mov dword [ebp - 4], esi
movups xmmword [ebp - 0x110], xmm0
mov dword [ebp - 0x100], esi
mov dword [ebp - 0xfc], esi
call fcn.004012a0
push 0xb8
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 1
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x110]
cmp dword [ebp - 0xfc], 0xf
lea ecx, [ebp - 0xe4]
cmova eax, dword [ebp - 0x110]
push 1
push 0x40
push 1
push eax
call fcn.00401490
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xe8], eax
lea ecx, [ebp - 0xe4]
mov eax, dword [ebp - 0xe4]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::good_void_const]
mov byte [ebp - 0xe5], al
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xe8], eax
lea ecx, [ebp - 0xd4]
call fcn.00401870
lea ecx, [ebp - 0xcc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x74]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0xfc]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x402a14
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402a0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402a0a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402bdc
add esp, 8
cmp byte [ebp - 0xe5], 0
jne 0x402a32
push 0x401360
push str.1.txt_does_not_exist._Exiting.
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x402abb
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x24]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
call esi
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x18]
sbb edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x2c]
shld esi, eax, 4
shl eax, 4
sub eax, dword [ebp - 0x2c]
sbb esi, dword [ebp - 0x28]
shld esi, eax, 2
shl eax, 2
cmp edi, esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jl 0x402a48
jg 0x402a8e
cmp dword [ebp - 0xec], eax
jb 0x402a48
push 0x40
push 0x3000
push 4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0xf0], esi
test esi, esi
jne 0x402ad2
push 0x401360
push str.VirtualAlloc_failed
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00401010
add esp, 8
mov ecx, eax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edi, 1
jmp 0x402adb
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
call esi
xor edi, edi
test esi, esi
je 0x402aed
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402bea
mov esp, ebp
pop ebp
ret