Function at 0x2101659b0
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov eax, dword [0x21034b024]
mov rbx, rcx
mov rcx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rdx
mov qword [rsp + 0x58], rax
call sym.get_clock_unsigned_long_
test rax, rax
je 0x210165d6c
mov dword [rsp + 0x28], 0x8000000
lea rsi, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov rcx, rbx
mov dword [rsp + 0x20], 4
mov r8, rsi
mov edx, 0xf0006
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x78], 2
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
call sym.NtCreateSection
test eax, eax
js 0x210165c30
xor r9d, r9d
lea rcx, [rbx + 8]
mov r8, rsi
mov edx, 0x1f0001
call sym.NtCreateMutant
test eax, eax
js 0x210165cc0
xor r9d, r9d
lea rcx, [rbx + 0x10]
mov r8, rsi
mov edx, 0x1f0003
mov dword [rsp + 0x20], 0
call sym.NtCreateEvent
test eax, eax
js 0x210165c58
xor r9d, r9d
lea rcx, [rbx + 0x18]
mov r8, rsi
mov edx, 0x1f0003
mov dword [rsp + 0x20], 1
call sym.NtCreateEvent
test eax, eax
js 0x210165cd8
lea rcx, [rbx + 0x20]
mov r9d, 1
mov r8, rsi
mov edx, 0x1f0003
call sym.NtCreateTimer
test eax, eax
js 0x210165cf0
xor r9d, r9d
lea rcx, [rbx + 0x28]
mov r8, rsi
mov edx, 0x1f0003
mov dword [rsp + 0x20], 0
call sym.NtCreateEvent
test eax, eax
js 0x210165c90
xor r9d, r9d
lea rcx, [rbx + 0x30]
mov r8, rsi
mov edx, 0x1f0003
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
call sym.NtCreateEvent
test eax, eax
js 0x210165d08
xor r9d, r9d
lea rcx, [rbx + 0x38]
mov r8, rsi
mov edx, 0x1f0003
mov dword [rsp + 0x20], 0
call sym.NtCreateEvent
test eax, eax
js 0x210165d30
lea rax, [rsp + 0x50]
mov qword [rbx + 0x40], 0
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
lea r8, [rbx + 0x40]
mov rdx, 0xffffffffffffffff
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call sym.NtMapViewOfSection
test eax, eax
js 0x210165d50
mov rax, qword [rbx + 0x40]
xor r12d, r12d
mov qword [rax], rdi
lea rdi, str.timerfd
call sym.GetCurrentProcessId
mov ecx, 0x58
mov dword [rbx + 0x4c], eax
call method.cygthread.operator_new_unsigned_long_
mov rcx, rax
mov rax, qword [rbx + 0x38]
mov qword [rcx + 0x28], rdi
lea rdi, [sym.timerfd_thread_void_]
mov qword [rcx + 0x30], rdi
mov dword [rcx + 0x38], 0
mov qword [rcx + 0x40], rbx
mov qword [rcx + 0x50], rax
call method.cygthread.create__
jmp 0x210165c41
mov edx, 0xd
mov ecx, eax
call sym.geterrno_from_nt_status_int__int_
neg eax
mov r12d, eax
mov eax, r12d
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
ret
mov edx, 0xd
mov ecx, eax
call sym.geterrno_from_nt_status_int__int_
neg eax
mov r12d, eax
mov rcx, qword [rbx + 8]
call sym.NtClose
mov rcx, qword [rbx]
call sym.NtClose
mov eax, r12d
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
ret
mov edx, 0xd
mov ecx, eax
call sym.geterrno_from_nt_status_int__int_
neg eax
mov r12d, eax
mov rcx, qword [rbx + 0x20]
call sym.NtClose
mov rcx, qword [rbx + 0x18]
call sym.NtClose
mov rcx, qword [rbx + 0x10]
call sym.NtClose
jmp 0x210165c69
mov edx, 0xd
mov ecx, eax
call sym.geterrno_from_nt_status_int__int_
neg eax
mov r12d, eax
jmp 0x210165c72
mov edx, 0xd
mov ecx, eax
call sym.geterrno_from_nt_status_int__int_
neg eax
mov r12d, eax
jmp 0x210165cb3
mov edx, 0xd
mov ecx, eax
call sym.geterrno_from_nt_status_int__int_
neg eax
mov r12d, eax
jmp 0x210165caa
mov edx, 0xd
mov ecx, eax
call sym.geterrno_from_nt_status_int__int_
neg eax
mov r12d, eax
mov rcx, qword [rbx + 0x28]
call sym.NtClose
jmp 0x210165ca1
mov edx, 0xd
mov ecx, eax
call sym.geterrno_from_nt_status_int__int_
neg eax
mov r12d, eax
mov rcx, qword [rbx + 0x30]
call sym.NtClose
jmp 0x210165d19
mov edx, 0xd
mov ecx, eax
call sym.geterrno_from_nt_status_int__int_
mov rcx, qword [rbx + 0x38]
neg eax
mov r12d, eax
call sym.NtClose
jmp 0x210165d41
mov r12d, 0xffffffea
jmp 0x210165c41