Function at 0x140002790
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 0x1400027eb
lea rdx, [0x140004530]
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.1400034e0
test eax, eax
jne 0x1400028b7
cmp qword [0x140006248], rdi
je 0x140002dde
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 0x140002870
lea r9, str.Could_not_read_number_of_vectors_from_data_stream
lea r8, str.Message:
lea rdx, str._s__s_n
call fcn.140003390
mov eax, 2
jmp 0x140002bab
mov r8d, 1
lea rdx, [0x140004560]
call fcn.140003390
test eax, eax
js 0x140002dde
mov rcx, qword [0x140006248]
lea rdx, str._zd
mov r8d, 0x31
call fcn.140003390
test eax, eax
js 0x140002dde
lea r8, str.Could_not_read_number_of_vectors_from_data_stream
jmp 0x140002dba
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 0x140002de8
mov edx, 0x400
call fcn.1400034e0
test eax, eax
jne 0x1400028eb
cmp qword [0x140006248], rdi
jmp 0x140002d57
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 0x140002e09
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 0x140002b97
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.1400034e0
test eax, eax
je 0x140002d4f
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atol]
test eax, eax
je 0x140002a47
cmp eax, 3
jne 0x140002b86
mov edx, 0x400
lea rcx, [rsp + 0x20]
call fcn.1400034e0
lea rcx, [rsp + 0x20]
test eax, eax
je 0x140002bde
xor edx, edx
mov rax, r15
inc rax
cmp byte [rcx + rax], dl
jne 0x1400029b4
test eax, eax
jle 0x1400029ee
lea rcx, [rsp + 0x20]
movzx eax, byte [rcx]
cmp al, 0xa
je 0x1400029d0
cmp al, 0xd
jne 0x1400029d3
mov byte [rcx], 0
inc edx
lea r8, [rsp + 0x20]
inc rcx
mov rax, r15
inc rax
cmp byte [r8 + rax], 0
jne 0x1400029e0
cmp edx, eax
jl 0x1400029c5
lea rax, [rsp + 0x20]
mov rcx, r15
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400029f6
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 0x140002a20
inc dword [rbp + 0x368]
add rbx, 8
mov qword [rbp + 0x378], rbx
jmp 0x140002b86
mov edx, 0x400
lea rcx, [rsp + 0x20]
call fcn.1400034e0
lea rcx, [rsp + 0x20]
test eax, eax
je 0x140002ce0
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 0x140002e2f
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 0x140002b70
nop word [rax + rax]
mov edx, 0x400
lea rcx, [rsp + 0x20]
call fcn.1400034e0
test eax, eax
je 0x140002c74
mov rax, qword [rsi + 8]
lea rbx, [rsp + 0x20]
cmp edi, dword [rax + r14]
jge 0x140002b5d
nop word [rax + rax]
mov rax, qword [rsi + 0x10]
lea rdx, [0x140004778]
movsxd rcx, edi
mov rax, qword [rax + r12]
lea r8, [rax + rcx*8]
mov rcx, rbx
call fcn.140003650
cmp eax, 1
jne 0x140002b57
movzx eax, byte [rbx]
test al, al
je 0x140002b49
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 0x140002b2a
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x140002b10
jmp 0x140002b49
movzx eax, byte [rbx]
test al, al
je 0x140002b49
movsx ecx, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x140002b49
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x140002b31
mov rax, qword [rsi + 8]
inc edi
cmp edi, dword [rax + r14]
jl 0x140002ae0
jmp 0x140002b5d
mov rax, qword [rsi + 8]
dec edi
inc edi
cmp edi, dword [rax + r14]
jl 0x140002ab0
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 0x140002960
mov rcx, qword [0x140006250]
test rcx, rcx
je 0x140002ba9
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 0x140002dde
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 0x140002c23
lea r9, [rsp + 0x20]
jmp 0x140002853
mov r8d, 1
lea rdx, [0x140004560]
call fcn.140003390
test eax, eax
js 0x140002dde
lea rax, [rsp + 0x20]
inc r15
cmp byte [rax + r15], 0
jne 0x140002c42
mov rcx, qword [0x140006248]
lea rdx, str._zd
mov r8, r15
call fcn.140003390
test eax, eax
js 0x140002dde
lea r8, [rsp + 0x20]
jmp 0x140002dba
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 0x140002dde
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 0x140002c19
mov r8d, 1
lea rdx, [0x140004560]
call fcn.140003390
test eax, eax
js 0x140002dde
lea rax, [rsp + 0x20]
inc r15
cmp byte [rax + r15], 0
jne 0x140002cd1
jmp 0x140002c4c
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 0x140002dde
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 0x140002c19
mov r8d, 1
lea rdx, [0x140004560]
call fcn.140003390
test eax, eax
js 0x140002dde
lea rax, [rsp + 0x20]
nop dword [rax + rax]
inc r15
cmp byte [rax + r15], 0
jne 0x140002d40
jmp 0x140002c4c
cmp qword [0x140006248], 0
je 0x140002dde
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 0x140002d80
lea r9, str.Could_not_read_number_of_strings_from_data_stream
jmp 0x140002853
mov r8d, 1
lea rdx, [0x140004560]
call fcn.140003390
test eax, eax
js 0x140002dde
mov rcx, qword [0x140006248]
lea rdx, str._zd
mov r8d, 0x31
call fcn.140003390
test eax, eax
js 0x140002dde
lea r8, str.Could_not_read_number_of_strings_from_data_stream
mov rcx, qword [0x140006248]
lea rdx, [0x14000458c]
call fcn.140003390
test eax, eax
js 0x140002dde
mov rcx, qword [0x140006248]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, 2
jmp 0x140002bab
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.140002ef0
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.140002ef0
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.140002ef0
int3