Function at 0x140058930
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 0x140058ba4
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 0x1400589f6
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
jmp 0x140058acd
sub rbx, r14
sar rbx, 1
cmp rbx, rdx
ja 0x140058be2
mov qword [rbp - 0x18], 7
cmp rbx, 8
jae 0x140058a33
mov qword [rbp - 0x20], rbx
add rbx, rbx
mov r8, rbx
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.1400953c0
mov word [rbp + rbx - 0x30], si
jmp 0x140058acd
mov rdi, rbx
or rdi, 7
cmp rdi, rdx
jbe 0x140058a44
mov rdi, rdx
jmp 0x140058a4c
cmp rdi, 0xa
cmovb rdi, r8
mov rcx, rdi
add rcx, 1
cmovb rcx, r9
cmp rcx, r10
ja 0x140058bdc
add rcx, rcx
cmp rcx, 0x1000
jb 0x140058a98
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140058bdc
mov rcx, rax
call fcn.140093068
test rax, rax
je 0x140058be8
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140058aa5
test rcx, rcx
je 0x140058aa5
call fcn.140093068
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.1400953c0
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 0x140058b0e
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 0x140058b1b
lea r8, [rbp - 0x30]
mov rcx, r12
call fcn.140066590
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140058b5b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058b56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058be8
call fcn.140092f40
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 0x140058bb2
movabs rdx, 0x7ffffffffffffffe
mov r8d, 0xa
lea r9, [r8 - 0xb]
movabs r10, 0x7fffffffffffffff
inc edi
mov dword [rbp - 0x10], edi
jmp 0x1400589b0
add r15, 2
inc edi
mov dword [rbp - 0x10], edi
jmp 0x1400589b0
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.140029820
int3
call fcn.1400298e0
int3
call fcn.14006fa90
int3