Function at 0x140041f00
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xab8
movaps xmmword [rsp + 0xaa0], xmm6
mov rdi, r8
mov rsi, rdx
mov r12, rcx
mov rax, qword [0x14019ac40]
xor rax, rsp
mov qword [rsp + 0xa98], rax
lea rax, [0x14016edb2]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], 2
lea rdx, [rsp + 0xf0]
mov rcx, rsi
xor r8d, r8d
call fcn.140023ff0
cmp rax, 0xffffffffffffffff
je 0x140041fb0
mov r9, qword [rsi]
test r9, r9
je 0x1400421a9
mov rdi, qword [rsi + 8]
movaps xmm0, xmmword [0x14016c7a0]
movups xmmword [rsp + 0x868], xmm0
mov byte [rsp + 0x858], 0
cmp rdi, 0xf
jbe 0x1400421c2
lea rcx, [rsp + 0x858]
mov rdx, rdi
call fcn.1400058f0
jmp 0x1400421e5
movaps xmm0, xmmword [0x14016ff50]
movups xmmword [rsp + 0xa88], xmm0
mov word [rsp + 0xa78], 0
mov rax, qword [rdi + 8]
test rax, rax
mov qword [rsp + 0x30], r12
je 0x14004223c
mov qword [rsp + 0x38], rsi
mov rcx, rax
shl rcx, 8
lea rdx, [rcx + rax*4]
cmp rdx, 8
jb 0x140042015
lea rcx, [rsp + 0xa78]
call fcn.140044070
mov qword [rsp + 0xa88], 0
cmp qword [rdi + 8], 0
je 0x140042245
lea r15, [rsp + 0x870]
mov r14d, 1
xor r13d, r13d
movaps xmm6, xmmword [0x14016f070]
lea rsi, [rsp + 0xe0]
lea r12, [rsp + 0x858]
jmp 0x140042051
mov r13d, r14d
add r14d, 1
cmp qword [rdi + 8], r13
jbe 0x140042245
cmp r14d, 1
je 0x1400420b7
mov rax, qword [rsp + 0xa88]
mov rcx, qword [rsp + 0xa90]
cmp rax, rcx
jae 0x1400420a0
lea rdx, [rax + 1]
mov qword [rsp + 0xa88], rdx
lea rdx, [rsp + 0xa78]
cmp rcx, 7
jbe 0x14004208e
mov rdx, qword [rsp + 0xa78]
mov word [rdx + rax*2], 0x3b
mov word [rdx + rax*2 + 2], 0
jmp 0x1400420b7
mov edx, 1
lea rcx, [rsp + 0xa78]
mov r9w, 0x3b
call fcn.1400441c0
mov rax, qword [rdi]
shl r13, 4
movups xmm0, xmmword [rax + r13]
movaps xmmword [rsp + 0x560], xmm0
mov qword [rsp + 0x858], r15
movups xmmword [rsp + 0x860], xmm6
movaps xmmword [rsp + 0xe0], xmm0
lea rcx, [rsp + 0x340]
mov rdx, rsi
mov r8, r12
call fcn.140036220
cmp dword [rsp + 0x340], 0
jne 0x14004225a
mov r9, qword [rsp + 0x858]
mov r8, qword [rsp + 0x860]
mov rax, qword [rsp + 0xa88]
mov rcx, qword [rsp + 0xa90]
mov rdx, rcx
sub rdx, rax
cmp rdx, r8
jae 0x140042150
mov qword [rsp + 0x20], r8
lea rcx, [rsp + 0xa78]
mov rdx, r8
call fcn.140044330
jmp 0x14004218d
mov rbx, rsi
lea rbp, [rax + r8]
add r8, r8
mov qword [rsp + 0xa88], rbp
lea rsi, [rsp + 0xa78]
cmp rcx, 7
jbe 0x140042178
mov rsi, qword [rsp + 0xa78]
lea rcx, [rsi + rax*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rsi + rbp*2], 0
mov rsi, rbx
mov rcx, qword [rsp + 0x858]
cmp rcx, r15
je 0x140042040
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140042040
movaps xmm0, xmmword [0x14016c7a0]
movups xmmword [rsp + 0x868], xmm0
mov byte [rsp + 0x858], 0
jmp 0x1400421e5
mov qword [rsp + 0x868], rdi
lea rcx, [rsp + 0x858]
mov rdx, r9
mov r8, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rdi + 0x858], 0
and byte [r12 + 0x20], 0xfe
mov al, byte [rsp + 0x858]
mov rcx, qword [rsp + 0x859]
mov edx, dword [rsp + 0x861]
movzx ebp, word [rsp + 0x865]
mov bl, byte [rsp + 0x867]
movups xmm0, xmmword [rsp + 0x868]
mov byte [r12], al
mov qword [r12 + 1], rcx
mov dword [r12 + 9], edx
mov word [r12 + 0xd], bp
mov byte [r12 + 0xf], bl
movups xmmword [r12 + 0x10], xmm0
jmp 0x1400428a2
xor eax, eax
mov qword [rsp + 0x40], rax
jmp 0x1400422a2
cmp qword [rsp + 0xa90], 8
jb 0x14004228b
mov rax, qword [rsp + 0xa78]
jmp 0x140042293
movups xmm0, xmmword [rsp + 0x340]
mov rax, qword [rsp + 0x30]
movups xmmword [rax], xmm0
or byte [rax + 0x20], 1
mov rcx, qword [rsp + 0x858]
cmp rcx, r15
je 0x140042281
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r12, qword [rsp + 0x30]
jmp 0x140042858
lea rax, [rsp + 0xa78]
mov qword [rsp + 0x40], rax
mov r12, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
lea rdi, [rsp + 0x870]
mov qword [rsp + 0x858], rdi
movaps xmm6, xmmword [0x14016f070]
movups xmmword [rsp + 0x860], xmm6
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0xd0], xmm0
lea rcx, [rsp + 0x560]
lea rdx, [rsp + 0xd0]
lea r8, [rsp + 0x858]
call fcn.140036220
cmp dword [rsp + 0x560], 0
je 0x14004230b
movups xmm0, xmmword [rsp + 0x560]
movups xmmword [r12], xmm0
or byte [r12 + 0x20], 1
jmp 0x140042845
lea r13, [rsp + 0x798]
mov qword [rsp + 0x788], r13
lea rax, [0x14016c7e2]
mov qword [rsp + 0x798], rax
mov qword [rsp + 0x7a0], 0
lea rax, str..exe
mov qword [rsp + 0x7a8], rax
mov qword [rsp + 0x7b0], 4
movabs rax, 0xc00000002
mov qword [rsp + 0x790], rax
lea rcx, str.PATHEXT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400423d6
lea rcx, [0x14016ff78]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xc8], 1
mov qword [rsp + 0xb0], rax
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0xb0]
lea rdx, [rsp + 0x788]
lea r8, [rsp + 0xc0]
call fcn.1400554b0
mov r13, qword [rsp + 0x788]
mov eax, dword [rsp + 0x790]
jmp 0x1400423db
mov eax, 2
lea rcx, [rsp + 0x578]
mov qword [rsp + 0x560], rcx
movups xmmword [rsp + 0x568], xmm6
test eax, eax
je 0x1400426d4
mov eax, eax
shl rax, 4
add rax, r13
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x138]
mov ebp, 0x104
lea rbx, [rsp + 0x120]
lea r14, [rsp + 0x100]
nop word cs:[rax + rax]
movups xmm0, xmmword [r13]
movaps xmmword [rsp + 0xa0], xmm0
lea rax, [rsp + 0x358]
mov qword [rsp + 0x340], rax
movups xmmword [rsp + 0x348], xmm6
movaps xmmword [rsp + 0x90], xmm0
mov rcx, rbx
lea rdx, [rsp + 0x90]
lea r8, [rsp + 0x340]
call fcn.140036220
cmp dword [rsp + 0x120], 0
je 0x1400424a0
movups xmm0, xmmword [rsp + 0x120]
movups xmmword [r12], xmm0
or byte [r12 + 0x20], 1
mov edi, 1
jmp 0x140042670
mov rax, qword [rsp + 0x570]
nop dword [rax + rax]
mov r8d, ebp
cmp rax, r8
jae 0x1400424d3
mov r9d, 2
lea rcx, [rsp + 0x560]
lea rdx, [rsp + 0x578]
call fcn.1400291c0
mov qword [rsp + 0x120], r15
movups xmmword [rsp + 0x128], xmm6
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], 0x505
lea rcx, [rsp + 0x58]
mov rdx, r14
call fcn.1400400d0
mov rax, qword [rsp + 0x110]
cmp qword [rsp + 0x118], 0xf
mov rcx, r14
jbe 0x140042527
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov r8, rbx
call fcn.140036220
mov rax, qword [rsp + 0x118]
cmp rax, 0x10
jb 0x14004258d
mov rcx, qword [rsp + 0x100]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140042588
mov rdi, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rdi
cmp rcx, 0x20
jae 0x1400428d1
add rax, 0x28
mov rdx, rax
mov rcx, rdi
call fcn.14016a23c
mov edi, dword [rsp + 0x80]
test edi, edi
je 0x1400425b0
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [r12], xmm0
or byte [r12 + 0x20], 1
jmp 0x140042611
mov r12, qword [rsp + 0x560]
mov ebp, dword [rsp + 0x570]
mov rax, qword [rsp + 0x128]
lea r8, [rax + 1]
cmp r8, qword [rsp + 0x130]
ja 0x14004263d
mov rcx, qword [rsp + 0x120]
mov word [rcx + rax*2], 0
mov rdx, qword [rsp + 0x120]
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_SearchPathW]
mov ebp, eax
mov r12, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x120]
cmp rcx, r15
je 0x140042624
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
jne 0x14004265b
mov ecx, ebp
mov rax, qword [rsp + 0x570]
cmp rax, rcx
jb 0x1400424b0
jmp 0x140042662
mov r9d, 2
mov rcx, rbx
mov rdx, r15
call fcn.1400291c0
mov rax, qword [rsp + 0x128]
jmp 0x1400425d5
mov edi, 1
jmp 0x140042670
xor eax, eax
test ebp, ebp
setne al
lea edi, [rax + rax*4]
nop dword [rax]
mov rcx, qword [rsp + 0x340]
lea rax, [rsp + 0x358]
cmp rcx, rax
je 0x14004268b
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
jne 0x1400426a0
add r13, 0x10
cmp r13, qword [rsp + 0x38]
jne 0x140042430
jmp 0x1400426a9
cmp edi, 5
jne 0x140042807
test ebp, ebp
jne 0x1400426d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x48]
mov edx, eax
call fcn.14002e8d0
or byte [r12 + 0x20], 1
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r12], xmm0
jmp 0x140042807
mov ebp, 0x104
mov r8d, ebp
mov qword [rsp + 0x568], r8
lea r14, [rsp + 0x358]
mov qword [rsp + 0x340], r14
movups xmmword [rsp + 0x348], xmm6
mov rdx, qword [rsp + 0x560]
lea rcx, [rsp + 0x120]
lea r9, [rsp + 0x340]
call fcn.1400363e0
cmp dword [rsp + 0x120], 0
je 0x14004273b
movups xmm0, xmmword [rsp + 0x120]
movups xmmword [r12], xmm0
or byte [r12 + 0x20], 1
jmp 0x1400427f4
mov r9, qword [rsp + 0x340]
mov rdi, qword [rsp + 0x348]
movaps xmm0, xmmword [0x14016c7a0]
movups xmmword [rsp + 0x130], xmm0
mov byte [rsp + 0x120], 0
test rdi, rdi
je 0x1400427a2
cmp rdi, 0xf
jbe 0x14004277f
lea rcx, [rsp + 0x120]
mov rdx, rdi
call fcn.1400058f0
jmp 0x1400427a2
mov qword [rsp + 0x130], rdi
lea rcx, [rsp + 0x120]
mov rdx, r9
mov r8, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rdi + 0x120], 0
and byte [r12 + 0x20], 0xfe
mov al, byte [rsp + 0x120]
mov rcx, qword [rsp + 0x121]
mov edx, dword [rsp + 0x129]
movzx ebp, word [rsp + 0x12d]
mov bl, byte [rsp + 0x12f]
movups xmm0, xmmword [rsp + 0x130]
mov byte [r12], al
mov qword [r12 + 1], rcx
mov dword [r12 + 9], edx
mov word [r12 + 0xd], bp
mov byte [r12 + 0xf], bl
movups xmmword [r12 + 0x10], xmm0
mov rcx, qword [rsp + 0x340]
cmp rcx, r14
je 0x140042807
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x560]
lea rax, [rsp + 0x578]
cmp rcx, rax
je 0x140042822
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x788]
lea rax, [rsp + 0x798]
cmp rcx, rax
lea rdi, [rsp + 0x870]
je 0x140042845
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x858]
cmp rcx, rdi
je 0x140042858
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0xa90]
cmp rax, 8
jb 0x1400428a2
mov rcx, qword [rsp + 0xa78]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14004289d
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x1400428d1
add rax, rax
add rax, 0x29
mov rdx, rax
call fcn.14016a23c
mov rcx, qword [rsp + 0xa98]
xor rcx, rsp
call fcn.14016a260
mov rax, r12
movaps xmm6, xmmword [rsp + 0xaa0]
add rsp, 0xab8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3