Function at 0x6e0f50
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0xb0
mov rbp, rsp
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xc0], rcx
mov dword [rbp + 0xc8], edx
mov qword [rbp + 0xd0], r8
mov dword [rbp + 0xd8], r9d
mov rcx, qword [rbp + 0xc0]
call fcn.0040e210
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0xc0]
lea r8, [0x006e1338]
call fcn.004102f0
mov dword [rbp + 0x5c], 0
cmp qword [rbp + 0x68], 0
je 0x6e0fbe
mov rax, qword [rbp + 0x68]
mov eax, dword [rax - 4]
mov dword [rbp + 0x5c], eax
mov eax, dword [rbp + 0x5c]
add eax, eax
movsxd rax, eax
mov qword [rbp + 0x78], rax
mov rcx, qword [rbp + 0xd0]
xor rdx, rdx
mov r8, qword [rbp + 0x78]
mov r9d, 0x1000
mov dword [rsp + 0x20], 4
call qword [0x009bae20]
mov qword [rbp + 0x98], rax
cmp qword [rbp + 0x98], 0
jne 0x6e100e
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x94], eax
jmp 0x6e1238
mov byte [rbp + 0xa7], 1
nop
mov qword [rbp + 0x70], 0
lea rcx, [rbp + 0x68]
call fcn.0040e9f0
mov rcx, qword [rbp + 0xd0]
mov rdx, qword [rbp + 0x98]
mov r8, rax
mov r9, qword [rbp + 0x78]
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
call qword [0x009bae30]
test eax, eax
setne al
test al, al
jne 0x6e1070
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x94], eax
xor rcx, rcx
mov rdx, qword [rbp + 0x48]
call fcn.006e1290
jmp 0x6e1238
mov rax, qword [rbp + 0x70]
cmp rax, qword [rbp + 0x78]
je 0x6e1096
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x94], eax
xor rcx, rcx
mov rdx, qword [rbp + 0x48]
call fcn.006e1290
jmp 0x6e1238
mov rcx, qword [rbp + 0xd0]
mov edx, dword [rbp + 0xc8]
lea r8, [0x006e133c]
call fcn.006e0bd0
mov qword [rbp + 0x60], rax
cmp qword [rbp + 0x60], 0
jne 0x6e10d5
mov dword [rbp + 0x94], 0xffffffff
xor rcx, rcx
mov rdx, qword [rbp + 0x48]
call fcn.006e1290
jmp 0x6e1238
mov rcx, qword [rbp + 0xd0]
mov rdx, qword [rbp + 0x60]
lea r8, [0x006e1356]
call fcn.006e0770
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x6e1119
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x94], eax
xor rcx, rcx
mov rdx, qword [rbp + 0x48]
call fcn.006e1290
jmp 0x6e1238
mov rcx, qword [rbp + 0xd0]
xor rdx, rdx
xor r8, r8
mov r9, qword [rbp + 0x88]
mov rax, qword [rbp + 0x98]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x84]
mov qword [rsp + 0x30], rax
call qword [0x009bae40]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
jne 0x6e1180
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x94], eax
xor rcx, rcx
mov rdx, qword [rbp + 0x48]
call fcn.006e1290
jmp 0x6e1238
cmp qword [0x009bae60], 0
je 0x6e11a3
mov rcx, qword [rbp + 0xa8]
mov edx, 0x11
xor r8, r8
xor r9, r9
call qword [0x009bae60]
mov rcx, qword [rbp + 0xa8]
call sub.kernel32.dll_ResumeThread
nop
cmp dword [rbp + 0xd8], 0
je 0x6e11f1
mov rcx, qword [rbp + 0xa8]
mov edx, dword [rbp + 0xd8]
call sub.kernel32.dll_WaitForSingleObject
mov dword [rbp + 0x80], eax
mov eax, dword [rbp + 0x80]
sub eax, 1
cmp eax, 0xffffffff
jne 0x6e11e8
mov byte [rbp + 0xa7], 1
jmp 0x6e11f8
mov byte [rbp + 0xa7], 0
jmp 0x6e11f8
mov byte [rbp + 0xa7], 0
mov dword [rbp + 0x94], 0
nop
mov rcx, qword [rbp + 0xa8]
call sub.kernel32.dll_CloseHandle_1
nop
cmp byte [rbp + 0xa7], 1
jne 0x6e1237
mov rcx, qword [rbp + 0xd0]
mov rdx, qword [rbp + 0x98]
xor r8, r8
mov r9d, 0x8000
call qword [0x009bae28]
nop
lea rcx, [rbp + 0x68]
call fcn.0040e080
lea rcx, [rbp + 0xc0]
call fcn.0040e080
mov eax, dword [rbp + 0x94]
lea rsp, [rbp + 0xb0]
pop rbp
ret