Function at 0x1400226a0
Capabilities:
Create thread
Resume thread

Disassembly:
push rbp
push rsi
push r12
sub rsp, 0x30
xor r12d, r12d
cmp dword [rcx], 0x70
mov rbp, rdx
mov rsi, rcx
je 0x1400226ce
lea ecx, [r12 + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r12d
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret
mov r8d, dword [rcx + 4]
test r8b, 0x4f
je 0x1400226ef
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r12d
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rdi
mov rdi, qword [rcx + 0x10]
mov rdx, r12
test rdi, rdi
je 0x140022713
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
mov rdx, rcx
mov rdi, qword [rsi + 0x18]
test rdi, rdi
je 0x14002272a
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rdx, rcx
mov rdi, qword [rsi + 0x20]
test rdi, rdi
je 0x140022741
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rdx, rcx
mov rdi, qword [rsi + 0x28]
test rdi, rdi
je 0x140022758
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rdx, rcx
test r8b, 1
je 0x140022775
mov rdi, qword [rsi + 0x48]
test rdi, rdi
je 0x140022775
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rdx, rcx
lea rcx, [rdx + 0x70]
call fcn.14002e3a0
mov rbx, rax
test rax, rax
je 0x14002292b
mov ecx, dword [rsi]
lea r8, [rax + 0x70]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov rcx, qword [rsi + 8]
mov qword [rax + 8], rcx
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400227e1
mov rdx, r8
mov qword [rax + 0x10], r8
sub rdx, rcx
nop word [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rdx + rcx - 1], al
test al, al
jne 0x1400227c0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasb al, byte [rdi]
not rcx
add r8, rcx
jmp 0x1400227e5
mov qword [rax + 0x10], r12
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140022821
mov rdx, r8
mov qword [rbx + 0x18], r8
sub rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rdx + rcx - 1], al
test al, al
jne 0x140022800
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasb al, byte [rdi]
not rcx
add r8, rcx
jmp 0x140022825
mov qword [rbx + 0x18], r12
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140022861
mov rdx, r8
mov qword [rbx + 0x20], r8
sub rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rdx + rcx - 1], al
test al, al
jne 0x140022840
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasb al, byte [rdi]
not rcx
add r8, rcx
jmp 0x140022865
mov qword [rbx + 0x20], r12
mov rdx, qword [rsi + 0x28]
test rdx, rdx
je 0x1400228a1
mov rcx, r8
mov qword [rbx + 0x28], r8
sub rcx, rdx
nop dword [rax + rax]
movzx eax, byte [rdx]
inc rdx
mov byte [rcx + rdx - 1], al
test al, al
jne 0x140022880
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasb al, byte [rdi]
not rcx
add r8, rcx
jmp 0x1400228a5
mov qword [rbx + 0x28], r12
test byte [rsi + 4], 1
je 0x1400228d5
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x1400228d1
mov qword [rbx + 0x48], r8
sub r8, rcx
nop dword [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [r8 + rcx - 1], al
test al, al
jne 0x1400228c0
jmp 0x1400228d5
mov qword [rbx + 0x48], r12
lea rax, [rsp + 0x50]
mov r9, rbx
mov r8, rbp
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140022923
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x14002292e
mov rcx, rbx
call fcn.14002e3f0
mov eax, r12d
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret