Function at 0x14008d660
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x38], 0
lea rax, [rsp + 0x39]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0xb8], 0
je 0x14008d6f6
lea rax, [0x1401affb0]
test rax, rax
je 0x14008d6f6
lea rdx, [0x1401affc0]
mov rcx, qword [rsp + 0xb8]
call sub.MSVCR110.dll_strcmp
test eax, eax
jne 0x14008d6f6
mov dword [rsp + 0x48], 1
jmp 0x14008d773
mov rcx, qword [rsp + 0xb8]
call sub.MSVCR110.dll_strlen
cmp rax, 0xe
jb 0x14008d76b
mov rcx, qword [rsp + 0xb8]
call sub.MSVCR110.dll_strlen
mov rcx, qword [rsp + 0xb8]
lea rax, [rcx + rax - 0xd]
test rax, rax
je 0x14008d76b
lea rax, [0x1401affd0]
test rax, rax
je 0x14008d76b
mov rcx, qword [rsp + 0xb8]
call sub.MSVCR110.dll_strlen
mov rcx, qword [rsp + 0xb8]
lea rax, [rcx + rax - 0xd]
lea rdx, [0x1401affe0]
mov rcx, rax
call sub.MSVCR110.dll_strcmp
test eax, eax
jne 0x14008d76b
mov dword [rsp + 0x48], 2
jmp 0x14008d773
mov dword [rsp + 0x48], 3
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 1
je 0x14008d888
cmp dword [rsp + 0x68], 2
je 0x14008da88
cmp dword [rsp + 0x68], 3
je 0x14008d79d
jmp 0x14008dcc2
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.14008be50
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14008d7c9
mov rax, qword [rsp + 0x50]
jmp 0x14008dcc4
mov rcx, qword [rsp + 0xb8]
call sub.MSVCR110.dll_getenv
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14008d7ed
mov rax, qword [rsp + 0x50]
jmp 0x14008dcc4
lea rdx, [0x1401afff0]
mov rcx, qword [rsp + 0xb8]
call sub.MSVCR110.dll_strcmp
test eax, eax
jne 0x14008d859
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.14008c610
cmp qword [rsp + 0x50], 0
jne 0x14008d857
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.14008c610
jmp 0x14008d87e
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.14008c610
mov rax, qword [rsp + 0x50]
jmp 0x14008dcc4
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x220], 0
je 0x14008d8c1
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x220]
call fcn.14007bfb0
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0x220], 0
mov rcx, qword [rsp + 0xb8]
call sub.MSVCR110.dll_getenv
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x14008d8f0
mov rcx, qword [rsp + 0x60]
call sub.MSVCR110.dll_strlen
add rax, 1
mov qword [rsp + 0x40], rax
jmp 0x14008d905
mov qword [rsp + 0x40], 0
lea rax, [0x1401cd7ff]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.14008c610
cmp qword [rsp + 0x58], 0
je 0x14008d947
mov rcx, qword [rsp + 0x58]
call sub.MSVCR110.dll_strlen
add rax, 1
mov qword [rsp + 0x30], rax
jmp 0x14008d95c
mov qword [rsp + 0x30], 0
lea rax, [0x1401cd800]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x30], 0
jne 0x14008d973
cmp qword [rsp + 0x40], 0
jne 0x14008d973
xor eax, eax
jmp 0x14008dcc4
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
lea rax, [rax + rcx + 1]
mov rdx, rax
mov ecx, 1
call sub.MSVCR110.dll_calloc
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x220], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x220], 0
jne 0x14008d9b7
xor eax, eax
jmp 0x14008dcc4
mov r8d, 0x3b
lea rdx, [0x1401afffc]
lea rcx, [rsp + 0x38]
call sub.MSVCR110.dll_sprintf
cmp qword [rsp + 0x58], 0
je 0x14008d9e2
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
jmp 0x14008d9ee
lea rax, [0x1401cd801]
mov qword [rsp + 0x70], rax
lea rax, [0x1401cd802]
cmp qword [rsp + 0x58], rax
je 0x14008da10
cmp qword [rsp + 0x60], 0
je 0x14008da10
lea rax, [rsp + 0x38]
mov qword [rsp + 0x78], rax
jmp 0x14008da1c
lea rax, [0x1401cd803]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x60], 0
je 0x14008da33
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
jmp 0x14008da42
lea rax, [0x1401cd804]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
lea rdx, [0x1401b0000]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x220]
call sub.MSVCR110.dll_sprintf
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x220]
jmp 0x14008dcc4
mov rcx, qword [rsp + 0xb8]
call fcn.14008eb20
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x228], 0
je 0x14008dace
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x228]
call fcn.14007bfb0
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0x228], 0
mov rcx, qword [rsp + 0xb8]
call sub.MSVCR110.dll_getenv
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x14008dafd
mov rcx, qword [rsp + 0x60]
call sub.MSVCR110.dll_strlen
add rax, 1
mov qword [rsp + 0x40], rax
jmp 0x14008db12
mov qword [rsp + 0x40], 0
lea rax, [0x1401cd805]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x198]
and eax, 4
test eax, eax
jne 0x14008db55
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.14008c610
cmp qword [rsp + 0x58], 0
je 0x14008db72
mov rcx, qword [rsp + 0x58]
call sub.MSVCR110.dll_strlen
add rax, 1
mov qword [rsp + 0x30], rax
jmp 0x14008db87
mov qword [rsp + 0x30], 0
lea rax, [0x1401cd806]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x30], 0
jne 0x14008db9e
cmp qword [rsp + 0x40], 0
jne 0x14008db9e
xor eax, eax
jmp 0x14008dcc4
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
lea rax, [rax + rcx + 3]
mov rdx, rax
mov ecx, 1
call sub.MSVCR110.dll_calloc
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x228], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x228], 0
jne 0x14008dbe2
xor eax, eax
jmp 0x14008dcc4
mov r8d, 0x3b
lea rdx, [0x1401b0008]
lea rcx, [rsp + 0x38]
call sub.MSVCR110.dll_sprintf
cmp qword [rsp + 0x58], 0
je 0x14008dc10
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x88], rax
jmp 0x14008dc1f
lea rax, [0x1401cd807]
mov qword [rsp + 0x88], rax
lea rax, [0x1401cd808]
cmp qword [rsp + 0x58], rax
je 0x14008dc44
cmp qword [rsp + 0x60], 0
je 0x14008dc44
lea rax, [rsp + 0x38]
mov qword [rsp + 0x90], rax
jmp 0x14008dc53
lea rax, [0x1401cd809]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x60], 0
je 0x14008dc6a
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x98], rax
jmp 0x14008dc79
lea rax, [0x1401cd80a]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
lea rdx, [0x1401b000c]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x228]
call sub.MSVCR110.dll_sprintf
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x228]
jmp 0x14008dcc4
xor eax, eax
add rsp, 0xa0
pop rdi
ret