Function at 0x4030f0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test r8, r8
mov ebp, ecx
mov r15, rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
je 0x40343a
mov r10d, dword [0x0040907c]
test r10d, r10d
je 0x4033a5
cmp dword [0x00409060], 0xffffffff
je 0x403360
mov r9d, dword [0x0040e3d8]
xor eax, eax
test r9d, r9d
jne 0x403360
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rcx]
cmp dl, 0x2d
je 0x403392
mov r8d, dword [0x00409060]
test r8d, r8d
jne 0x4033c0
cmp dl, 0x2b
je 0x4034f5
test eax, eax
mov qword [0x0040e3d0], 0
je 0x403194
mov dword [0x00409064], 0xffffffff
mov dword [0x00409068], 0xffffffff
mov r13d, dword [rsp + 0xb8]
mov r12d, dword [rsp + 0xb8]
and r13d, 2
and r12d, 1
jmp 0x403229
lea rax, [0x0040a475]
test r13d, r13d
mov qword [0x00409070], rax
mov eax, r13d
jne 0x403450
test r12d, r12d
je 0x40343a
mov esi, dword [0x00409068]
cmp esi, 0xffffffff
je 0x4033e0
mov edi, dword [0x00409064]
mov r8d, ebx
cmp edi, 0xffffffff
je 0x40321f
mov ecx, esi
mov r9, r15
mov edx, edi
call fcn.00402c60
mov ebx, dword [0x0040907c]
sub esi, edi
mov eax, dword [0x0040e3d8]
mov dword [0x00409064], 0xffffffff
add esi, ebx
mov r8d, ebx
mov dword [0x00409068], esi
lea ebx, [r8 + 1]
mov dword [0x0040907c], ebx
test eax, eax
jne 0x403240
mov rax, qword [0x00409070]
movsx edi, byte [rax]
test dil, dil
jne 0x4034ed
mov ebx, dword [0x0040907c]
mov dword [0x0040e3d8], 0
cmp ebx, ebp
jge 0x4033f0
movsxd rax, ebx
mov rsi, qword [r15 + rax*8]
movsx edi, byte [rsi]
mov qword [0x00409070], rsi
cmp dil, 0x2d
jne 0x4031b0
movzx r14d, byte [rsi + 1]
test r14b, r14b
jne 0x403295
mov rcx, qword [rsp + 0x30]
mov edx, 0x2d
call sub.msvcrt.dll_strchr
test rax, rax
je 0x4031b0
mov eax, dword [0x00409068]
cmp eax, 0xffffffff
je 0x4032ad
cmp dword [0x00409064], 0xffffffff
je 0x403605
test r14b, r14b
je 0x4035c6
lea rdx, [rsi + 1]
cmp r14b, 0x2d
movsx edi, r14b
mov qword [0x00409070], rdx
mov r12, rdx
je 0x40364e
cmp qword [rsp + 0x38], 0
je 0x403486
movsxd rax, dword [0x0040907c]
cmp qword [r15 + rax*8], r12
je 0x403486
cmp dil, 0x2d
je 0x4035f3
test byte [rsp + 0xb8], 4
je 0x403486
xor eax, eax
cmp dil, 0x3a
je 0x403326
mov rcx, qword [rsp + 0x30]
movsx edx, dil
call sub.msvcrt.dll_strchr
test rax, rax
setne al
movzx eax, al
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0x38]
mov rcx, r15
mov rdx, qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
call fcn.00402da0
cmp eax, 0xffffffff
je 0x40347a
lea rcx, [0x0040a475]
mov qword [0x00409070], rcx
jmp 0x40343f
lea rcx, [0x0040a465]
call sub.msvcrt.dll_getenv
mov rcx, qword [rsp + 0x30]
test rax, rax
setne al
movzx eax, al
movzx edx, byte [rcx]
mov dword [0x00409060], eax
mov eax, dword [0x0040e3d8]
cmp dl, 0x2d
jne 0x403158
or dword [rsp + 0xb8], 2
add qword [rsp + 0x30], 1
jmp 0x403171
mov dword [0x0040e3d8], 1
mov dword [0x0040907c], 1
jmp 0x403128
and dword [rsp + 0xb8], 0xfffffffe
cmp dl, 0x2b
jne 0x403171
add qword [rsp + 0x30], 1
jmp 0x403171
mov dword [0x00409068], ebx
mov r8d, ebx
jmp 0x40321f
mov esi, dword [0x00409064]
lea rax, [0x0040a475]
mov qword [0x00409070], rax
cmp esi, 0xffffffff
je 0x403467
mov edi, dword [0x00409068]
mov r9, r15
mov r8d, ebx
mov edx, esi
mov ecx, edi
sub edi, esi
call fcn.00402c60
add dword [0x0040907c], edi
mov dword [0x00409064], 0xffffffff
mov dword [0x00409068], 0xffffffff
mov eax, 0xffffffff
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add ebx, 1
mov qword [0x0040e3d0], rsi
mov eax, 1
mov dword [0x0040907c], ebx
jmp 0x40343f
mov eax, dword [0x00409068]
cmp eax, 0xffffffff
je 0x403426
mov dword [0x0040907c], eax
jmp 0x403426
mov r12, qword [0x00409070]
movsx edi, byte [r12]
lea rbx, [r12 + 1]
cmp edi, 0x3a
mov qword [0x00409070], rbx
je 0x403585
cmp edi, 0x2d
je 0x4035ce
mov rcx, qword [rsp + 0x30]
mov edx, edi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x403585
cmp edi, 0x57
movzx edx, byte [rax + 1]
jne 0x4034ca
cmp qword [rsp + 0x38], 0
jne 0x403508
cmp dl, 0x3a
je 0x403610
cmp byte [r12 + 1], 0
mov eax, edi
jne 0x40343f
add dword [0x0040907c], 1
jmp 0x40343f
mov r12, rax
jmp 0x4032d2
and dword [rsp + 0xb8], 0xfffffffe
add qword [rsp + 0x30], 1
jmp 0x403171
cmp dl, 0x3b
jne 0x4034ca
cmp byte [r12 + 1], 0
jne 0x403719
mov eax, dword [0x0040907c]
add eax, 1
cmp ebp, eax
mov dword [0x0040907c], eax
jg 0x40370c
mov edx, dword [0x00409080]
lea rax, [0x0040a475]
mov qword [0x00409070], rax
test edx, edx
je 0x403563
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0x3a
je 0x403563
lea rcx, [0x0040a560]
mov edx, 0x57
call fcn.00402d20
mov rax, qword [rsp + 0x30]
mov dword [0x00409078], 0x57
cmp byte [rax], 0x3a
je 0x403702
mov eax, 0x3f
jmp 0x40343f
cmp byte [r12 + 1], 0
jne 0x403594
add dword [0x0040907c], 1
mov ecx, dword [0x00409080]
test ecx, ecx
je 0x4035b6
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0x3a
je 0x4035b6
lea rcx, [0x0040a4a0]
mov edx, edi
call fcn.00402d20
mov dword [0x00409078], edi
mov eax, 0x3f
jmp 0x40343f
mov r12, rsi
jmp 0x4032d2
cmp byte [r12 + 1], 0
jne 0x403594
mov rcx, qword [rsp + 0x30]
mov edx, 0x2d
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x4034b9
jmp 0x40343a
add r12, 1
xor eax, eax
mov qword [0x00409070], r12
jmp 0x403326
mov dword [0x00409064], ebx
jmp 0x4032ad
mov qword [0x0040e3d0], 0
cmp byte [r12 + 1], 0
je 0x4036a1
mov eax, dword [0x0040907c]
mov qword [0x0040e3d0], rbx
lea rcx, [0x0040a475]
add eax, 1
mov dword [0x0040907c], eax
mov eax, edi
mov qword [0x00409070], rcx
jmp 0x40343f
cmp byte [rsi + 2], 0
jne 0x4032d2
mov esi, dword [0x00409064]
lea r8d, [rbx + 1]
lea rcx, [0x0040a475]
mov dword [0x0040907c], r8d
mov qword [0x00409070], rcx
cmp esi, 0xffffffff
je 0x403426
mov ecx, eax
mov r9, r15
mov edx, esi
mov dword [rsp + 0x30], eax
call fcn.00402c60
mov eax, dword [rsp + 0x30]
sub eax, esi
add dword [0x0040907c], eax
jmp 0x403426
cmp byte [rax + 2], 0x3a
mov eax, dword [0x0040907c]
je 0x403630
add eax, 1
cmp ebp, eax
mov dword [0x0040907c], eax
jg 0x403740
lea rax, [0x0040a475]
mov qword [0x00409070], rax
mov eax, dword [0x00409080]
test eax, eax
je 0x4036ee
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0x3a
je 0x4036ee
lea rcx, [0x0040a560]
mov edx, edi
call fcn.00402d20
mov rax, qword [rsp + 0x30]
mov dword [0x00409078], edi
cmp byte [rax], 0x3a
jne 0x40357b
mov eax, 0x3a
jmp 0x40343f
cdqe
mov rax, qword [r15 + rax*8]
mov qword [0x00409070], rax
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0x38]
mov rcx, r15
mov rdx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
call fcn.00402da0
jmp 0x40334d
movsxd rdx, eax
mov rdx, qword [r15 + rdx*8]
mov qword [0x0040e3d0], rdx
jmp 0x403630