Function at 0x140058490
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r12, rcx
mov qword [rbp - 8], rcx
xor esi, esi
mov dword [rbp - 0xc], esi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov r13, rax
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [r12], rsi
mov qword [r12 + 8], rsi
mov qword [r12 + 0x10], rsi
mov dword [rbp - 0xc], 1
mov edi, esi
mov dword [rbp - 0x10], esi
mov ecx, esi
mov r15, rax
movabs rdx, 0x7ffffffffffffffe
lea r8d, [rsi + 0xa]
lea r9, [rsi - 1]
movabs r10, 0x7fffffffffffffff
nop word [rax + rax]
cmp word [r15], 0
jne 0x140058704
movsxd rax, edi
lea rbx, [rax*2]
add rbx, r13
lea r14, [rcx + r13]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
cmp r14, rbx
jne 0x140058556
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
jmp 0x14005862d
sub rbx, r14
sar rbx, 1
cmp rbx, rdx
ja 0x140058742
mov qword [rbp - 0x18], 7
cmp rbx, 8
jae 0x140058593
mov qword [rbp - 0x20], rbx
add rbx, rbx
mov r8, rbx
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.14008f570
mov word [rbp + rbx - 0x30], si
jmp 0x14005862d
mov rdi, rbx
or rdi, 7
cmp rdi, rdx
jbe 0x1400585a4
mov rdi, rdx
jmp 0x1400585ac
cmp rdi, 0xa
cmovb rdi, r8
mov rcx, rdi
add rcx, 1
cmovb rcx, r9
cmp rcx, r10
ja 0x14005873c
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400585f8
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14005873c
mov rcx, rax
call fcn.14008d1e8
test rax, rax
je 0x140058748
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140058605
test rcx, rcx
je 0x140058605
call fcn.14008d1e8
mov rsi, rax
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rdi
add rbx, rbx
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.14008f570
xor eax, eax
mov word [rbx + rsi], ax
mov edi, dword [rbp - 0x10]
xor esi, esi
mov rdx, qword [r12 + 8]
cmp rdx, qword [r12 + 0x10]
je 0x14005866e
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], rsi
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rdx + 0x10], xmm1
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
add qword [r12 + 8], 0x20
jmp 0x14005867b
lea r8, [rbp - 0x30]
mov rcx, r12
call fcn.140065f40
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400586bb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400586b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058748
call fcn.14008d0c0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
mov rcx, r15
sub rcx, r13
add r15, 2
cmp word [r15], 0
je 0x140058712
movabs rdx, 0x7ffffffffffffffe
mov r8d, 0xa
lea r9, [r8 - 0xb]
movabs r10, 0x7fffffffffffffff
inc edi
mov dword [rbp - 0x10], edi
jmp 0x140058510
add r15, 2
inc edi
mov dword [rbp - 0x10], edi
jmp 0x140058510
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, r12
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140029c20
int3
call fcn.140029ce0
int3
call fcn.14006f260
int3