Function at 0x18007d790
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
sub rsp, 0xb0
mov rdi, qword [rsp + 0xe8]
xor r13d, r13d
mov rbp, rcx
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x34], r13d
mov rcx, r13
mov ebx, r9d
mov rsi, rdx
mov qword [rax - 0x80], r13
mov qword [rax - 0x30], rcx
mov qword [rax - 0x78], r13
mov byte [rax - 0x70], r13b
mov byte [rax - 0x6f], r13b
mov byte [rax - 0x6e], r13b
mov dword [rax - 0x6c], r13d
mov qword [rax - 0x40], r13
mov qword [rax - 0x38], r13
mov qword [rax - 0x28], r13
test rbp, rbp
je 0x18007d8a2
test rdi, rdi
je 0x18007d8a2
test ebx, 0xfffffff8
jne 0x18007d8a2
mov eax, 0xffffffff
cmp rdx, rax
ja 0x18007d8a2
lea rcx, [0x1800371a8]
mov qword [rdi], r13
call sub.msvcrt.dll_getenv
lea rcx, [rsp + 0x30]
test rax, rax
movzx eax, bl
setne byte [0x18026504c]
and al, 1
mov byte [rsp + 0x48], al
mov eax, ebx
shr eax, 1
and al, 1
mov byte [rsp + 0x49], al
mov eax, ebx
shr ebx, 3
shr eax, 2
and bl, 1
and al, 1
mov byte [rsp + 0x4b], bl
mov byte [rsp + 0x4a], al
call fcn.1802479a4
cmp byte [rsp + 0x48], r13b
je 0x18007d895
lea rdx, [0x1800371d4]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
lea rdx, [0x1800371e0]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
mov rcx, qword [rsp + 0x88]
mov ebx, r13d
jmp 0x18007d8a7
mov ebx, 0x8876086c
test ebx, ebx
js 0x18007d999
mov r9, qword [rsp + 0xe0]
lea rcx, [rsp + 0x50]
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x20], r13
call fcn.180072730
mov ebx, eax
test eax, eax
js 0x18007d991
movzx eax, byte [rsp + 0x70]
test al, 4
jne 0x18007d91f
test al, 8
jne 0x18007d91f
lea rcx, [rsp + 0x30]
test al, 2
je 0x18007d8f8
lea rdx, [rsp + 0x50]
call fcn.18007d0e0
jmp 0x18007d92e
mov rdx, qword [rsp + 0xe0]
lea rax, [rsi + 3]
mov r9, rbp
shr rax, 2
mov r8b, 1
lea rax, [rbp + rax*4]
mov qword [rsp + 0x20], rax
call fcn.180077480
jmp 0x18007d92e
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1800828d0
mov esi, eax
cmp byte [rsp + 0x48], r13b
je 0x18007d948
lea rdx, [0x1800371fc]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
mov ecx, dword [rsp + 0x30]
inc ecx
test rdi, rdi
jne 0x18007d95a
mov ebx, 0x8876086c
jmp 0x18007d964
mov rdx, rdi
call fcn.180243a04
mov ebx, eax
test ebx, ebx
js 0x18007d991
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsp + 0x30]
mov byte [r11 + rbx], r13b
mov ebx, esi
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x18007d9ac
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x88], r13
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x18007d9c7
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x90], r13
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x18007d9e5
mov ecx, 4
call sub.msvcrt.dll_setlocale
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
lea r11, [rsp + 0xb0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret