Function at 0x1800309d0
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 - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x180133090]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov ebx, edx
mov r15, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
test ebx, ebx
je 0x180030ce4
cmp ebx, 1
jne 0x180030caf
mov r8d, 0x103
lea rdx, [rbp - 0x60]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
test eax, eax
jne 0x180030a63
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
xor r8d, r8d
lea rdx, [0x180115f18]
lea rcx, [rsp + 0x70]
call fcn.180031b40
jmp 0x180030aab
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], di
jne 0x180030a80
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call fcn.180031b40
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x80], xmm1
call fcn.1800298d0
mov qword [rsp + 0x40], rax
movabs rax, 0x7ffffffffffffffe
mov rcx, rax
mov r14, qword [rbp - 0x80]
sub rcx, r14
cmp rcx, 4
jb 0x180030d98
lea rdx, [rsp + 0x70]
mov rsi, qword [rsp + 0x70]
mov r12, qword [rbp - 0x78]
cmp r12, 8
cmovae rdx, rsi
mov qword [rsp + 0x38], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea r13, [r14 + 4]
mov ebx, 7
lea rdi, [rsp + 0x50]
cmp r13, rbx
jbe 0x180030bb0
mov rbx, r13
or rbx, 7
cmp rbx, rax
jbe 0x180030b35
mov rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x180030b64
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x180030da4
add rcx, rcx
cmp rcx, 0x1000
jb 0x180030b95
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180030da4
mov rcx, rax
call fcn.180077be0
test rax, rax
je 0x180030d9e
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
mov rdx, qword [rsp + 0x38]
jmp 0x180030bab
test rcx, rcx
je 0x180030ba9
call fcn.180077be0
mov rdi, rax
mov rdx, qword [rsp + 0x38]
jmp 0x180030bab
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], rbx
lea rbx, [r14 + r14]
mov r8, rbx
mov rcx, rdi
call fcn.18007bcb0
movabs rax, 0x67006f006c002e
mov qword [rbx + rdi], rax
xor ebx, ebx
mov word [rdi + r13*2], bx
mov rcx, qword [rsp + 0x40]
add rcx, 0x188
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
call fcn.18002c0a0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180030c43
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180030c3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180030d9e
call fcn.180077bd0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9, r15
lea r8, [0x180031210]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
nop
cmp r12, 8
jb 0x180030caf
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x180030ca7
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180030d40
mov rcx, rsi
call fcn.180077bd0
mov eax, 1
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.180077bb0
lea r11, [rsp + 0x2c0]
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
call fcn.1800298d0
mov ecx, edi
xchg byte [rax + 2], cl
lea rcx, str.Detaching_from_process._Goodbye.
call fcn.1800359d0
call fcn.1800298d0
lea rbx, [rax + 0x188]
lea rcx, [rbx + 8]
call fcn.18002bed0
test rax, rax
jne 0x180030caf
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
add rdx, rbx
mov eax, 4
cmp qword [rdx + 0x48], rdi
cmovne eax, edi
or eax, dword [rdx + 0x10]
and eax, 0x15
or eax, 2
mov dword [rdx + 0x10], eax
and eax, dword [rdx + 0x14]
jne 0x180030d46
jmp 0x180030caf
call fcn.18008a744
int3
test al, 4
je 0x180030d53
lea rbx, str.ios_base::badbit_set
jmp 0x180030d67
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.180022130
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.180021e10
lea rdx, [0x1801314a0]
lea rcx, [rsp + 0x70]
call fcn.18007bbd8
nop
call fcn.1800018b0
nop
call fcn.18008a744
int3
call fcn.180001c80
int3