Function at 0x140003218
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov ebx, 0x400000
movaps xmmword [rax - 0x28], xmm6
mov edx, ebx
mov r9d, 4
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edi, edi
mov edx, 0x98
test rax, rax
mov rcx, rax
lea r15d, [rdi + 0x10]
cmove rcx, r15
lea r14d, [rdi + 1]
neg rax
mov qword [rbp - 0x49], rcx
mov r8d, r14d
sbb rax, rax
and rax, rbx
add rax, rcx
lea rcx, [rbp - 0x49]
mov qword [rbp - 0x41], rax
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
call fcn.140001000
movaps xmm0, xmmword [rbp - 0x49]
lea ecx, [rdi - 0xb]
mov rbx, rax
movdqu xmmword [rax], xmm0
mov byte [rax + 0x94], 0x3b
mov dword [rax + 0x90], r14d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
movsxd rcx, eax
lea rdx, [rbp + 0x67]
mov dword [0x14000a024], eax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea ecx, [rdi - 0xc]
mov dword [0x14000a028], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
movsxd rcx, eax
lea rdx, [rbp + 0x67]
mov dword [0x14000a030], eax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea edx, [rdi + 8]
mov r8d, 0x7000
mov rcx, rbx
mov dword [0x14000a034], eax
call fcn.140001000
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
mov rdx, rsi
call fcn.14000159c
sub eax, r14d
mov edx, r15d
movsxd r8, eax
mov rcx, rbx
mov qword [rbx + 0x18], r8
call fcn.140001000
mov r9d, edi
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], rdi
jle 0x140003386
mov r8d, edi
lea rdx, [rsi + 8]
mov rcx, qword [rdx]
mov rax, rdi
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x49], rcx
test rcx, rcx
je 0x140003368
cmp byte [rcx], dil
je 0x140003368
add rax, r14
cmp byte [rax + rcx], dil
jne 0x14000335b
mov qword [rbp - 0x41], rax
mov rax, qword [rbx + 0x10]
add r9, r14
movups xmm0, xmmword [rbp - 0x49]
add rdx, 8
movdqu xmmword [r8 + rax], xmm0
add r8, r15
cmp r9, qword [rbx + 0x18]
jl 0x140003343
mov rsi, qword [rbx]
mov ecx, 0x7fffffff
mov rax, qword [rbx + 8]
sub rax, rsi
mov qword [rbp - 0x49], rsi
cmp rax, rcx
cmovg eax, ecx
xor ecx, ecx
cdq
sub eax, edx
mov rdx, rsi
sar eax, 1
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movsxd rcx, eax
mov qword [rbp - 0x41], rcx
lea rax, [rsi + rcx*2]
mov qword [rbx], rax
mov rax, rdi
test rcx, rcx
jle 0x1400033dd
cmp word [rsi + rax*2], 0x5c
jne 0x1400033d5
mov word [rsi + rax*2], 0x2f
add rax, r14
cmp rax, rcx
jl 0x1400033c8
movaps xmm0, xmmword [rbp - 0x49]
lea r8, [rbp - 0x29]
mov rdx, rbx
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 9]
call fcn.140002de0
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
movups xmm0, xmmword [rax]
mov qword [rbx], rsi
movdqa xmmword [rbp - 0x29], xmm0
call fcn.140001c9c
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x39]
movups xmm2, xmmword [rax]
movdqu xmmword [rbp - 0x29], xmm2
call fcn.140001c9c
lea r8, str.PKG_CONFIG_PATH
mov rdx, rbx
lea rcx, [rbp - 9]
movups xmm6, xmmword [rax]
call fcn.140002d20
lea r8, str.PKG_CONFIG_LIBDIR
mov rdx, rbx
lea rcx, [rbp - 9]
movups xmm0, xmmword [rax]
movdqu xmmword [rbx + 0x20], xmm0
call fcn.140002d20
movups xmm0, xmmword [rax]
movdqu xmmword [rbx + 0x30], xmm0
cmp qword [rbx + 0x30], rdi
jne 0x140003560
lea rax, str._share_pkgconfig
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x29], rax
lea rcx, [rbp + 7]
lea rax, str._lib_pkgconfig
mov qword [rbp - 0x41], 0xe
mov qword [rbp - 0x49], rax
movdqa xmm0, xmm6
lea rax, [0x140008b14]
psrldq xmm0, 8
mov qword [rbp - 0x39], rax
mov rdx, rbx
movq rax, xmm0
mov qword [rbp - 0x31], r14
lea r8, [rax*2 + 0x1f]
call fcn.140003a80
lea r8, [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm6
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x17]
movups xmm2, xmmword [rax]
movdqu xmmword [rbp - 9], xmm2
call fcn.140004e8c
movaps xmm1, xmmword [rbp - 0x49]
lea r8, [rbp - 9]
lea rdx, [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm1
lea rcx, [rbp - 0x49]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x19], xmm0
call fcn.140004e8c
movaps xmm1, xmmword [rbp - 0x39]
lea r8, [rbp - 9]
lea rdx, [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm1
lea rcx, [rbp - 0x39]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x19], xmm0
call fcn.140004e8c
lea r8, [rbp - 9]
movdqa xmmword [rbp - 9], xmm6
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x27]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x19], xmm0
call fcn.140004e8c
movaps xmm1, xmmword [rbp - 0x29]
lea r8, [rbp - 9]
lea rdx, [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm1
lea rcx, [rbp - 0x29]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x19], xmm0
call fcn.140004e8c
movdqu xmmword [rbx + 0x30], xmm2
lea r8, str.PKG_CONFIG_TOP_BUILD_DIR
mov rdx, rbx
lea rcx, [rbp + 0x27]
call fcn.140002d20
mov qword [rbp - 0x21], 8
lea r9, [rbp - 9]
lea r8, [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm6
mov rdx, rbx
lea rcx, [rbp + 0x27]
movups xmm0, xmmword [rax]
lea rax, str._include
mov qword [rbp - 0x29], rax
movdqu xmmword [rbx + 0x40], xmm0
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 9], xmm0
call fcn.1400010b0
mov qword [rbp - 0x21], 4
lea r9, [rbp - 9]
lea r8, [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm6
mov rdx, rbx
lea rcx, [rbp + 0x27]
movups xmm0, xmmword [rax]
lea rax, str._lib
mov qword [rbp - 0x29], rax
movdqu xmmword [rbx + 0x50], xmm0
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 9], xmm0
call fcn.1400010b0
lea r8, str.PKG_CONFIG_ALLOW_SYSTEM_CFLAGS
mov rdx, rbx
lea rcx, [rbp + 0x27]
movups xmm0, xmmword [rax]
movdqu xmmword [rbx + 0x60], xmm0
call fcn.140002d20
lea r8, str.PKG_CONFIG_ALLOW_SYSTEM_LIBS
mov rdx, rbx
lea rcx, [rbp + 0x27]
movups xmm0, xmmword [rax]
movdqu xmmword [rbx + 0x70], xmm0
call fcn.140002d20
mov rcx, rbx
movups xmm0, xmmword [rax]
movdqu xmmword [rbx + 0x80], xmm0
call fcn.14000521c
cmp dword [0x14000a02c], edi
jne 0x140003646
cmp dword [0x14000a038], edi
je 0x140003649
mov edi, r14d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_ExitProcess]