Function at 0x1400255b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x1400820c0]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rsi, rcx
xor r15d, r15d
xor r14b, r14b
test edx, edx
je 0x14002597c
cmp edx, 1
jne 0x140025dcc
lea r8, [rcx + 0x20]
cmp qword [r8 + 0x18], 7
jbe 0x14002560c
mov r8, qword [r8]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rsi, rax
test rax, rax
jne 0x14002573e
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x18], xmm1
lea r8d, [rax + 6]
lea rdx, [0x14006e87c]
lea rcx, [rbp + 8]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp + 8]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140009620
nop
lea rax, str.OpenEvent_failed
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x10
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x80], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x70], xmm0
lea r9, [rbp + 0x50]
lea r8d, [rsi + 4]
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x40]
call fcn.140007190
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400256f7
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400256f7
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400256f7
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x14002586b
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025731
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025e02
call fcn.140038e94
mov r14b, 1
jmp 0x140025dcc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEvent]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov r8d, 6
lea rdx, [0x14006e87c]
test eax, eax
je 0x140025873
movups xmmword [rbp - 0x60], xmm0
movdqu xmmword [rbp - 0x50], xmm1
lea rcx, [rbp - 0x60]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140009620
nop
lea rax, str.Event_set_successfully
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x16
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x80], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x70], xmm0
lea r9, [rbp + 0x50]
mov r8d, 2
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x40]
call fcn.140007190
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140025827
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140025827
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140025827
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140025862
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002585d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025e02
call fcn.140038e94
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14b, 1
jmp 0x140025dcc
movups xmmword [rbp - 0x40], xmm0
movdqu xmmword [rbp - 0x30], xmm1
lea rcx, [rbp - 0x40]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140009620
nop
lea rax, str.SetEvent_failed
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x80], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x70], xmm0
lea r9, [rbp + 0x50]
mov r8d, 4
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x40]
call fcn.140007190
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140025938
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140025938
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140025938
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140025dcc
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025972
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025e02
call fcn.140038e94
jmp 0x140025dcc
cmp qword [rcx + 0x10], r15
jne 0x140025dc0
mov r8d, 0x104
lea rdx, [rbp + 0x70]
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xorps xmm0, xmm0
test eax, eax
jne 0x140025abd
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
lea r8d, [rax + 6]
lea rdx, [0x14006e87c]
lea rcx, [rbp - 0x40]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140009620
nop
lea rax, str.Could_not_retrieve_Program_Files_directory
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x2a
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x80], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x70], xmm0
lea r9, [rbp + 0x50]
mov r8d, 4
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x40]
call fcn.140007190
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140025a7b
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140025a7b
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140025a7b
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140025ab6
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025ab1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025dfc
call fcn.140038e94
xor al, al
jmp 0x140025dd0
movups xmmword [rbp + 0x28], xmm0
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], r15
lea rax, [rbp + 0x70]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], r15w
jne 0x140025ae0
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x28]
call fcn.140010310
nop
mov r8d, 0x12
lea rdx, str.Switch_atelis.exe
lea rcx, [rbp + 0x28]
call fcn.14000b8a0
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov r8d, 6
lea rdx, [0x14006e87c]
lea rcx, [rbp - 0x60]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140009620
nop
mov r9, qword [rbp + 0x38]
test r9, r9
jne 0x140025b71
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1400721a0]
movdqu xmmword [rbp - 0x10], xmm1
mov byte [rbp - 0x20], r9b
jmp 0x140025c13
lea r8, [rbp + 0x28]
cmp qword [rbp + 0x40], 7
cmova r8, qword [rbp + 0x28]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rdx, rbx
xor r8d, r8d
lea rcx, [rbp + 0x50]
call fcn.14000bc10
lea rax, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova rax, qword [rbp + 0x50]
lea r8, [rbp + 0x28]
cmp qword [rbp + 0x40], 7
cmova r8, qword [rbp + 0x28]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x38]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movups xmm0, xmmword [rbp + 0x50]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rbp + 0x60]
movups xmmword [rbp - 0x10], xmm1
movdqa xmm0, xmmword [0x1400721a0]
movdqu xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x50], 0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
lea rax, str.Atelis_path___
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x11
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x80], xmm0
movsd xmm1, qword [rsp + 0x60]
movsd qword [rbp - 0x70], xmm1
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
mov r8d, 1
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x40]
call fcn.140025f90
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140025ca9
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025ca4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025e08
call fcn.140038e94
movdqa xmm0, xmmword [0x1400721a0]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140025cf3
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140025cf3
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140025cf3
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140025d2e
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025d29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025e0e
call fcn.140038e94
lea rax, [rbp + 0x28]
cmp rsi, rax
je 0x140025d84
mov rbx, qword [rbp + 0x38]
lea r9, [rbp + 0x28]
cmp qword [rbp + 0x40], 7
cmova r9, qword [rbp + 0x28]
mov rax, qword [rsi + 0x18]
cmp rbx, rax
ja 0x140025d78
mov rdi, rsi
cmp rax, 7
jbe 0x140025d5e
mov rdi, qword [rsi]
mov qword [rsi + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rdi
call fcn.14005e240
mov word [rdi + rbx*2], r15w
jmp 0x140025d84
mov rdx, rbx
mov rcx, rsi
call fcn.140025e20
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 7
jbe 0x140025dc0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025dbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025dfc
call fcn.140038e94
mov rcx, rsi
call fcn.14002b820
movzx r14d, al
movzx eax, r14b
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140038a00
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140042e3c
int3
call fcn.140042e3c
nop
call fcn.140042e3c
nop
call fcn.140042e3c
int3