Function at 0x1800243d0
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xe0
mov qword [rsp + 0xb0], 0xfffffffffffffffe
movaps xmmword [rsp + 0xd0], xmm6
mov r12, rcx
cmp byte [rcx + 8], 0
je 0x180024406
mov al, 1
jmp 0x18002487c
xor r13d, r13d
mov rbp, r13
lea rbx, [rcx + 0x50]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1800244b5
mov rax, qword [rbx + 0x10]
sub rax, rcx
sar rax, 3
cmp rbp, rax
jae 0x1800244b5
test rcx, rcx
je 0x180024446
mov rax, qword [rbx + 0x10]
sub rax, rcx
sar rax, 3
cmp rbp, rax
jb 0x18002444b
call sub.MSVCR80.dll__invalid_parameter_noinfo
mov rax, qword [rbx + 8]
mov rsi, qword [rax + rbp*8]
test rsi, rsi
je 0x1800244ac
mov rax, qword [rsi]
test rax, rax
je 0x18002449f
mov rcx, qword [rax + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x18002449f
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x18002449f
mov rdi, qword [rsi]
test rdi, rdi
je 0x18002449f
mov rcx, qword [rdi + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x180024497
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x18], 0xffffffffffffffff
mov byte [rdi + 0x10], r13b
mov dword [rdi + 0x14], r13d
mov edx, 1
mov rcx, rsi
call fcn.180003000
add rbp, 1
jmp 0x180024410
mov rdi, qword [rbx + 0x10]
lea rcx, [rsp + 0x70]
call fcn.180003be0
cmp qword [rbx + 8], rdi
ja 0x1800244cf
cmp rdi, qword [rbx + 0x10]
jbe 0x1800244d4
call sub.MSVCR80.dll__invalid_parameter_noinfo
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x40], xmm0
mov rdi, qword [rbx + 8]
lea rcx, [rsp + 0x50]
call fcn.180003be0
cmp qword [rbx + 8], rdi
ja 0x180024503
cmp rdi, qword [rbx + 0x10]
jbe 0x180024508
call sub.MSVCR80.dll__invalid_parameter_noinfo
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x30], xmm0
cmp rbx, qword [rsp + 0x40]
je 0x180024529
call sub.MSVCR80.dll__invalid_parameter_noinfo
mov rcx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
cmp rcx, r8
je 0x180024569
mov rax, qword [rbx + 0x10]
xor edx, edx
mov byte [rsp + 0x120], dl
sub rax, r8
sar rax, 3
lea rdx, [rax*8]
lea rdi, [rdx + rcx]
test rax, rax
jle 0x180024565
mov r9, rdx
call sub.MSVCR80.dll_memmove_s
mov qword [rbx + 0x10], rdi
mov qword [r12 + 0x48], r13
mov rcx, qword [r12 + 0x10]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x180024583
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, r13d
cmp dword [r12 + 0x70], r13d
jbe 0x180024837
lea r14, [0x180024a50]
nop
nop
mov ecx, 8
call sub.MSVCR80.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800245fa
mov ecx, 0x28
call sub.MSVCR80.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
je 0x1800245e3
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x18], 0xffffffffffffffff
mov byte [rax + 0x10], 0
mov dword [rax + 0x20], r13d
mov dword [rax + 0x14], r13d
jmp 0x1800245e6
mov rax, r13
mov qword [rdi], rax
test rax, rax
je 0x1800245fd
mov qword [rax], r12
mov rax, qword [rdi]
mov qword [rax + 8], r14
jmp 0x1800245fd
mov rdi, r13
mov qword [rsp + 0x80], rdi
mov r9, qword [rdi]
test r9, r9
je 0x180024829
cmp qword [r9 + 8], 0
je 0x180024829
lea rax, [r9 + 0x14]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
lea r8, [0x1800159e0]
xor edx, edx
xor ecx, ecx
call sub.MSVCR80.dll__beginthreadex
mov rcx, qword [rdi]
mov qword [rcx + 0x18], rax
mov rax, qword [rdi]
cmp qword [rax + 0x18], 0
jne 0x18002467e
mov qword [rax + 0x18], 0xffffffffffffffff
mov rdi, qword [rdi]
mov rcx, qword [rdi + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x180024671
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x18], 0xffffffffffffffff
mov byte [rdi + 0x10], 0
mov dword [rdi + 0x14], r13d
jmp 0x180024829
mov byte [rax + 0x10], 1
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1800246be
mov rsi, qword [rdi]
mov rcx, qword [rsi + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x1800246af
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x18], 0xffffffffffffffff
mov byte [rsi + 0x10], 0
mov dword [rsi + 0x14], r13d
mov rax, qword [rdi]
mov byte [rax + 0x10], 0
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x1800246cc
mov rcx, r13
jmp 0x1800246d7
mov rcx, qword [rbx + 0x10]
sub rcx, rdx
sar rcx, 3
test rdx, rdx
je 0x180024717
mov rax, qword [rbx + 0x18]
sub rax, rdx
sar rax, 3
cmp rcx, rax
jae 0x180024717
mov rax, qword [rbx + 0x10]
xor ecx, ecx
mov byte [rsp + 0x128], cl
mov byte [rsp + 0x130], cl
mov byte [rsp + 0x138], cl
mov qword [rax], rdi
add rax, 8
mov qword [rbx + 0x10], rax
jmp 0x180024829
mov rdi, qword [rbx + 0x10]
lea rcx, [rsp + 0x90]
call fcn.180003be0
cmp qword [rbx + 8], rdi
ja 0x180024734
cmp rdi, qword [rbx + 0x10]
jbe 0x180024739
call sub.MSVCR80.dll__invalid_parameter_noinfo
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rdi
movaps xmm6, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x30], xmm6
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x1800247b8
mov rax, qword [rbx + 0x10]
sub rax, rdi
sar rax, 3
je 0x1800247b8
lea rcx, [rsp + 0x60]
call fcn.180003be0
cmp qword [rbx + 8], rdi
ja 0x180024782
cmp rdi, qword [rbx + 0x10]
jbe 0x180024787
call sub.MSVCR80.dll__invalid_parameter_noinfo
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1800247a0
cmp rax, rbx
je 0x1800247aa
call sub.MSVCR80.dll__invalid_parameter_noinfo
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x38]
sub rsi, rdi
sar rsi, 3
jmp 0x1800247bb
mov rsi, r13
movdqa xmmword [rsp + 0xc0], xmm6
lea r9, [rsp + 0x80]
mov r8d, 1
lea rdx, [rsp + 0xc0]
mov rcx, rbx
call fcn.18003cd00
mov rdi, qword [rbx + 8]
lea rcx, [rsp + 0xa0]
call fcn.180003be0
cmp qword [rbx + 8], rdi
ja 0x1800247ff
cmp rdi, qword [rbx + 0x10]
jbe 0x180024804
call sub.MSVCR80.dll__invalid_parameter_noinfo
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rdi
lea rax, [rdi + rsi*8]
cmp rax, qword [rbx + 0x10]
ja 0x180024824
cmp rax, qword [rbx + 8]
jae 0x180024829
call sub.MSVCR80.dll__invalid_parameter_noinfo
add ebp, 1
cmp ebp, dword [r12 + 0x70]
jb 0x1800245a0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18002487a
mov rax, qword [rbx + 0x10]
sub rax, rcx
sar rax, 3
je 0x18002487a
test rcx, rcx
je 0x18002485f
mov rax, qword [rbx + 0x10]
sub rax, rcx
sar rax, 3
jne 0x180024864
call sub.MSVCR80.dll__invalid_parameter_noinfo
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
mov qword [r12 + 0x48], rcx
mov byte [r12 + 8], 1
mov al, 1
jmp 0x18002487c
xor al, al
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret