Function at 0x180091970
Capabilities:
Query environment variable

Disassembly:
push rbp
push r14
sub rsp, 0x78
mov rbp, r8
mov r14, rcx
test rcx, rcx
je 0x180091c4e
test rdx, rdx
je 0x180091c19
test r8, r8
je 0x1800919a7
cmp qword [r8], 0
je 0x1800919a7
lea rax, str._error__NULL____error__NULL_
jmp 0x180091c20
movzx eax, byte [rdx]
cmp al, 0x61
je 0x1800919c4
cmp al, 0x72
je 0x1800919bd
cmp al, 0x77
jne 0x180091a1f
mov eax, 2
jmp 0x1800919c9
mov eax, 1
jmp 0x1800919c9
mov eax, 4
movzx ecx, byte [rdx + 1]
test cl, cl
je 0x1800919df
cmp cl, 0x2b
jne 0x180091a1f
cmp byte [rdx + 2], 0
jne 0x180091a1f
or eax, 8
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rsi
lea esi, [rax - 1]
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x68], r13
cmp esi, 0xb
ja case.0x180091a1d.3
lea r13, [0x180000000]
movsxd rax, esi
mov ecx, dword [r13 + rax*4 + 0x91cac]
add rcx, r13
jmp rcx
mov r9, rdx
lea r8, str.Invalid_GIOFileMode__s.
mov edx, reloc.WS2_32.dll_recv
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
xor eax, eax
add rsp, 0x78
pop r14
pop rbp
ret
mov ebx, 0x100
mov edi, 0x8000
jmp 0x180091a80
mov ebx, 0x80
mov edi, 0x8301
jmp 0x180091a80
mov ebx, 0x80
mov edi, 0x8109
jmp 0x180091a80
mov edi, 0x8002
jmp 0x180091a7b
mov edi, 0x8302
jmp 0x180091a7b
mov edi, 0x810a
mov ebx, 0x180
mov qword [rsp + 0x70], r12
mov r8d, ebx
mov edx, edi
mov qword [rsp + 0x60], r15
mov rcx, r14
call sym.glib_2.0.dll_g_open
mov r15d, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rcx, str.G_IO_WIN32_DEBUG
mov r12d, dword [rax]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180091b81
mov rdx, r14
lea rcx, str.g_io_channel_win32_new_file:_open___s__
call sym.glib_2.0.dll_g_print
mov ecx, edi
and ecx, 3
cmp ecx, 2
jne 0x180091adb
lea rdx, str.O_RDWR
jmp 0x180091afd
test ecx, ecx
jne 0x180091ae8
lea rdx, str.O_RDONLY
jmp 0x180091afd
cmp ecx, 1
lea rax, str.O_WRONLY
lea rdx, str.0123456789
cmove rdx, rax
lea r9, [0x1800eaba1]
bt edi, 9
mov rcx, r9
lea rax, str.O_TRUNC
cmovb rcx, rax
lea r8, str.O_CREAT
bt edi, 8
lea r10, str.O_APPEND
mov rax, r9
cmovb rax, r8
mov r8, r9
test dil, 8
cmovne r8, r10
lea r10, str.O_BINARY
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], rcx
lea rcx, str._s_s_s_s_s_s_s_s_s_s
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
call sym.glib_2.0.dll_g_print
mov r8d, r15d
lea rcx, str.__o__d_n
mov edx, ebx
call sym.glib_2.0.dll_g_print
test r15d, r15d
jns 0x180091be1
mov ecx, r12d
call sym.glib_2.0.dll_g_strerror
mov ecx, r12d
mov rdi, rax
call sym.glib_2.0.dll_g_file_error_from_errno
mov ebx, eax
call sym.glib_2.0.dll_g_file_error_quark
mov edx, eax
mov r9, rdi
mov r8d, ebx
mov rcx, rbp
call sym.glib_2.0.dll_g_set_error_literal
xor eax, eax
mov r12, qword [rsp + 0x70]
mov r15, qword [rsp + 0x60]
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov r13, qword [rsp + 0x68]
add rsp, 0x78
pop r14
pop rbp
ret
mov ecx, r15d
call sym.glib_2.0.dll_g_io_channel_win32_new_fd
movsxd rcx, esi
mov r8d, dword [rax + 0x60]
mov edx, dword [r13 + rcx*4 + 0x91cdc]
or r8d, 0x24
mov dword [rax + 0x60], r8d
add rdx, r13
jmp rdx
and r8d, 0xffffffef
mov dword [rax + 0x60], r8d
jmp case.0x180091c03.8
and r8d, 0xfffffff7
mov dword [rax + 0x60], r8d
jmp case.0x180091c03.8
lea rax, str.mode___NULL
lea r9, [0x1800ff250]
mov qword [rsp + 0x20], rax
lea r8, str._s:_assertion__s_failed
mov edx, 8
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
xor eax, eax
add rsp, 0x78
pop r14
pop rbp
ret
lea rax, str.filename___NULL
jmp 0x180091c20
lea r9, [0x1800ff250]
mov qword [rsp + 0x20], 0
mov r8d, 0x6d8
lea rdx, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgiowin32.c
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_assertion_message_expr
int3
lea r9, [0x1800ff250]
mov qword [rsp + 0x20], 0
mov r8d, 0x6a9
lea rdx, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgiowin32.c
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_assertion_message_expr
int3