Function at 0x140055400
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rdi
push r13
lea rbp, [rsp - 0xae8]
sub rsp, 0xbe8
mov rax, qword [0x1402a0480]
xor rax, rsp
mov qword [rbp + 0xac0], rax
mov rdi, rdx
mov qword [rsp + 0x60], rdx
lea rax, [0x1401a88e0]
mov qword [rsp + 0x58], 2
mov qword [rsp + 0x50], rax
lea rdx, [rbp - 0x10]
movaps xmm0, xmmword [rsp + 0x50]
mov rbx, r8
mov r13, rcx
movdqa xmmword [rbp - 0x10], xmm0
xor r8d, r8d
mov rcx, rdi
call fcn.140021470
xorps xmm0, xmm0
cmp rax, 0xffffffffffffffff
je 0x1400554a3
mov r8, qword [rdi + 8]
lea rcx, [rbp + 0x10]
mov rdx, qword [rdi]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
movups xmmword [rbp + 0x10], xmm0
call fcn.140004900
and byte [r13 + 0x20], 0xfe
movups xmm0, xmmword [rbp + 0x10]
movups xmm1, xmmword [rbp + 0x20]
movups xmmword [r13], xmm0
movups xmmword [r13 + 0x10], xmm1
jmp 0x140055e95
mov qword [rsp + 0xc28], rsi
mov r8d, 7
mov qword [rsp + 0xbe0], r12
mov qword [rsp + 0xbd8], r14
xor r14d, r14d
mov qword [rsp + 0xbd0], r15
mov ecx, r14d
mov r15, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rsp + 0x50], r14
mov qword [rbp - 0x18], r8
movups xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x30], r14w
test r15, r15
je 0x14005566b
imul rdx, r15, 0x104
cmp rdx, r8
jbe 0x140055515
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140053070
mov r8, qword [rbp - 0x18]
mov ecx, r14d
mov qword [rbp - 0x20], rcx
mov esi, r14d
test r15, r15
je 0x140055659
mov r12, qword [rbx]
mov rbx, r14
mov edx, 0x3b
test esi, esi
je 0x140055562
cmp rcx, r8
jae 0x14005554f
lea rax, [rcx + 1]
cmp r8, 7
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmova rax, qword [rbp - 0x30]
mov dword [rax + rcx*2], edx
jmp 0x140055562
xor r8d, r8d
lea rcx, [rbp - 0x30]
mov r9d, edx
lea edx, [r8 + 1]
call fcn.140052ed0
lea rax, [rbp + 0x698]
add rbx, rbx
lea r8, [rbp + 0x680]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
movups xmm0, xmmword [r12 + rbx*8]
mov qword [rbp + 0x680], rax
mov qword [rbp + 0x688], r14
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rbp + 0x690], 0x104
call fcn.140028a10
cmp dword [rsp + 0x50], 0
jne 0x140055724
mov rax, qword [rbp + 0x688]
mov rcx, qword [rbp - 0x18]
mov r14, qword [rbp - 0x20]
lea rdi, [rax + rax]
mov rax, rcx
sub rax, r14
sar rdi, 1
cmp rdi, rax
ja 0x140055607
mov rdx, qword [rbp + 0x680]
lea rax, [rdi + r14]
cmp rcx, 7
mov qword [rbp - 0x20], rax
lea rbx, [rbp - 0x30]
cmova rbx, qword [rbp - 0x30]
lea r8, [rdi + rdi]
lea rcx, [rbx + r14*2]
call sub.VCRUNTIME140.dll_memmove
lea rax, [r14 + rdi]
xor r14d, r14d
mov word [rbx + rax*2], r14w
jmp 0x140055625
mov r9, qword [rbp + 0x680]
lea rcx, [rbp - 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rdi
call fcn.140052d10
xor r14d, r14d
mov rcx, qword [rbp + 0x680]
lea rax, [rbp + 0x698]
cmp rcx, rax
je 0x14005563e
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [rbp - 0x18]
inc esi
mov ebx, esi
cmp rbx, r15
jae 0x140055654
mov rcx, qword [rbp - 0x20]
jmp 0x140055527
mov rdi, qword [rsp + 0x60]
cmp r8, 7
lea rsi, [rbp - 0x30]
cmova rsi, qword [rbp - 0x30]
mov qword [rsp + 0x50], rsi
movups xmm0, xmmword [rdi]
lea rax, [rbp + 0x478]
mov qword [rbp + 0x468], r14
lea r8, [rbp + 0x460]
mov qword [rbp + 0x460], rax
lea rdx, [rbp - 0x10]
movaps xmmword [rbp - 0x10], xmm0
lea rcx, [rsp + 0x40]
mov qword [rbp + 0x470], 0x104
call fcn.140028a10
cmp dword [rsp + 0x40], 0
je 0x140055796
movups xmm0, xmmword [rsp + 0x40]
or byte [r13 + 0x20], 1
lea rax, [rbp + 0x478]
mov rcx, qword [rbp + 0x460]
movups xmmword [r13], xmm0
cmp rcx, rax
je 0x1400556da
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x140055e75
mov rcx, qword [rbp - 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055e70
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055e70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movups xmm0, xmmword [rsp + 0x50]
or byte [r13 + 0x20], 1
lea rax, [rbp + 0x698]
mov rcx, qword [rbp + 0x680]
movups xmmword [r13], xmm0
cmp rcx, rax
je 0x14005574c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x140055e75
mov rcx, qword [rbp - 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055e70
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055e70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov qword [rsp + 0x48], r14
lea rax, [rbp + 0x60]
mov qword [rbp + 0x50], rax
lea rcx, str.PATHEXT
lea rax, [0x1401a5c2a]
mov dword [rbp + 0x5c], 0xc
mov qword [rsp + 0x40], rax
lea rax, str..exe
movups xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 4
movups xmmword [rbp + 0x60], xmm0
mov dword [rbp + 0x58], 2
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp + 0x70], xmm0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14005584a
lea rcx, [0x1401a9fb0]
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x40], rcx
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x70], rax
inc rcx
cmp byte [rax + rcx], 0
jne 0x140055817
movaps xmm0, xmmword [rsp + 0x40]
lea r8, [rbp - 0x10]
mov qword [rsp + 0x78], rcx
lea rdx, [rbp + 0x50]
movaps xmm1, xmmword [rsp + 0x70]
lea rcx, [rbp + 0x10]
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmmword [rbp - 0x10], xmm0
call fcn.140061950
mov rsi, qword [rbp + 0x50]
lea rax, [rbp + 0x138]
mov r12d, dword [rbp + 0x58]
shl r12, 4
add r12, rsi
mov qword [rbp + 0x120], rax
mov qword [rbp + 0x128], r14
mov qword [rbp + 0x130], 0x104
cmp rsi, r12
je 0x140055dcf
nop dword [rax]
nop word [rax + rax]
movups xmm0, xmmword [rsi]
lea rax, [rbp + 0x258]
mov ecx, 0x104
mov qword [rbp + 0x240], rax
mov rax, r14
movups xmmword [rsp + 0x70], xmm0
mov r14, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
mov qword [rbp + 0x248], rax
mov qword [rbp + 0x250], rcx
mov ebx, ecx
cmp rbx, rax
je 0x1400558f7
jb 0x1400558f0
cmp rcx, rbx
jae 0x1400558f0
mov r9d, 2
lea rdx, [rbp + 0x258]
mov r8, rbx
lea rcx, [rbp + 0x240]
call fcn.140022b50
mov qword [rbp + 0x248], rbx
lea rax, [rbp + 0x8b8]
mov qword [rbp + 0x8a8], 0
mov qword [rbp + 0x8a0], rax
lea rdx, [rbp + 0x30]
mov rax, qword [rdi]
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x58], rax
mov rax, qword [rdi + 8]
mov qword [rbp - 0x50], rax
movups xmm0, xmmword [rbp - 0x58]
mov qword [rbp + 0x8b0], 0x104
mov qword [rbp - 0x70], r15
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x68], r14
mov word [rbp - 0x60], 0x505
call fcn.14003ecc0
mov rcx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14005595a
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
lea r8, [rbp + 0x8a0]
mov qword [rsp + 0x40], rcx
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp - 0x10]
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
call fcn.140028a10
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x1400559c3
mov rcx, qword [rbp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400559be
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140055aec
call fcn.140183f7c
cmp dword [rbp - 0x10], 0
jne 0x140055d00
mov rbx, qword [rbp + 0x240]
lea rcx, [rbp + 0x8a0]
mov edi, dword [rbp + 0x248]
call fcn.140027aa0
mov rcx, qword [rsp + 0x50]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x28], 0
mov rdx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
mov rcx, qword [rbp + 0x8a0]
mov ebx, eax
lea rax, [rbp + 0x8b8]
cmp rcx, rax
je 0x140055a23
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rbp + 0x248]
mov r8, rbx
cmp rbx, rax
jbe 0x140055a43
mov rcx, qword [rbp + 0x250]
mov rdi, qword [rsp + 0x60]
jmp 0x1400558c8
test ebx, ebx
jne 0x140055a65
mov rcx, qword [rbp + 0x240]
lea rax, [rbp + 0x258]
cmp rcx, rax
je 0x140055a60
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r14d, r14d
jmp 0x140055ad9
mov rdx, qword [rbp + 0x240]
lea r9, [rbp + 0x120]
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x248], r8
call fcn.1400289e0
cmp dword [rbp + 0x10], 0
jne 0x140055c4a
mov rax, qword [rbp + 0x120]
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x128]
mov qword [rbp - 0x78], rax
mov word [rbp - 0x60], 0x105
call fcn.1400290f0
mov rcx, qword [rbp + 0x240]
test al, al
lea rax, [rbp + 0x258]
jne 0x140055af3
xor r14d, r14d
mov qword [rbp + 0x128], r14
cmp rcx, rax
je 0x140055ad9
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rsi, 0x10
cmp rsi, r12
je 0x140055afe
mov rdi, qword [rsp + 0x60]
jmp 0x140055890
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, rax
je 0x140055afe
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [rbp + 0x128], 0
je 0x140055dcf
xor edx, edx
lea rcx, [rbp + 0x120]
call fcn.14002cca0
mov rdx, qword [rbp + 0x120]
lea r9, [rsp + 0x30]
mov r8, qword [rbp + 0x128]
lea rcx, [rbp - 0x10]
add r8, rdx
call fcn.1400220c0
and byte [r13 + 0x20], 0xfe
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], rcx
mov qword [r13 + 0x18], rcx
movups xmm0, xmmword [rax]
movups xmmword [r13], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r13 + 0x10], xmm1
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 0xf
mov byte [rax], cl
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140055baa
mov rcx, qword [rbp - 0x10]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055ba5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140055c43
call fcn.140183f7c
mov rcx, qword [rbp + 0x120]
lea rax, [rbp + 0x138]
movdqa xmm0, xmmword [0x1401a7570]
mov byte [rbp - 0x10], 0
movdqu xmmword [rbp], xmm0
cmp rcx, rax
je 0x140055bd4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x50]
lea rax, [rbp + 0x60]
cmp rcx, rax
je 0x140055be7
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x460]
lea rax, [rbp + 0x478]
cmp rcx, rax
je 0x140055c00
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x140055e75
mov rcx, qword [rbp - 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055e70
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055e70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movups xmm0, xmmword [rbp + 0x10]
or byte [r13 + 0x20], 1
lea rax, [rbp + 0x258]
mov rcx, qword [rbp + 0x240]
movups xmmword [r13], xmm0
cmp rcx, rax
je 0x140055c71
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x120]
lea rax, [rbp + 0x138]
cmp rcx, rax
je 0x140055c8a
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x50]
lea rax, [rbp + 0x60]
cmp rcx, rax
je 0x140055c9d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x460]
lea rax, [rbp + 0x478]
cmp rcx, rax
je 0x140055cb6
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x140055e75
mov rcx, qword [rbp - 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055e70
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055e70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movups xmm0, xmmword [rbp - 0x10]
or byte [r13 + 0x20], 1
lea rax, [rbp + 0x8b8]
mov rcx, qword [rbp + 0x8a0]
movups xmmword [r13], xmm0
cmp rcx, rax
je 0x140055d27
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x240]
lea rax, [rbp + 0x258]
cmp rcx, rax
je 0x140055d40
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x120]
lea rax, [rbp + 0x138]
cmp rcx, rax
je 0x140055d59
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x50]
lea rax, [rbp + 0x60]
cmp rcx, rax
je 0x140055d6c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x460]
lea rax, [rbp + 0x478]
cmp rcx, rax
je 0x140055d85
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x140055e75
mov rcx, qword [rbp - 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055e70
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055e70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x10]
call fcn.14003de40
mov rcx, qword [rbp + 0x120]
movups xmm0, xmmword [rax]
or byte [r13 + 0x20], 1
lea rax, [rbp + 0x138]
movups xmmword [r13], xmm0
cmp rcx, rax
je 0x140055e06
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x50]
lea rax, [rbp + 0x60]
cmp rcx, rax
je 0x140055e19
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x460]
lea rax, [rbp + 0x478]
cmp rcx, rax
je 0x140055e32
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x140055e75
mov rcx, qword [rbp - 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055e70
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055e70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140183f7c
mov r14, qword [rsp + 0xbd8]
mov r12, qword [rsp + 0xbe0]
mov rsi, qword [rsp + 0xc28]
mov r15, qword [rsp + 0xbd0]
mov rax, r13
mov rcx, qword [rbp + 0xac0]
xor rcx, rsp
call fcn.1401842c0
add rsp, 0xbe8
pop r13
pop rdi
pop rbx
pop rbp
ret