Function at 0x56f710
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov edx, 0x278
mov rbp, rcx
mov ecx, 1
call fcn.0056d1f0
test rax, rax
mov rbx, rax
je 0x56fb0f
test rbp, rbp
je 0x56f942
mov eax, dword [rbp + 0x28]
xor r13d, r13d
mov edx, 1
mov dword [rbx + 0x1c0], eax
mov eax, dword [rbp + 0x28]
mov ecx, eax
and ecx, 2
sete r13b
test al, 0x20
je 0x56f935
lea rcx, [rbx + 0x168]
lea r14, [rsp + 0x20]
mov rsi, 0xffffffffffffffff
call fcn.00576dd0
mov rdx, r14
mov rcx, rbx
call fcn.0056add0
lea rax, [rbx + 0x108]
lea rcx, [rbx + 0x128]
mov qword [rbx + 0x150], 0
mov qword [rbx + 0x158], 0
mov qword [rbx + 0xa0], rsi
mov qword [rbx + 0x110], rax
mov qword [rbx + 0xa8], rsi
mov qword [rbx + 0x1d8], rsi
mov qword [rbx + 0x1e0], rsi
mov qword [rbx + 0x108], 0
call fcn.005714c0
lea rcx, [rbx + 0x140]
call fcn.00571610
lea rcx, [rbx + 0x10]
call fcn.00571fe0
test rbp, rbp
mov qword [rbx + 8], 0
je 0x56fa21
mov rax, qword [rbp + 0x14]
mov qword [rbx + 0x1c4], rax
mov eax, dword [rbp + 0x20]
mov dword [rbx + 0x1d0], eax
mov eax, dword [rbp + 0x1c]
test eax, eax
js 0x56f970
cmp eax, 0x7fffffff
mov dword [rbx + 0x1cc], eax
je 0x56fb27
mov r12, qword [0x0067e2a0]
test r12, r12
je 0x56f9df
lea rsi, [0x0067e2a0]
test rbp, rbp
je 0x56f9b0
mov r15, qword [rbp]
mov rdi, qword [r12]
test r15, r15
je 0x56f88d
nop dword [rax]
mov rcx, qword [r15 + 0x10]
test rcx, rcx
je 0x56f885
mov rdx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x56f89f
mov r15, qword [r15]
test r15, r15
jne 0x56f870
mov eax, dword [rbp + 0x24]
mov edx, dword [r12 + 0x34]
and edx, eax
cmp eax, edx
je 0x56f9b0
mov r12, qword [rsi + 8]
mov rax, qword [rbx + 8]
test r12, r12
je 0x56f9d6
add rsi, 8
test rax, rax
je 0x56f853
lea rcx, str.EVENT_SHOW_METHOD
call fcn.005759f0
test rax, rax
je 0x56f8dc
mov rax, qword [rbx]
lea rcx, str.libevent_using:__s
mov rdx, qword [rax]
call fcn.00577260
mov edx, 1
mov rcx, rbx
call fcn.0056d370
test eax, eax
js 0x56facd
call fcn.00573320
test eax, eax
je 0x56fa10
test rbp, rbp
je 0x56fae1
mov eax, dword [rbp + 0x28]
test al, 1
je 0x56fa8e
test al, 4
je 0x56f921
mov edx, dword [rbp + 0x10]
mov rcx, rbx
call fcn.0056b0c0
mov rax, rbx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r13d, r13d
xor edx, edx
test ecx, ecx
jne 0x56f76c
lea rcx, str.EVENT_PRECISE_TIMER
mov r13d, 1
call fcn.005759f0
xor edx, edx
test rax, rax
setne dl
or dword [rbx + 0x1c0], 0x20
jmp 0x56f76c
mov eax, dword [rbx + 0x1c4]
mov dword [rbx + 0x1cc], 0x7fffffff
cmp eax, 0xffffffff
je 0x56fa31
mov r12, qword [0x0067e2a0]
mov rax, qword [rbx + 8]
test r12, r12
je 0x56f9d6
test rax, rax
je 0x56f84c
jmp 0x56f8b9
test r13d, r13d
jne 0x56fa40
mov rax, qword [rsi]
mov rcx, rbx
mov qword [rbx], rax
call qword [rax + 8]
mov qword [rbx + 8], rax
mov r12, qword [rsi + 8]
test r12, r12
jne 0x56f8b0
test rax, rax
jne 0x56f8b9
lea rdx, str.event_base_new_with_config
lea rcx, str._s:_no_event_mechanism_available
call fcn.00577220
mov qword [rbx], 0
mov rcx, rbx
mov edx, 1
call fcn.0056cbd0
xor ebx, ebx
jmp 0x56f921
test rbp, rbp
je 0x56f921
mov eax, dword [rbp + 0x28]
jmp 0x56f912
mov dword [rbx + 0x1c4], esi
mov dword [rbx + 0x1cc], 0x7fffffff
mov dword [rbx + 0x1d0], 0x7fffffff
jmp 0x56f989
mov r9, qword [r12]
lea r8, str.EVENT_NO_s
mov rcx, r14
mov edx, 0x40
call fcn.00574250
movsx ecx, byte [rsp + 0x28]
test cl, cl
je 0x56fa78
lea rdi, [r14 + 8]
call fcn.005758c0
add rdi, 1
mov byte [rdi - 1], al
movsx ecx, byte [rdi]
test cl, cl
jne 0x56fa65
mov rcx, r14
call fcn.005759f0
test rax, rax
je 0x56f9b9
jmp 0x56f89f
xor ecx, ecx
call fcn.00573210
xor ecx, ecx
mov qword [rbx + 0x198], rax
call fcn.00573290
mov rcx, rbx
mov qword [rbx + 0x1a0], rax
call fcn.0056f6c0
test eax, eax
jns 0x56fa19
lea rdx, str.event_base_new_with_config
lea rcx, str._s:_Unable_to_make_base_notifiable.
call fcn.00577220
mov rcx, rbx
mov edx, 1
xor ebx, ebx
call fcn.0056cbd0
jmp 0x56f921
xor ecx, ecx
call fcn.00573210
xor ecx, ecx
mov qword [rbx + 0x198], rax
call fcn.00573290
mov rcx, rbx
mov qword [rbx + 0x1a0], rax
call fcn.0056f6c0
test eax, eax
jns 0x56f921
jmp 0x56faba
lea rdx, str.event_base_new_with_config
lea rcx, [0x006c798e]
call fcn.005770f0
jmp 0x56f921
mov eax, dword [rbx + 0x1c4]
jmp 0x56f980