Function at 0x6865bc60
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov r12, qword [rsp + 0x110]
mov r14d, ecx
mov rsi, rdx
mov edi, r8d
mov rbx, r9
and r14d, 0x3000
call sub.msvcrt.dll__errno
lea rcx, str.PRINTF_EXPONENT_DIGITS
mov r15d, dword [rax]
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], r14d
mov dword [rsp + 0x7c], 0xffffffff
mov dword [rsp + 0x80], 0xffffffff
mov dword [rsp + 0x84], 0xfffffffd
mov word [rsp + 0x88], 0
mov dword [rsp + 0x8c], 0
mov word [rsp + 0x90], 0
mov dword [rsp + 0x94], 0
mov dword [rsp + 0x98], edi
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6865bd10
movsx edx, byte [rax]
mov eax, 2
sub edx, 0x30
cmp edx, 2
jbe 0x6865bd1d
call fcn.686600a0
and eax, 1
neg eax
add eax, 3
mov dword [rsp + 0x9c], eax
mov eax, r14d
or ah, 2
mov dword [rsp + 0x3c], eax
nop
movsx ecx, byte [rbx]
lea rsi, [rbx + 1]
test ecx, ecx
je 0x6865bdf1
cmp ecx, 0x25
jne 0x6865be10
mov dword [rsp + 0x78], r14d
mov dword [rsp + 0x80], 0xffffffff
xor r10d, r10d
mov dword [rsp + 0x7c], 0xffffffff
movzx eax, byte [rbx + 1]
xor r13d, r13d
mov rdi, rsi
lea r11, [rsp + 0x7c]
lea rbp, [0x686bed54]
test al, al
je 0x6865bddf
movsx ecx, al
sub eax, 0x20
lea rbx, [rdi + 1]
cmp al, 0x5a
jbe 0x6865be22
cmp ecx, 0x39
jg 0x6865c532
cmp r13d, 3
ja 0x6865c532
cmp ecx, 0x2f
jle 0x6865c532
test r13d, r13d
jne 0x6865c400
mov r13d, 1
test r11, r11
je 0x6865bdd4
mov eax, dword [r11]
test eax, eax
js 0x6865c4d4
lea eax, [rax + rax*4]
lea eax, [rcx + rax*2 - 0x30]
mov dword [r11], eax
movzx eax, byte [rdi + 1]
mov rdi, rbx
test al, al
jne 0x6865bd7d
mov rbx, rdi
movsx ecx, byte [rbx]
lea rsi, [rbx + 1]
test ecx, ecx
jne 0x6865bd3f
mov eax, dword [rsp + 0x94]
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x70]
mov rbx, rsi
call fcn.6865a740
jmp 0x6865bd30
movzx eax, al
movsxd rax, dword [rbp + rax*4]
add rax, rbp
jmp rax
sub r10d, 2
mov rax, r12
cmp r10d, 1
jbe case.0x6865be2d.51
mov rsi, qword [rax]
add r12, 8
test rsi, rsi
je 0x6865bef4
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov edx, eax
lea r8, [rsp + 0x70]
mov rcx, rsi
call fcn.6865a890
jmp 0x6865bd30
test r13d, r13d
jne 0x6865be80
cmp dword [rsp + 0x78], r14d
je 0x6865c51a
mov rdx, qword [r12]
lea rsi, [r12 + 8]
lea r8, [rsp + 0x70]
mov ecx, 0x78
mov r12, rsi
mov qword [rsp + 0x60], rdx
call fcn.6865acc0
jmp 0x6865bd30
cmp r10d, 4
mov rax, qword [r12]
je 0x6865c4a0
cmp r10d, 1
je 0x6865c4e3
cmp r10d, 2
je 0x6865becd
cmp r10d, 3
je 0x6865c584
mov edx, dword [rsp + 0x94]
add r12, 8
mov dword [rax], edx
jmp 0x6865bd30
mov ecx, r15d
call sub.msvcrt.dll_strerror
test rax, rax
mov rsi, rax
jne 0x6865be51
mov edx, 6
lea rsi, str._null_
jmp 0x6865be5b
movzx eax, byte [rdi + 1]
mov r10d, 2
mov r13d, 4
cmp al, 0x6c
jne 0x6865bdd8
lea rbx, [rdi + 2]
movzx eax, byte [rdi + 2]
mov r10b, 3
jmp 0x6865bdd8
movzx eax, byte [rdi + 1]
mov r10d, 3
mov r13d, 4
mov rdi, rbx
jmp 0x6865bddb
movzx eax, byte [rdi + 1]
mov r10d, 1
mov r13d, 4
cmp al, 0x68
jne 0x6865bdd8
lea rbx, [rdi + 2]
movzx eax, byte [rdi + 2]
mov r10b, 4
jmp 0x6865bdd8
mov eax, dword [rsp + 0x78]
lea rsi, [r12 + 8]
or eax, 0x20
test al, 4
mov dword [rsp + 0x78], eax
je 0x6865c391
mov rax, qword [r12]
fld xword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
mov r12, rsi
fstp xword [rsp + 0x40]
call fcn.6865b5e0
jmp 0x6865bd30
mov eax, dword [rsp + 0x78]
lea rsi, [r12 + 8]
or eax, 0x20
test al, 4
mov dword [rsp + 0x78], eax
je 0x6865c3b1
mov rax, qword [r12]
fld xword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
mov r12, rsi
fstp xword [rsp + 0x40]
call fcn.6865b4f0
jmp 0x6865bd30
mov eax, dword [rsp + 0x78]
lea rsi, [r12 + 8]
or eax, 0x20
test al, 4
mov dword [rsp + 0x78], eax
je 0x6865c301
mov rax, qword [r12]
fld xword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
mov r12, rsi
fstp xword [rsp + 0x40]
call fcn.6865bbb0
jmp 0x6865bd30
sub r10d, 2
mov rax, r12
mov dword [rsp + 0x80], 0xffffffff
cmp r10d, 1
jbe 0x6865c31b
mov eax, dword [rax]
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x60]
mov edx, 1
add r12, 8
mov byte [rsp + 0x60], al
call fcn.6865a890
jmp 0x6865bd30
or dword [rsp + 0x78], 0x80
cmp r10d, 3
je 0x6865c47c
cmp r10d, 2
je 0x6865c4f6
movsxd rax, dword [r12]
cmp r10d, 1
lea rdx, [r12 + 8]
mov qword [rsp + 0x60], rax
je 0x6865c549
cmp r10d, 4
mov r12, rdx
je 0x6865c598
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x70]
call fcn.6865a9f0
jmp 0x6865bd30
cmp r10d, 3
je 0x6865c48e
cmp r10d, 2
je 0x6865c508
lea rax, [r12 + 8]
mov r12d, dword [r12]
cmp r10d, 1
mov qword [rsp + 0x60], r12
je 0x6865c55c
cmp r10d, 4
mov r12, rax
je 0x6865c5a8
cmp ecx, 0x75
je 0x6865c0c1
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
call fcn.6865acc0
jmp 0x6865bd30
mov eax, dword [rsp + 0x78]
lea rsi, [r12 + 8]
or eax, 0x20
test al, 4
mov dword [rsp + 0x78], eax
je 0x6865c356
mov rax, qword [r12]
fld xword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
mov r12, rsi
fstp xword [rsp + 0x40]
call fcn.6865b780
jmp 0x6865bd30
or dword [rsp + 0x78], 4
mov r13d, 4
movzx eax, byte [rdi + 1]
mov rdi, rbx
jmp 0x6865bddb
cmp r13d, 1
jbe 0x6865c4b2
movzx eax, byte [rdi + 1]
mov r13d, 4
mov rdi, rbx
jmp 0x6865bddb
test r13d, r13d
jne 0x6865bdd4
or dword [rsp + 0x78], 0x400
movzx eax, byte [rdi + 1]
mov rdi, rbx
jmp 0x6865bddb
test r13d, r13d
jne 0x6865bdd4
or dword [rsp + 0x78], 0x100
movzx eax, byte [rdi + 1]
mov rdi, rbx
jmp 0x6865bddb
test r11, r11
je 0x6865c19a
test r13d, 0xfffffffd
jne 0x6865c450
mov eax, dword [r12]
lea rdx, [r12 + 8]
test eax, eax
mov dword [r11], eax
js 0x6865c56e
movzx eax, byte [rdi + 1]
mov r12, rdx
xor r11d, r11d
mov rdi, rbx
jmp 0x6865bddb
test r13d, r13d
jne 0x6865bdd4
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x30], r11
or dword [rsp + 0x78], 0x1000
mov dword [rsp + 0x5c], 0
call sub.msvcrt.dll_localeconv
mov rdx, qword [rax + 8]
lea r9, [rsp + 0x5c]
lea rcx, [rsp + 0x5a]
mov r8d, 0x10
call fcn.6865fc00
test eax, eax
mov r10d, dword [rsp + 0x28]
mov r11, qword [rsp + 0x30]
jle 0x6865c28c
movzx edx, word [rsp + 0x5a]
mov word [rsp + 0x90], dx
mov dword [rsp + 0x8c], eax
movzx eax, byte [rdi + 1]
jmp 0x6865bdd8
lea rdx, [rsp + 0x70]
call fcn.6865a740
jmp 0x6865bd30
test r13d, r13d
jne 0x6865bdd4
or dword [rsp + 0x78], 0x800
movzx eax, byte [rdi + 1]
mov rdi, rbx
jmp 0x6865bddb
test r13d, r13d
jne 0x6865bdd4
or dword [rsp + 0x78], 0x40
movzx eax, byte [rdi + 1]
mov rdi, rbx
jmp 0x6865bddb
mov eax, dword [rsp + 0x78]
lea rsi, [r12 + 8]
test al, 4
jne 0x6865c018
fld qword [r12]
jmp 0x6865c01e
mov dword [rsp + 0x80], 0xffffffff
mov eax, dword [r12]
lea rsi, [r12 + 8]
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x5a]
mov edx, 1
mov r12, rsi
mov word [rsp + 0x5a], ax
call fcn.6865a7a0
jmp 0x6865bd30
mov eax, dword [rsp + 0x78]
lea rsi, [r12 + 8]
test al, 4
jne 0x6865c148
fld qword [r12]
jmp 0x6865c14e
test r13d, r13d
jne case.0x6865be2d.1
or dword [rsp + 0x78], 0x200
movzx eax, byte [rdi + 1]
mov rdi, rbx
jmp 0x6865bddb
mov eax, dword [rsp + 0x78]
lea rsi, [r12 + 8]
test al, 4
jne 0x6865bf98
fld qword [r12]
jmp 0x6865bf9e
mov eax, dword [rsp + 0x78]
lea rsi, [r12 + 8]
test al, 4
jne 0x6865bfd8
fld qword [r12]
jmp 0x6865bfde
movzx eax, byte [rdi + 1]
mov r10d, 3
mov r13d, 4
cmp al, 0x36
je 0x6865c465
cmp al, 0x33
jne 0x6865bdd8
cmp byte [rdi + 2], 0x32
jne 0x6865bdd8
lea rbx, [rdi + 3]
movzx eax, byte [rdi + 3]
mov r10b, 2
jmp 0x6865bdd8
cmp r13d, 2
mov eax, 3
cmove r13d, eax
jmp 0x6865bdba
mov rsi, qword [r12]
lea rax, [0x686bed28]
lea rdi, [r12 + 8]
mov r12, rdi
test rsi, rsi
cmove rsi, rax
mov rcx, rsi
call sub.msvcrt.dll_wcslen
lea r8, [rsp + 0x70]
mov edx, eax
mov rcx, rsi
call fcn.6865a7a0
jmp 0x6865bd30
movzx eax, byte [rdi + 1]
xor r11d, r11d
mov r13d, 4
mov rdi, rbx
jmp 0x6865bddb
cmp byte [rdi + 2], 0x34
jne 0x6865bdd8
lea rbx, [rdi + 3]
movzx eax, byte [rdi + 3]
jmp 0x6865bdd8
mov rax, qword [r12]
add r12, 8
mov qword [rsp + 0x60], rax
jmp 0x6865c0c1
mov rax, qword [r12]
add r12, 8
mov qword [rsp + 0x60], rax
jmp 0x6865c10e
mov edx, dword [rsp + 0x94]
add r12, 8
mov byte [rax], dl
jmp 0x6865bd30
mov dword [rsp + 0x80], 0
lea r11, [rsp + 0x80]
movzx eax, byte [rdi + 1]
mov r13d, 2
jmp 0x6865bdd8
sub ecx, 0x30
mov dword [r11], ecx
movzx eax, byte [rdi + 1]
jmp 0x6865bdd8
mov edx, dword [rsp + 0x94]
add r12, 8
mov word [rax], dx
jmp 0x6865bd30
movsxd rax, dword [r12]
add r12, 8
mov qword [rsp + 0x60], rax
jmp 0x6865c0c1
mov eax, dword [r12]
add r12, 8
mov qword [rsp + 0x60], rax
jmp 0x6865c10e
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x80], 0x10
mov dword [rsp + 0x78], eax
jmp 0x6865be80
lea rdx, [rsp + 0x70]
mov ecx, 0x25
mov rbx, rsi
call fcn.6865a740
jmp 0x6865bd30
movsx rax, word [rsp + 0x60]
mov r12, rdx
mov qword [rsp + 0x60], rax
jmp 0x6865c0c1
movzx edx, word [rsp + 0x60]
mov r12, rax
mov qword [rsp + 0x60], rdx
jmp 0x6865c10e
test r13d, r13d
jne 0x6865c5b7
or dword [rsp + 0x78], 0x400
neg dword [rsp + 0x7c]
jmp 0x6865c216
movsxd rdx, dword [rsp + 0x94]
add r12, 8
mov qword [rax], rdx
jmp 0x6865bd30
movsx rax, byte [rsp + 0x60]
mov qword [rsp + 0x60], rax
jmp 0x6865c0c1
movzx eax, byte [rsp + 0x60]
mov qword [rsp + 0x60], rax
jmp 0x6865c10e
mov dword [rsp + 0x80], 0xffffffff
mov r12, rdx
movzx eax, byte [rdi + 1]
xor r11d, r11d
jmp 0x6865bdd8