Function at 0x140002630
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rdx, qword [0x14003fb98]
xor ebp, ebp
mov rsi, rcx
mov eax, ebp
mov r8, qword [rdx + 8]
test r8, r8
je 0x14000265e
mov r8, qword [r8 + 8]
inc eax
test r8, r8
jne 0x140002653
mov ecx, dword [0x140032af0]
test ecx, ecx
jg 0x140002670
mov dword [0x140032af0], eax
jmp 0x140002684
cmp ecx, eax
mov r8d, 1
cmovg ecx, r8d
mov eax, ecx
mov dword [0x140032af0], ecx
cmp qword [0x1400406f0], rbp
je 0x1400026f5
mov rcx, qword [0x140040788]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1400406f0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140040788]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140040700]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400406f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [0x14003fb98]
mov eax, dword [0x140032af0]
mov qword [0x140040788], rbp
mov qword [0x140040700], rbp
mov qword [0x1400406f0], rbp
test eax, eax
js 0x140002718
mov ecx, ebp
je 0x14000270f
nop dword [rax]
mov rdx, qword [rdx + 8]
test rdx, rdx
je 0x140002718
inc ecx
cmp ecx, eax
jne 0x140002700
mov rbx, qword [rdx + 0x10]
mov rdi, qword [rdx]
jmp 0x140002720
mov rbx, qword [rsp + 0x78]
mov rdi, rbp
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140002490
cmp qword [0x1400406f0], rbp
jne 0x140002896
cmp qword [0x1400406e8], rbp
jne 0x140002896
xor r9d, r9d
mov qword [rsp + 0x70], r14
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140040708], rbp
xorps xmm0, xmm0
mov qword [0x1400406e8], rax
lea r14, [0x1400404e0]
mov dword [0x14004071c], ebp
movups xmmword [0x140040750], xmm0
movups xmmword [0x140040760], xmm0
movups xmmword [0x140040770], xmm0
test rbx, rbx
je 0x1400027e2
cmp rbx, 0x7fffffff
jbe 0x1400027a7
mov word [0x1400404e0], bp
jmp 0x1400027e2
mov edx, 0x7ffffffe
mov rcx, r14
sub rdx, rbx
sub rdi, r14
lea rax, [rdx + rbx]
test rax, rax
je 0x1400027d4
movzx eax, word [rdi + rcx]
test ax, ax
je 0x1400027d4
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x1400027b5
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [0x140040788], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140040700], rax
mov r9, r14
lea r8, [0x140007d20]
xor edx, edx
lea rax, [rsp + 0x78]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x1400406e8]
mov edx, 0xffffffff
mov qword [0x1400406f0], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x140040784], ebp
mov r14, qword [rsp + 0x70]
jne 0x140002880
mov rcx, qword [0x140040788]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140040700]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140040788], rbp
mov qword [0x140040700], rbp
mov rcx, qword [0x1400406e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400406e8], rbp
jmp 0x1400028a8
mov edx, dword [0x140032af0]
mov rcx, qword [0x14003fb98]
call fcn.140006960
mov edi, dword [0x14004072c]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, qword [0x14003fbc8]
mov edx, 0x5c
mov rbx, rax
mov dword [rsp + 0x40], 0xcc0020
lea eax, [rdi + rdi*4]
lea eax, [rax*2 + 0x42]
mov dword [rsp + 0x38], eax
lea r9d, [rdx - 0x53]
mov dword [rsp + 0x30], 0x5c
lea r8d, [rdx - 0x33]
mov qword [rsp + 0x28], rcx
mov rcx, rbx
mov dword [rsp + 0x20], 0xa
call qword [sym.imp.GDI32.dll_BitBlt]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rbx, qword [rsp + 0x80]
mov eax, edi
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret