Function at 0x140001c70
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push r12
push r14
lea rbp, [rsp - 0xff8]
mov eax, 0x10f8
call fcn.140012410
sub rsp, rax
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rbp + 0xfd0], rax
mov r14, rcx
mov qword [rsp + 0x40], rcx
lea rcx, [0x140020513]
movsxd rbx, edx
mov r12, r8
call fcn.14001233c
cmp ebx, 1
jne 0x140001ce0
lea rdx, str.No_valid_arguments_recieved_by_Process
lea ecx, [rbx + 1]
call fcn.14000e630
xor eax, eax
jmp 0x140002238
mov qword [rsp + 0x1138], rsi
lea rcx, str.argc__d__n
xorps xmm0, xmm0
mov qword [rsp + 0x10f0], rdi
xorps xmm1, xmm1
mov qword [rsp + 0x10e8], r13
xor r13d, r13d
mov qword [rsp + 0x10e0], r15
mov edx, ebx
mov qword [0x14001ab00], r13
movdqa xmmword [0x14001aac0], xmm0
movdqa xmmword [0x14001aad0], xmm1
movdqa xmmword [0x14001aae0], xmm0
movdqa xmmword [0x14001aaf0], xmm1
call qword [sym.imp.LIBSAPUCUM.dll_printfU16]
mov esi, r13d
mov r15, rbx
test ebx, ebx
jle 0x140001e68
mov edi, r13d
lea r14, [0x14001aac0]
lea r13, [0x140013d44]
lea rbx, [0x140013d3c]
nop word [rax + rax]
mov r8, qword [r12 + rdi*8]
lea rcx, str.argv__d__s_n
mov edx, esi
mov qword [r14 + rdi*8], r8
call qword [sym.imp.LIBSAPUCUM.dll_printfU16]
mov r9, qword [r14 + rdi*8]
mov edx, 2
mov r8, r9
mov rcx, rbx
sub r8, rbx
nop dword [rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140001dd3
add rcx, 2
sub rdx, 1
jne 0x140001da0
mov rcx, qword [r12 + rdi*8 + 8]
lea rdx, [0x14001ab20]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140001dc0
mov edx, 2
mov rcx, r13
sub r9, r13
nop
movzx eax, word [rcx]
cmp word [r9 + rcx], ax
jne 0x140001e52
add rcx, 2
sub rdx, 1
jne 0x140001de0
lea rcx, str.TRILLTRACEFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x140001e4b
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x140001e10
test rax, rax
je 0x140001e4b
lea rdx, [0x140013d60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
test rax, rax
je 0x140001e4b
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbx
call qword [sym.imp.TGenClient.dll_TD_SetTraceFile]
call qword [sym.imp.TGenClient.dll_TD_SetTraceOn]
lea rbx, [0x140013d3c]
inc esi
inc rdi
cmp rdi, r15
jl 0x140001d70
mov r14, qword [rsp + 0x40]
xor r13d, r13d
call qword [sym.imp.SAPNWRFC.dll_RfcInit]
mov rcx, r14
call fcn.140008640
test eax, eax
jne 0x140001eaf
mov r8, qword [0x14001ab10]
lea rdx, str.LoadDynamicStructs:_No_connectable_hosts_in__s.
lea rcx, [rbp + 0x6a0]
call fcn.140001220
lea rdx, [rbp + 0x6a0]
mov ecx, 2
call fcn.14000e630
mov eax, 0xffffffff
jmp 0x140002218
cmp eax, 0xffffffff
jne 0x140001ed8
lea rdx, str.LoadDynamicStructs:_Errors_have_been_detected
lea rcx, [rbp + 0x6a0]
call fcn.140001220
lea rdx, [rbp + 0x6a0]
mov ecx, 2
call fcn.14000e630
lea r8, [0x14001ab20]
lea rdx, str.Destination_s
lea rcx, [rbp + 0x7d0]
call fcn.140001600
lea rdx, [rbp + 0x7d0]
xor ecx, ecx
call fcn.14000e6e0
lea r8, str.Unicode
lea rdx, str.Trillium__s_SAP_Client_initialization_complete
lea rcx, [rbp + 0x6a0]
call fcn.140001220
lea rdx, [rbp + 0x6a0]
xor ecx, ecx
call fcn.14000e630
xor r8d, r8d
mov dword [rsp + 0x3c], r13d
xor edx, edx
mov dword [rsp + 0x34], r13d
xor ecx, ecx
mov dword [rsp + 0x38], r13d
mov esi, r13d
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x14001a9a0], rax
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call fcn.140001290
test r15, r15
jle 0x140002070
mov rbx, r13
lea rdi, [0x140013e18]
mov r9, qword [r12 + rbx*8]
mov edx, 2
mov r8, r9
mov rax, rdi
sub r8, rdi
movzx ecx, word [rax]
cmp word [r8 + rax], cx
jne 0x140002053
add rax, 2
sub rdx, 1
jne 0x140001f92
mov rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], 0
jne 0x140001fb1
cmp eax, 2
jne 0x140002053
mov rcx, qword [r12 + rbx*8 + 8]
inc rbx
mov rdx, 0xffffffffffffffff
cmp rbx, r15
jge 0x140001ffd
nop dword [rax]
inc rdx
cmp word [rcx + rdx*2], 0
jne 0x140001fe0
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140001ff1
jmp 0x14000201c
add rcx, 4
inc rdx
cmp word [rcx + rdx*2], 0
jne 0x140002001
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140002012
add eax, 2
lea r9, [rsp + 0x34]
mov dword [rsp + 0x34], eax
lea r8, [rsp + 0x30]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SAPNWRFC.dll_RfcSAPUCToUTF8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov esi, eax
inc rbx
cmp rbx, r15
jl 0x140001f80
test esi, esi
je 0x140002070
mov ebx, 1
mov edi, ebx
cmp esi, ebx
jl 0x1400020a0
jmp 0x140002079
mov ebx, 1
mov esi, ebx
mov edi, ebx
mov r14, rbx
nop dword [rax]
mov r8, r14
mov ecx, edi
call fcn.140001300
inc edi
inc r14
cmp edi, esi
jle 0x140002080
nop dword [rax]
nop word [rax + rax]
mov r15d, r13d
mov edi, ebx
mov r12d, r13d
mov r14d, r13d
cmp esi, 1
jl 0x140002211
lea rdx, [rsp + 0x3c]
mov ecx, edi
call fcn.1400013d0
cmp eax, 0x10
jne 0x1400020cd
mov r15d, ebx
jmp 0x140002156
cmp eax, 9
je 0x140002156
test eax, eax
jne 0x140002129
mov r9d, dword [rsp + 0x3c]
test r9d, r9d
jne 0x1400020e9
inc r12d
jmp 0x140002156
lea rcx, [rbp + 0x660]
mov r8d, edi
cmp r9d, 0x63
jne 0x140002107
lea rdx, str.RFC_ERROR_OCCURS_on_Thread__d_exited
call fcn.140001220
jmp 0x140002113
lea rdx, str.Thread__d_exited_with_rc_d
call fcn.140001220
inc r14d
lea rdx, [rbp + 0x660]
mov ecx, 2
call fcn.14000e630
jmp 0x140002156
mov r9d, eax
lea rdx, str.Thread__d_returned__d
mov r8d, edi
lea rcx, [rbp + 0x660]
call fcn.140001220
lea rdx, [rbp + 0x660]
mov ecx, 2
call fcn.14000e630
inc r14d
inc edi
cmp edi, esi
jle 0x1400020b4
test r15d, r15d
je 0x1400021ad
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140002187
cmp dword [rsp + 0x50], 0x12
je 0x14000219c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r15d, r13d
mov edi, ebx
jmp 0x1400020b4
mov edi, ebx
nop
mov ecx, edi
call fcn.140001500
inc edi
cmp edi, esi
jle 0x1400021a0
test r12d, r12d
je 0x1400021d6
mov r8d, r12d
lea rdx, str._d_thread_s__successfully_terminated.
lea rcx, [rbp + 0x660]
call fcn.140001220
lea rdx, [rbp + 0x660]
xor ecx, ecx
call fcn.14000e630
test r14d, r14d
je 0x1400021ff
mov r8d, r14d
lea rdx, str._d_thread_s__terminated_with_an_error.
lea rcx, [rbp + 0x660]
call fcn.140001220
lea rdx, [rbp + 0x660]
xor ecx, ecx
call fcn.14000e630
cmp esi, 1
jl 0x140002211
mov ecx, ebx
call fcn.140001540
inc ebx
cmp ebx, esi
jle 0x140002204
call fcn.1400012f0
xor eax, eax
mov r13, qword [rsp + 0x10e8]
mov rdi, qword [rsp + 0x10f0]
mov rsi, qword [rsp + 0x1138]
mov r15, qword [rsp + 0x10e0]
mov rcx, qword [rbp + 0xfd0]
xor rcx, rsp
call fcn.1400110e0
add rsp, 0x10f8
pop r14
pop r12
pop rbx
pop rbp
ret