Function at 0x1400411e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1401f2308]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, rcx
xor r13d, r13d
mov r15d, r13d
mov dword [rsp + 0x40], r13d
movzx r8d, byte [rcx + 0x20]
lea rdx, [rbp - 0x10]
call fcn.140041bf0
nop
cmp qword [rax + 0x18], 0x10
jb 0x140041239
mov rax, qword [rax]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowA]
mov rdi, rax
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x140041285
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041280
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041280
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027f70
mov qword [rbp], r13
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x10], 0
test rdi, rdi
je 0x140041535
cmp byte [rsi + 0x21], 0
jne 0x140041506
mov ebx, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xbb8
mov dword [rsp + 0x20], 0xa
xor r9d, r9d
xor r8d, r8d
mov edx, dword [0x1401fbcf0]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x140041321
nop word [rax + rax]
inc ebx
cmp ebx, 5
je 0x140041321
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xbb8
mov dword [rsp + 0x20], 0xa
xor r9d, r9d
xor r8d, r8d
mov edx, dword [0x1401fbcf0]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
je 0x1400412e0
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
mov dword [rsp + 0x44], r13d
movzx eax, byte [rsi + 0x20]
lea rcx, [0x1401a8334]
lea r14, [0x1401a8338]
test al, al
cmovne r14, rcx
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x140041360
movabs rcx, 0x7fffffffffffffff
mov r12, qword [rsi + 0x10]
mov rax, rcx
sub rax, r12
cmp rax, rbx
jb 0x1400416bb
mov eax, socket
mov qword [rsp + 0x48], rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400413a5
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
mov eax, socket
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r13
mov qword [rbp + 8], r13
lea r13, [r12 + rbx]
mov edi, reloc.WS2_32.dll_ntohs
lea r15, [rbp - 0x10]
cmp r13, rdi
jbe 0x1400413ef
mov rdi, r13
or rdi, 0xf
cmp rdi, rcx
jbe 0x1400413d7
mov rdi, rcx
jmp 0x1400413df
cmp rdi, 0x16
cmovb rdi, rax
lea rcx, [rdi + 1]
call fcn.14001e4e0
mov r15, rax
mov qword [rbp - 0x10], rax
mov qword [rbp], r13
mov qword [rbp + 8], rdi
mov r8, rbx
mov rdx, r14
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [r15 + rbx]
mov r8, r12
mov rdx, qword [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcpy
mov byte [r15 + r13], 0
mov r15d, dword [rsp + 0x40]
or r15d, 2
mov dword [rsp + 0x40], r15d
and r15d, 0xfffffffd
mov dword [rsp + 0x40], r15d
or r15d, 1
mov dword [rsp + 0x40], r15d
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
lea r8, [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetClassInfoExA]
mov ebx, eax
and r15d, 0xfffffffe
mov dword [rsp + 0x40], r15d
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x140041497
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041492
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400414ff
call fcn.140027f70
xor r13d, r13d
mov qword [rbp], r13
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x10], r13b
test ebx, ebx
je 0x140041535
mov edi, dword [rsp + 0x44]
inc edi
mov dword [rsp + 0x44], edi
cmp edi, 0xa
je 0x140041506
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [rsi + 0x20]
lea r14, [0x1401a8338]
test al, al
lea rax, [0x1401a8334]
cmovne r14, rax
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x1400414f0
jmp 0x14004136a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140160900
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, rsi
call fcn.1400417a0
movzx r8d, byte [rsi + 0x20]
lea rdx, [rbp + 0x10]
mov rcx, rsi
call fcn.140041bf0
nop
mov qword [rsp + 0x50], 0x50
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x68], r13
lea rax, [0x1400416d0]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae rax, qword [rbp + 0x10]
mov qword [rbp - 0x70], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov qword [rsi + 0x48], 0xffffffffffffffff
mov ecx, reloc.WS2_32.dll_recv
call fcn.1401610ec
mov qword [rax], rsi
lea rcx, [0x140042380]
mov qword [rax + 8], rcx
mov qword [rsp + 0x48], rax
or r15d, 4
mov dword [rsp + 0x40], r15d
lea rcx, [rbp - 8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r13d
mov r9, rax
lea r8, [0x14004de30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x10], rax
test rax, rax
je 0x1400416ab
mov qword [rsp + 0x48], r13
and r15d, 0xfffffffb
mov dword [rsp + 0x40], r15d
cmp dword [rsi + 0x60], 0
je 0x140041614
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xorps xmm0, xmm0
movaps xmm1, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x10], xmm0
movups xmmword [rsi + 0x58], xmm1
cmp dword [rbp - 8], 0
je 0x140041631
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
cmp qword [rsi + 0x48], 0xffffffffffffffff
jne 0x140041652
nop dword [rax + rax]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rsi + 0x48], 0xffffffffffffffff
je 0x140041640
mov byte [rsi + 0x21], 0
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x140041694
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004168f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004168f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027f70
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x10], 0
mov al, 1
jmp 0x140041508
mov dword [rbp - 8], r13d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.14001e550
int3