Function at 0x1401e3600
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x170
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov ebx, dword [rdx + 0xc]
mov rsi, rcx
mov r14, qword [rdx]
lea rcx, [0x1406876b0]
lea rdx, [rsp + 0x60]
xor dil, dil
call fcn.1401f6180
lea eax, [rbx + 0x10]
mov ecx, eax
mov dword [rsp + 0x30], eax
call fcn.140368330
mov rbp, rax
test rax, rax
je 0x1401e3804
lea rax, [rsp + 0x60]
mov r8, rbp
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, r14
call fcn.1401eeac0
test al, al
je 0x1401e3804
mov ebx, dword [rsp + 0x30]
lea r14, [rsi + 0x210]
cmp qword [r14 + 0x18], 8
mov qword [rsp + 0x1b0], r15
mov r15, rbp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x4c], ebx
jb 0x1401e36ad
mov r14, qword [r14]
xor r12d, r12d
lea rcx, [0x140687688]
mov dword [rsp + 0x34], r12d
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x1401e371b
lea r9d, [r12 + 0x64]
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x34]
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.1401e9b10
lea rcx, [0x140687688]
movzx ebx, al
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x38]
call fcn.1401f41b0
mov eax, dword [rsp + 0x34]
cmp eax, 0x5b4
jne 0x1401e37dc
mov ebx, dword [rsp + 0x4c]
mov r15, qword [rsp + 0x40]
mov ecx, ebx
call fcn.1401f40a0
mov r14, rax
test rax, rax
je 0x1401e37cb
mov rcx, qword [rax]
mov rdx, r15
mov r8d, ebx
call fcn.14035bc80
lea rcx, [0x140687650]
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rdx, [rsp + 0x50]
lea rcx, [0x140689910]
call fcn.14008c700
lea rcx, [0x140687650]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 1
xor eax, eax
lock cmpxchg dword [0x140687680], ecx
jne 0x1401e37fb
mov rcx, qword [0x140687678]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x1401e9e40]
xor edx, edx
mov dword [rsp + 0x20], r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x1401e37f2
mov rcx, qword [0x140687678]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lock dec dword [0x140687680]
call fcn.1401e9da0
xor bl, bl
test bl, bl
mov eax, 0x5b4
mov ecx, 0x3e5
cmovne eax, ecx
mov r15, qword [rsp + 0x1b0]
test bl, bl
jne 0x1401e37ff
mov dword [rsi + 8], eax
mov word [rsi + 0xc], r12w
jmp 0x1401e3865
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x1401e37cd
mov dil, 1
jmp 0x1401e3865
lea rbx, str.Encryption_error
mov dword [rsi + 8], 0xffffffff
mov r8, rbx
lea rcx, [rsi + 0xc]
mov edx, 0x100
call fcn.140368338
mov rcx, qword [str.0cg_]
lea rax, str.0cg_
cmp rcx, rax
je 0x1401e3860
test byte [rcx + 0x1c], 1
je 0x1401e3860
cmp byte [rcx + 0x19], 4
jb 0x1401e3860
mov rcx, qword [rcx + 0x10]
lea r8, [0x140607d68]
mov edx, 0xa
mov qword [rsp + 0x20], rbx
lea r9d, [rdx - 0xb]
call fcn.140073e40
test rbp, rbp
je 0x1401e386d
mov rcx, rbp
call fcn.1403683a0
movzx eax, dil
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140359070
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x170
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret