Function at 0x14001c0c0
Capabilities:
Create thread
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push r12
push r13
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14016bb40]
xor rax, rsp
mov qword [rbp + 0x3f], rax
lea r12, [0x1401783b0]
mov qword [rbp + 0x27], r12
mov rbx, qword [rbp + 0x67]
mov eax, dword [rbx + 4]
mov dword [0x1401783b0], eax
lea rcx, [0x1401783b8]
call fcn.14001ab10
nop
xor eax, eax
mov qword [0x1401783e8], rax
mov qword [0x1401783f0], rax
mov qword [0x1401783f8], rax
mov qword [0x140178400], rax
mov qword [0x140178408], rax
xor edx, edx
lea rcx, [0x1401783e8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x14001c174
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14001c16a
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x14001c174
mov ecx, eax
call fcn.14001e940
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140178410], rax
xor r13d, r13d
mov qword [0x140178418], r13
mov qword [0x140178420], r13
xor r9d, r9d
xor r8d, r8d
mov edi, 1
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140178428], rax
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140178430], rax
xor r9d, r9d
mov r8d, edi
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140178438], rax
mov qword [0x140178440], r13
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x140178448], rax
movzx eax, byte [rbx + 9]
mov byte [0x140178451], al
mov qword [0x140178458], r13
cmp dword [0x1401783b0], r13d
jle 0x14001c547
movzx eax, byte [rbx + 8]
mov byte [0x140178450], al
test al, al
je 0x14001c247
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x140178458], rax
lea rcx, [rbp - 0x39]
call fcn.14001b2f0
nop
lea rcx, [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rcx, [rbp + 7]
call fcn.14001b420
nop
movzx ecx, word [rbp + 0x39]
movzx edx, word [rbp + 0x37]
movzx r8d, word [rbp + 0x35]
movzx r10d, word [rbp + 0x31]
movzx r9d, word [rbp + 0x2f]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r10d
mov r8, qword [rax]
lea rdx, str..__s___04u__02u__02u__02u__02u_
lea rcx, [rbp - 0x39]
call fcn.14001e790
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001c2c3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rax, [rbp + 0xf]
mov qword [rbp - 0x21], rax
lea rdx, str..txt
lea rcx, [rbp + 0xf]
call fcn.14001e210
mov rbx, rax
mov rcx, qword [rbp - 0x39]
add rcx, 0xffffffffffffffe8
call fcn.14001e5d0
add rax, 0x18
mov qword [rbp - 9], rax
mov rdx, rbx
lea rcx, [rbp - 9]
call fcn.14001af60
cmp qword [0x140178418], 0
jne 0x14001c49b
mov edx, 0x5c
mov rcx, qword [rbp - 0x39]
call fcn.14005f4c4
test rax, rax
je 0x14001c33a
sub rax, qword [rbp - 0x39]
sar rax, 1
test eax, eax
js 0x14001c33a
lea r8d, [rax + 1]
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001aba0
lea rax, [rbp - 0x19]
mov qword [rbp - 0x21], rax
lea rdx, str..txt
lea rcx, [rbp - 0x19]
call fcn.14001e210
mov rbx, rax
mov rcx, qword [rbp - 0x39]
add rcx, 0xffffffffffffffe8
call fcn.14001e5d0
add rax, 0x18
mov qword [rbp + 0x17], rax
mov rdx, rbx
lea rcx, [rbp + 0x17]
call fcn.14001af60
cmp qword [0x140178418], 0
jne 0x14001c49b
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x31], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, eax
inc edx
jns 0x14001c3b8
mov ecx, 0x80070057
call fcn.14001e940
int3
sub edi, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, edi
jge 0x14001c3d1
lea rcx, [rbp - 0x31]
call fcn.14001e8d0
mov rbx, qword [rbp - 0x31]
cmp dword [rbx - 8], 1
jle 0x14001c3e7
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 0x31]
call fcn.14001e7c0
mov rbx, qword [rbp - 0x31]
mov rdx, rbx
mov ecx, dword [rbx - 0xc]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
movsxd rcx, dword [rbx - 0xc]
cmp eax, ecx
jge 0x14001c473
mov rdx, rcx
mov rcx, rbx
call fcn.14005e508
test eax, eax
js 0x14001c468
cmp eax, dword [rbx - 0xc]
jg 0x14001c468
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
mov rdx, qword [rbp - 0x39]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x31]
call fcn.14001ddb0
lea r11, [rbp - 1]
mov qword [rbp - 0x21], r11
lea rdx, str..txt
lea rcx, [rbp - 1]
call fcn.14001e210
mov rdi, rax
mov rbx, qword [rbp - 0x31]
lea rcx, [rbx - 0x18]
call fcn.14001e5d0
add rax, 0x18
mov qword [rbp - 0x11], rax
mov rdx, rdi
lea rcx, [rbp - 0x11]
call fcn.14001af60
jmp 0x14001c473
mov ecx, 0x80070057
call fcn.14001e940
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001c48d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
cmp qword [0x140178418], 0
je 0x14001c529
mov rcx, qword [0x140178448]
call fcn.14001b180
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9, r12
lea r8, [0x14001b2d0]
xor edx, edx
xor ecx, ecx
call fcn.14005f3d0
mov qword [0x140178440], rax
mov dword [rbp - 0x29], r13d
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
jne 0x14001c4fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14001c4f2
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.14001e940
int3
mov edx, 0x4e20
mov rcx, qword [0x140178428]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14001c51e
mov ecx, 0x800705b4
call fcn.14001e940
int3
call fcn.14001b5f0
call fcn.14001ba50
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14001c547
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
nop
mov rax, r12
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14005e0b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret