Function at 0x140037ef0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x238
cmp byte [rdx + 0x23], 0
mov rbx, r8
mov r13, rdx
jne 0x140037f1d
mov r13, qword [rdx + 0x10]
mov rbp, qword [rsp + 0x280]
lea r10, sym.MZ____D3_.0Rb__hqjOe_e5e_JE_S3G_n____Y1_H
mov r14, qword [rsp + 0x280]
xor ecx, ecx
movzx r9d, word [0x1401023f4]
mov r12d, ecx
lea esi, [rcx + 1]
lea edi, [rcx + 8]
lea r11d, [rcx + 7]
nop dword [rax + rax]
test r12d, r12d
je 0x140037f9a
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8, rbp
xor edx, edx
mov rcx, r13
call fcn.14008f120
cmp eax, 1
jne 0x1400382d4
xor r8d, r8d
mov edx, esi
mov rcx, r13
call fcn.140001450
movzx r9d, word [0x1401023f4]
lea r10, sym.MZ____D3_.0Rb__hqjOe_e5e_JE_S3G_n____Y1_H
mov r14, rax
mov r11d, 7
jmp 0x140037f9d
mov rbp, rcx
mov rdx, rbx
movzx eax, word [rdx]
test ax, ax
je 0x140037fde
nop dword [rax + rax]
cmp ax, word [0x1401023f0]
je 0x140037fff
cmp ax, r9w
je 0x140037fff
test r12d, r12d
je 0x140037fce
mov word [r14], ax
add r14, 2
jmp 0x140037fd1
inc rbp
movzx eax, word [rdx + 2]
add rdx, 2
test ax, ax
jne 0x140037fb0
inc r12d
mov esi, 1
cmp r12d, 2
jge 0x1400382db
mov rbx, qword [rsp + 0x290]
xor ecx, ecx
jmp 0x140037f50
movzx eax, word [rdx]
test ax, ax
je 0x140037fde
cmp ax, word [0x1401023f0]
jne 0x1400380eb
test r12d, r12d
je 0x1400380df
movzx r8d, word [rdx + 2]
lea eax, [r8 - 0x61]
cmp eax, 0x15
ja case.0x14003803c.99
cdqe
mov ecx, dword [r10 + rax*4 + 0x38380]
add rcx, r10
jmp rcx
mov word [r14], r11w
add r14, 2
add rdx, 2
jmp 0x1400382be
mov word [r14], di
add r14, 2
add rdx, 2
jmp 0x1400382be
mov eax, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov word [r14], ax
add r14, 2
add rdx, 2
jmp 0x1400382be
mov eax, 0xa
mov word [r14], ax
add r14, 2
add rdx, 2
jmp 0x1400382be
mov eax, SafeArrayGetElemsize
mov word [r14], ax
add r14, 2
add rdx, 2
jmp 0x1400382be
mov eax, 9
mov word [r14], ax
add r14, 2
add rdx, 2
jmp 0x1400382be
mov eax, reloc.WSOCK32.dll_inet_ntoa
mov word [r14], ax
add r14, 2
add rdx, 2
jmp 0x1400382be
mov word [r14], r8w
add r14, 2
add rdx, 2
jmp 0x1400382be
inc rbp
add rdx, 2
jmp 0x1400382be
movzx eax, word [rdx + 2]
lea rsi, [rdx + 2]
test ax, ax
je 0x1400382be
nop dword [rax]
cmp ax, r9w
je 0x140038118
movzx eax, word [rsi + 2]
add rsi, 2
test ax, ax
jne 0x140038100
jmp 0x1400382be
cmp word [rsi], 0
je 0x1400382be
mov rdi, rsi
sub rdi, rdx
sar rdi, 1
dec rdi
lea rax, [rdi - 1]
cmp rax, 0xfc
ja 0x1400382b6
mov r8, rdi
lea rcx, [rsp + 0x30]
add rdx, 2
call fcn.1400b3da4
xor eax, eax
mov word [rsp + rdi*2 + 0x30], ax
cmp word [rsp + 0x30], ax
je 0x1400382d4
lea rax, [rsp + 0x280]
mov r8, rdi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x298]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], 3
lea rcx, [0x1401072b0]
call fcn.140028d60
mov rbx, rax
test rax, rax
jne 0x1400381c9
cmp byte [rsp + 0x280], al
lea rdx, [rsp + 0x30]
mov r9d, dword [rsp + 0x298]
lea rcx, [0x1401072b0]
setne al
mov r8, rdi
inc eax
mov dword [rsp + 0x20], eax
call fcn.140029050
mov rbx, rax
test rbx, rbx
je 0x1400382d4
cmp byte [rbx + 0x23], 0
jne 0x1400381dc
mov rbx, qword [rbx + 0x10]
cmp rbx, r13
je 0x1400382ae
test r12d, r12d
je 0x1400381fe
mov rdx, r14
mov rcx, rbx
call fcn.14008f570
lea r14, [r14 + rax*2]
jmp 0x1400382ae
movzx ecx, byte [rbx + 0x23]
test ecx, ecx
je 0x1400382a0
sub ecx, 1
je 0x140038248
sub ecx, 1
je 0x140038227
cmp ecx, 1
je 0x14003828d
mov rdx, qword [rbx + 0x28]
xor ecx, ecx
call qword [rbx + reloc.OLEAUT32.dll_SafeArrayGetElement]
jmp 0x1400382ab
xor edx, edx
lea rcx, [0x140107f00]
call fcn.1400050a0
mov ecx, 0xffffffff
cmp rax, rcx
mov ecx, 0
cmove rax, rcx
jmp 0x1400382ab
mov rcx, rbx
call fcn.140001320
cmp dword [0x140105b28], 0
jne 0x140038291
cmp qword [rbx + 0x10], 0
jne 0x140038291
mov rcx, qword [rbx + 0x28]
lea rdx, [rsp + 0x288]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140038286
xor ecx, ecx
mov qword [0x140109880], rcx
dec eax
jmp 0x1400382ab
mov qword [0x140109880], rbx
xor eax, eax
jmp 0x1400382ab
mov rax, qword [rbx + 0x10]
shr rax, 1
jmp 0x1400382ab
mov rcx, qword [rbx + 0x10]
xor edx, edx
call fcn.14008f570
add rbp, rax
movzx r9d, word [0x1401023f4]
mov rdx, rsi
mov edi, 8
add rdx, 2
lea r10, sym.MZ____D3_.0Rb__hqjOe_e5e_JE_S3G_n____Y1_H
mov r11d, 7
jmp 0x140037fa0
xor eax, eax
jmp 0x140038369
xor eax, eax
xor r8d, r8d
mov edx, esi
mov word [r14], ax
mov rcx, r13
call fcn.140001450
or rbx, 0xffffffffffffffff
cmp word [rax + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x1400382f2
cmp byte [r13 + 0x23], 0
jne 0x14003830b
mov rdi, qword [r13 + 0x10]
jmp 0x14003830e
mov rdi, r13
cmp byte [rdi + 0x23], sil
jne 0x140038328
test byte [rdi + 0x21], 8
je 0x140038322
mov rcx, rdi
call fcn.140001320
add rdi, 0x10
jmp 0x14003832f
lea rdi, [0x140108b28]
lea rax, [rbx + rbx]
mov qword [rdi], rax
cmp byte [r13 + 0x23], 0
jne 0x140038341
mov r13, qword [r13 + 0x10]
cmp byte [r13 + 0x23], 2
jne 0x140038362
cmp qword [0x140107f18], 0
je 0x140038362
lea rcx, [0x140107f00]
call fcn.140005440
mov esi, eax
jmp 0x140038367
and byte [r13 + 0x21], 0x86
mov eax, esi
add rsp, 0x238
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret