Function at 0x140030e40
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
cmp dword [rsp + 0xf0], 0
je 0x140030e6a
mov dword [rsp + 0x50], 0x80
jmp 0x140030e72
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x50]
mov dword [rax + 0x270], ecx
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x274], 0
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x278], 0
mov rax, qword [rsp + 0xe0]
mov qword [rax + 0x298], 0
mov rax, qword [rsp + 0xe0]
mov qword [rax + 0x2c0], 0
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x2c8], 0
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x334], 0
mov rax, qword [rsp + 0xe0]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0xe0]
mov qword [rax + 0x10], 0xffffffffffffffff
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe0]
movzx ecx, byte [rcx + 0x370]
mov byte [rax + 0x371], cl
mov rax, qword [rsp + 0xe0]
mov qword [rax + 0x288], 0
mov rax, qword [rsp + 0xe0]
mov qword [rax + 0x2a8], 0
mov rax, qword [rsp + 0xe0]
mov qword [rax + 0x398], 0xffffffffffffffff
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x3a0], 0
mov rax, qword [rsp + 0xe0]
mov qword [rax + 0x3a8], 0
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x388], 0xffffffff
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
xor eax, eax
test eax, eax
jne 0x140030f9f
mov qword [rsp + 0xa8], 0
cmp qword [rsp + 0xe8], 0
jne 0x140030fee
mov qword [rsp + 0x80], 0
jmp 0x14003102d
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x60], 0xffffffffffffffff
inc qword [rsp + 0x60]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x60]
cmp word [rax + rcx*2], 0
jne 0x140031007
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0xa0]
call fcn.140036cf0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140041ab0
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140031073
jmp 0x140031577
mov rax, qword [rsp + 0xe0]
mov qword [rax + 0x288], 0
cmp qword [rsp + 0x40], 0
jne 0x14003109c
mov qword [rsp + 0x88], 0
jmp 0x1400310d8
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
inc qword [rsp + 0x68]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x68]
cmp word [rax + rcx*2], 0
jne 0x1400310b2
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xe0]
add rax, 0x280
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call fcn.140036cf0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
jmp 0x140031120
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
test eax, eax
je 0x140031148
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x140031146
mov eax, 0x2f
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
jmp 0x140031112
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
cmp eax, 0x2f
jne 0x1400311ee
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
cmp eax, 0x2f
jne 0x1400311ee
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
cmp eax, 0x3f
jne 0x1400311ee
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
cmp eax, 0x2f
jne 0x1400311ee
mov rax, qword [rsp + 0x48]
add rax, 8
mov dx, 0x2a
mov rcx, rax
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
jne 0x140031278
mov rax, qword [rsp + 0x48]
add rax, 8
mov dx, 0x3f
mov rcx, rax
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
jne 0x140031278
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
cmp eax, 0x2f
jne 0x14003124e
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
cmp eax, 0x2f
jne 0x14003124e
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
cmp eax, 0x3f
jne 0x14003124e
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
cmp eax, 0x2f
je 0x14003138b
mov dx, 0x2a
mov rcx, qword [rsp + 0x48]
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
jne 0x140031278
mov dx, 0x3f
mov rcx, qword [rsp + 0x48]
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
je 0x14003138b
mov dx, 0x2f
mov rcx, qword [rsp + 0x48]
call sub.VCRUNTIME140.dll_wcsrchr
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400312f1
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xe0]
call fcn.140034a40
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx + 0x2a8]
mov qword [rax + 0x2c0], rcx
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x48], rax
mov dx, 0x5c
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax + 0x280]
call sub.VCRUNTIME140.dll_wcsrchr
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14003138b
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x280]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
inc qword [rsp + 0x70]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x70]
cmp word [rax + rcx*2], 0
jne 0x140031340
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xe0]
mov qword [rcx + 0x288], rax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx + 0x288]
mov qword [rax + 0x298], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rax, qword [rsp + 0xe0]
mov r8, qword [rax + 0x280]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xe0]
call fcn.140031760
lea rcx, [rsp + 0xa0]
call fcn.140036e40
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov dword [rax + 0x68], 4
lea rcx, str.LIBARCHIVE_DIRECT_IO
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140031499
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
movsx eax, byte [rcx + rax]
cmp eax, 0x30
jne 0x140031432
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x658], 0
jmp 0x140031444
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x658], 1
mov rax, qword [rsp + 0xe0]
cmp dword [rax + 0x658], 0
je 0x140031466
lea rax, [0x14010b918]
mov qword [rsp + 0x90], rax
jmp 0x140031475
lea rax, [0x14010b920]
mov qword [rsp + 0x90], rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x90]
lea rdx, str.LIBARCHIVE_DIRECT_IO_s_n
mov rcx, rax
call fcn.140003170
jmp 0x1400314ab
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x658], 0
lea rcx, str.LIBARCHIVE_ASYNC_IO
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14003155b
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
movsx eax, byte [rcx + rax]
cmp eax, 0x30
jne 0x1400314f4
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x65c], 0
jmp 0x140031506
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x65c], 1
mov rax, qword [rsp + 0xe0]
cmp dword [rax + 0x65c], 0
je 0x140031528
lea rax, str.Enabled
mov qword [rsp + 0x98], rax
jmp 0x140031537
lea rax, str.Disabled
mov qword [rsp + 0x98], rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x98]
lea rdx, str.LIBARCHIVE_ASYNC_IO_s_n
mov rcx, rax
call fcn.140003170
jmp 0x14003156d
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x65c], 1
mov rax, qword [rsp + 0xe0]
jmp 0x140031593
lea rcx, [rsp + 0xa0]
call fcn.140036e40
mov rcx, qword [rsp + 0xe0]
call fcn.140031670
xor eax, eax
add rsp, 0xd8
ret