Function at 0x180087590
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r12, rcx
mov r14, r8
imul ecx, r9d, 0xc6
mov r13d, r9d
mov dword [rsp + 0x20], ecx
cmp r9d, ecx
ja 0x180087692
mov ebp, dword [rsp + 0xa8]
xor ebx, ebx
mov r15d, dword [rsp + 0xa8]
mov esi, dword [rsp + 0xa8]
cmp r13d, 0x17b8
ja 0x18008794e
je 0x1800878d5
cmp r13d, 0x872
ja 0x18008774e
je 0x180087737
cmp r13d, 0x2e
je 0x1800876f9
cmp r13d, 0x5e
je 0x1800876e2
cmp r13d, 0x108
je 0x1800876c5
cmp r13d, 0x468
jne 0x180087aa0
cmp dword [rdx], ebx
je 0x180087675
mov rdx, qword [r14]
mov eax, dword [rdx + 0x18]
test eax, eax
je 0x180087655
lea ecx, [rax - 1]
mov rax, qword [rdx + 0x28]
mov ecx, dword [rax + rcx*8]
cmp dword [r12], ecx
jbe 0x180087675
mov eax, 0x78
nop word [rax + rax]
cmp eax, 0x78
je 0x180087ac1
add eax, 0x32a0
cmp eax, 0x32a0
jbe 0x180087660
mov rax, qword [r14]
cmp dword [rax + 0x18], ebx
jne 0x180087a9c
mov eax, 0x70
cmp eax, 0x70
je 0x1800876af
cmp eax, 0x105
jne 0x1800876b4
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x30], rbx
add eax, 0x95
cmp eax, 0x19a
jb 0x180087686
jmp 0x180087a9c
mov rax, qword [r14]
mov dword [rsp + 0x24], ebx
cmp dword [rax], 0x7f2bb705
je 0x180087aa0
mov dword [rsp + 0x30], 0x7f2bb705
jmp 0x180087692
mov rax, qword [r14]
test rax, rax
je 0x1800876f4
cmp qword [rax + 0x28], rbx
jne 0x180087aa0
mov rax, rbx
jmp 0x180087697
mov edi, 0xed
nop
mov eax, edi
sub eax, 0xec
je 0x180087692
cmp eax, 1
jne 0x18008771c
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x30], rax
dec edi
cmp edi, 0xeb
ja 0x180087700
mov ecx, dword [rsp + 0x20]
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x30], eax
jmp 0x180087aa0
mov rcx, qword [r14]
mov eax, dword [rcx + 0x18]
cmp dword [rcx + 0x24], eax
jb 0x180087a9c
mov dword [rcx + 0x24], ebx
jmp 0x180087a9c
mov eax, r13d
sub eax, 0xc60
je 0x1800878c4
sub eax, 0x1c
je 0x18008786c
sub eax, 0x40a
je 0x18008785f
cmp eax, 0x40a
jne 0x180087aa0
cmp r15d, ebp
jg 0x180087aa0
nop dword [rax]
nop dword [rax + rax]
mov r10d, 0xf1
nop word [rax + rax]
cmp r10d, 0xf1
je 0x180087837
cmp r10d, 0x296c
je 0x1800877e2
cmp r10d, 0x51e7
jne 0x18008783d
mov rax, qword [r14]
mov r9d, dword [r12]
movsxd rdx, esi
mov rcx, qword [rax + 0x28]
lea eax, [rsi - 1]
cmp r9d, dword [rcx + rdx*8]
cmovae eax, ebp
mov ebp, eax
lea eax, [rsi + 1]
cmovae r15d, eax
jmp 0x18008783d
mov r8, qword [r14]
movsxd rax, esi
lea r9, [rax*8]
mov rax, qword [r8 + 0x28]
mov ecx, dword [r9 + rax]
cmp dword [r12], ecx
jne 0x18008783d
mov edx, 0xe3
mov eax, edx
sub eax, 0xe2
je 0x180087692
cmp eax, 1
jne 0x18008782b
lea eax, [rsi + 1]
mov dword [r8 + 0x24], eax
mov r8, qword [r14]
mov rcx, qword [r8 + 0x28]
add rcx, r9
mov qword [rsp + 0x30], rcx
dec edx
cmp edx, 0xe1
ja 0x180087803
jmp 0x18008783d
lea esi, [r15 + rbp]
shr esi, 1
add r10d, 0x287b
cmp r10d, 0x7971
jbe 0x1800877a0
cmp r15d, ebp
jle 0x180087790
jmp 0x180087a9c
mov rax, qword [r14]
mov ebp, dword [rax + 0x18]
dec ebp
jmp 0x180087aa0
mov rax, qword [r14]
mov ecx, dword [rax + 0x24]
mov rax, qword [rax + 0x28]
mov ecx, dword [rax + rcx*8]
cmp dword [r12], ecx
jne 0x1800878bc
mov r9d, 0x2b
mov eax, r9d
sub eax, 0x2b
je 0x180087898
cmp eax, 1
je 0x180087692
jmp 0x1800878b3
mov r8, qword [r14]
mov edx, dword [r8 + 0x24]
mov rax, qword [r8 + 0x28]
lea rcx, [rax + rdx*8]
lea eax, [rdx + 1]
mov qword [rsp + 0x30], rcx
mov dword [r8 + 0x24], eax
inc r9d
cmp r9d, 0x2d
jb 0x180087885
mov r15d, ebx
jmp 0x180087a9c
mov rax, qword [r14]
mov rdi, qword [rax + 0x70]
mov qword [rsp + 0x38], rdi
jmp 0x180087aa0
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x7f2bb70b
je 0x180087913
mov ecx, 0x23
nop word [rax + rax]
mov eax, ecx
sub eax, 0x22
je 0x180087692
cmp eax, 1
jne 0x180087908
mov dword [rsp + 0x30], 0x7f2bb70b
dec ecx
cmp ecx, 0x21
ja 0x1800878f0
mov ecx, dword [rsp + 0x20]
mov rax, qword [r14]
dec dword [rax + 0x30]
cmp dword [rax + 0x30], ebx
jle 0x180087aa0
mov eax, 0x4b
cmp eax, 0x4b
je 0x180087939
cmp eax, 0x627
je 0x180087692
jmp 0x18008793d
mov dword [rsp + 0x30], ebx
add eax, 0x5dc
cmp eax, 0xbb8
jbe 0x180087927
jmp 0x180087aa0
cmp r13d, 0x2e68
ja 0x180087a48
je 0x180087a3f
cmp r13d, 0x189a
je 0x1800879e0
cmp r13d, 0x1ca4
je 0x1800879d6
cmp r13d, 0x20ae
je 0x180087692
cmp r13d, 0x2310
jne 0x180087aa0
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1800879a6
mov rax, qword [rcx + 8]
call qword [rax + 0x18]
mov dword [rsp + 0x24], eax
cmp qword [rdi + 0x18], rbx
je 0x180087a9c
mov rdi, qword [rdi + 0x18]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x180087a9c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x180087a9c
mov qword [rsp + 0x30], rbx
jmp 0x180087aa0
cmp dword [rdx], ebx
je 0x180087aa0
mov edi, 0x56
nop dword [rax]
mov eax, edi
sub eax, 0x56
je 0x180087a02
cmp eax, 1
je 0x180087692
jmp 0x180087a36
mov eax, dword [r12]
lea r8, [rsp + 0x28]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x40]
mov rax, qword [r14]
lea rcx, [rsp + 0x30]
mov r9d, 0x49
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], r15d
call fcn.18008e610
mov qword [rsp + 0x30], rax
inc edi
cmp edi, 0x58
jb 0x1800879f0
jmp 0x180087a9c
mov rdx, qword [r14]
add rdx, 0x70
jmp 0x180087a8c
cmp r13d, 0x39c0
je 0x180087a6d
cmp r13d, 0x4518
je 0x18008772a
cmp r13d, 0x5070
je 0x180087692
jmp 0x180087aa0
mov rdx, qword [r14]
add rdx, 0x10
cmp qword [rdx], rbx
je 0x180087a89
mov r9d, 0xe6
xor r8d, r8d
xor ecx, ecx
call fcn.18008d780
mov rdx, r14
mov r9d, 0xe6
xor r8d, r8d
xor ecx, ecx
call fcn.18008d780
mov ecx, dword [rsp + 0x20]
imul eax, dword [rsp + 0xa8], 0xb
add r13d, eax
cmp r13d, ecx
ja 0x180087692
mov rdx, qword [rsp + 0x98]
jmp 0x1800875e3
mov eax, dword [rdx + 0x18]
lea r8, [rsp + 0xa8]
mov dword [rsp + 0xa8], eax
lea rcx, [rsp + 0x30]
mov eax, dword [r12]
mov r9d, 0x49
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x30], eax
call fcn.18008e610
jmp 0x180087697