Function at 0x140002480
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x340]
sub rsp, 0x440
mov rsi, rcx
xor r8d, r8d
xor edi, edi
mov dword [rbp + 0x368], r8d
lea rcx, str.HW_IPCLIB_DEBUG
mov dword [rbp + 0x370], edi
mov dword [0x140006260], edi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400024db
lea rdx, [0x140004540]
lea rcx, str.c:_tmp_inpipe.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x140006250], rax
mov qword [rsp + 0x460], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x438], r12
mov edx, 0x400
mov qword [rsp + 0x430], r13
mov qword [rsp + 0x428], r14
mov qword [rsp + 0x420], r15
call fcn.1400031d0
test eax, eax
jne 0x1400025a7
cmp qword [0x140006248], rdi
je 0x140002ace
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [0x140006248]
cmp rcx, rax
jne 0x140002560
lea r9, str.Could_not_read_number_of_vectors_from_data_stream
lea r8, str.Message:
lea rdx, str._s__s_n
call fcn.140003080
mov eax, 2
jmp 0x14000289b
mov r8d, 1
lea rdx, [0x140004570]
call fcn.140003080
test eax, eax
js 0x140002ace
mov rcx, qword [0x140006248]
lea rdx, str._zd
mov r8d, 0x31
call fcn.140003080
test eax, eax
js 0x140002ace
lea r8, str.Could_not_read_number_of_vectors_from_data_stream
jmp 0x140002aaa
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atol]
mov dword [rsi], eax
lea rcx, [rsp + 0x20]
test eax, eax
js 0x140002ad8
mov edx, 0x400
call fcn.1400031d0
test eax, eax
jne 0x1400025db
cmp qword [0x140006248], rdi
jmp 0x140002a47
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atol]
mov dword [rsi + 0x18], eax
test eax, eax
js 0x140002af9
movsxd rcx, dword [rsi]
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movsxd rcx, dword [rsi]
shl rcx, 2
mov qword [rsi + 0x10], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movsxd rcx, dword [rsi + 0x18]
shl rcx, 3
mov qword [rsi + 8], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsi + 0x20], rax
xor r13d, r13d
mov eax, dword [rsi]
add eax, dword [rsi + 0x18]
test eax, eax
jle 0x140002887
xor r14d, r14d
lea r15, [r13 - 1]
xor r12d, r12d
xor ebx, ebx
mov qword [rbp + 0x378], rbx
nop dword [rax + rax]
mov edx, 0x400
lea rcx, [rsp + 0x20]
call fcn.1400031d0
test eax, eax
je 0x140002a3f
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atol]
test eax, eax
je 0x140002737
cmp eax, 3
jne 0x140002876
mov edx, 0x400
lea rcx, [rsp + 0x20]
call fcn.1400031d0
lea rcx, [rsp + 0x20]
test eax, eax
je 0x1400028ce
xor edx, edx
mov rax, r15
inc rax
cmp byte [rcx + rax], dl
jne 0x1400026a4
test eax, eax
jle 0x1400026de
lea rcx, [rsp + 0x20]
movzx eax, byte [rcx]
cmp al, 0xa
je 0x1400026c0
cmp al, 0xd
jne 0x1400026c3
mov byte [rcx], 0
inc edx
lea r8, [rsp + 0x20]
inc rcx
mov rax, r15
inc rax
cmp byte [r8 + rax], 0
jne 0x1400026d0
cmp edx, eax
jl 0x1400026b5
lea rax, [rsp + 0x20]
mov rcx, r15
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400026e6
inc rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsi + 0x20]
mov qword [rbx + rcx], rax
lea rcx, [rsp + 0x20]
mov rax, qword [rsi + 0x20]
mov rdx, qword [rbx + rax]
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140002710
inc dword [rbp + 0x368]
add rbx, 8
mov qword [rbp + 0x378], rbx
jmp 0x140002876
mov edx, 0x400
lea rcx, [rsp + 0x20]
call fcn.1400031d0
lea rcx, [rsp + 0x20]
test eax, eax
je 0x1400029d0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atol]
mov rcx, qword [rsi + 8]
mov dword [r14 + rcx], eax
mov rcx, qword [rsi + 8]
movsxd rax, dword [rcx + r14]
test eax, eax
jle 0x140002b1f
mov rcx, rax
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsi + 0x10]
xor edi, edi
mov qword [r12 + rcx], rax
mov rax, qword [rsi + 8]
cmp dword [r14 + rax], edi
jle 0x140002860
nop word [rax + rax]
mov edx, 0x400
lea rcx, [rsp + 0x20]
call fcn.1400031d0
test eax, eax
je 0x140002964
mov rax, qword [rsi + 8]
lea rbx, [rsp + 0x20]
cmp edi, dword [rax + r14]
jge 0x14000284d
nop word [rax + rax]
mov rax, qword [rsi + 0x10]
lea rdx, [0x140004788]
movsxd rcx, edi
mov rax, qword [rax + r12]
lea r8, [rax + rcx*8]
mov rcx, rbx
call fcn.140003340
cmp eax, 1
jne 0x140002847
movzx eax, byte [rbx]
test al, al
je 0x140002839
nop word [rax + rax]
movsx ecx, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x14000281a
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x140002800
jmp 0x140002839
movzx eax, byte [rbx]
test al, al
je 0x140002839
movsx ecx, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x140002839
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x140002821
mov rax, qword [rsi + 8]
inc edi
cmp edi, dword [rax + r14]
jl 0x1400027d0
jmp 0x14000284d
mov rax, qword [rsi + 8]
dec edi
inc edi
cmp edi, dword [rax + r14]
jl 0x1400027a0
mov rbx, qword [rbp + 0x378]
mov edi, dword [rbp + 0x370]
add r12, 8
inc edi
mov dword [rbp + 0x370], edi
add r14, 4
mov eax, dword [rsi]
inc r13d
add eax, dword [rsi + 0x18]
cmp r13d, eax
jl 0x140002650
mov rcx, qword [0x140006250]
test rcx, rcx
je 0x140002899
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov r15, qword [rsp + 0x420]
mov r14, qword [rsp + 0x428]
mov r13, qword [rsp + 0x430]
mov r12, qword [rsp + 0x438]
mov rbx, qword [rsp + 0x460]
add rsp, 0x440
pop rdi
pop rsi
pop rbp
ret
mov r8d, dword [rbp + 0x368]
lea rdx, str.Could_not_read_data_for_string__d_from_data_stream
inc r8d
call fcn.140001010
cmp qword [0x140006248], 0
je 0x140002ace
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [0x140006248]
cmp rcx, rax
jne 0x140002913
lea r9, [rsp + 0x20]
jmp 0x140002543
mov r8d, 1
lea rdx, [0x140004570]
call fcn.140003080
test eax, eax
js 0x140002ace
lea rax, [rsp + 0x20]
inc r15
cmp byte [rax + r15], 0
jne 0x140002932
mov rcx, qword [0x140006248]
lea rdx, str._zd
mov r8, r15
call fcn.140003080
test eax, eax
js 0x140002ace
lea r8, [rsp + 0x20]
jmp 0x140002aaa
lea r8d, [r13 + 1]
lea rdx, str.Could_not_read_elements_for_vector__d_from_data_stream
lea rcx, [rsp + 0x20]
call fcn.140001010
cmp qword [0x140006248], 0
je 0x140002ace
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [0x140006248]
cmp rcx, rax
je 0x140002909
mov r8d, 1
lea rdx, [0x140004570]
call fcn.140003080
test eax, eax
js 0x140002ace
lea rax, [rsp + 0x20]
inc r15
cmp byte [rax + r15], 0
jne 0x1400029c1
jmp 0x14000293c
lea r8d, [rdi + 1]
lea rdx, str.Could_not_read_number_of_elements_for_vector__d_from_data_stream
call fcn.140001010
cmp qword [0x140006248], 0
je 0x140002ace
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [0x140006248]
cmp rcx, rax
je 0x140002909
mov r8d, 1
lea rdx, [0x140004570]
call fcn.140003080
test eax, eax
js 0x140002ace
lea rax, [rsp + 0x20]
nop dword [rax + rax]
inc r15
cmp byte [rax + r15], 0
jne 0x140002a30
jmp 0x14000293c
cmp qword [0x140006248], 0
je 0x140002ace
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [0x140006248]
cmp rcx, rax
jne 0x140002a70
lea r9, str.Could_not_read_number_of_strings_from_data_stream
jmp 0x140002543
mov r8d, 1
lea rdx, [0x140004570]
call fcn.140003080
test eax, eax
js 0x140002ace
mov rcx, qword [0x140006248]
lea rdx, str._zd
mov r8d, 0x31
call fcn.140003080
test eax, eax
js 0x140002ace
lea r8, str.Could_not_read_number_of_strings_from_data_stream
mov rcx, qword [0x140006248]
lea rdx, [0x14000459c]
call fcn.140003080
test eax, eax
js 0x140002ace
mov rcx, qword [0x140006248]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, 2
jmp 0x14000289b
mov r9d, dword [0x140006260]
lea rdx, str.Invalid_number_of_vectors__d_at_line__d
mov r8d, eax
call fcn.140001010
lea rcx, [rsp + 0x20]
call fcn.140002be0
int3
mov r9d, dword [0x140006260]
lea rdx, str.Invalid_number_of_strings__d_at_line__d
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.140001010
lea rcx, [rsp + 0x20]
call fcn.140002be0
int3
mov r9d, dword [0x140006260]
lea rdx, str.Invalid_number_of_elements_in_vector__d_at_line__d
movsxd rax, edi
mov r8d, dword [rcx + rax*4]
lea rcx, [rsp + 0x20]
call fcn.140001010
lea rcx, [rsp + 0x20]
call fcn.140002be0
int3