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

Disassembly:
push rbp
mov edx, 0x400000
mov r9d, 4
xor ecx, ecx
mov r8d, 0x3000
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
add rsp, 0xffffffffffffff80
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, 0x400000
test rax, rax
jne 0x140006b38
mov eax, 0x10
xor edx, edx
lea rsi, [rsp + 0x70]
mov r8d, 1
mov qword [rsp + 0x70], rax
add rax, rdx
mov rcx, rsi
mov edx, 0x98
mov qword [rsp + 0x78], rax
call fcn.140001b6d
movaps xmm0, xmmword [rsp + 0x70]
mov ecx, 0xfffffff5
mov r12, qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
mov byte [rax + 0x94], 0x3b
movups xmmword [rax], xmm0
mov dword [rax + 0x90], 1
call r12
mov rdx, rsi
mov rdi, qword [sym.imp.KERNEL32.dll_GetConsoleMode]
movsxd rcx, eax
mov dword [0x14000900c], eax
call rdi
mov ecx, 0xfffffff4
mov dword [0x140009010], eax
call r12
mov rdx, rsi
movsxd rcx, eax
mov dword [0x140009018], eax
call rdi
mov r8d, 0x7000
mov edx, 8
mov rcx, rbx
mov dword [0x14000901c], eax
lea rdi, [0x1400086d4]
call fcn.140001b6d
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsi + 0x20000]
xor r9d, r9d
mov ecx, 6
mov qword [rsi], rdx
mov r10, rax
mov r8d, 1
movzx eax, word [r10]
test ax, ax
je 0x140006e87
mov r12d, eax
lea r11, [r10 + 2]
sar r12d, 0xa
cmp r12d, 0x36
jne 0x140006c3e
movzx r12d, word [r10 + 2]
mov r13d, r12d
shr r13w, 0xa
cmp r13w, 0x37
jne 0x140006c3e
shl eax, 0xa
lea r11, [r10 + 4]
lea eax, [rax + r12 - 0x35fdc00]
cmp ecx, 8
ja case.default.0x140006c51
mov r10d, ecx
movsxd r10, dword [rdi + r10*4]
add r10, rdi
jmp r10
movsxd r10, r8d
lea r10, [rsi + r10*8]
cmp eax, 0x22
je 0x140006c8c
jg 0x140006c76
cmp eax, 9
je 0x140006e7f
cmp eax, 0x20
je 0x140006e7f
jmp 0x140006c97
cmp eax, 0x5c
jne 0x140006c97
mov qword [r10], rdx
inc r8d
mov r9d, 1
jmp 0x140006d95
mov qword [r10], rdx
inc r8d
jmp 0x140006e73
mov qword [r10], rdx
inc r8d
mov ecx, 1
jmp case.default.0x140006c51
cmp eax, 0x22
je 0x140006e73
jle case.0x140006c51.7
cmp eax, 0x5c
jne case.default.0x140006c51
mov r9d, ecx
jmp 0x140006d95
cmp eax, 0x22
je 0x140006e7a
cmp eax, 0x5c
mov r10d, 1
cmove r9d, r10d
mov r10d, 4
cmove ecx, r10d
jmp case.default.0x140006c51
cmp eax, 0x22
je 0x140006d08
cmp eax, 0x5c
je 0x140006d35
cmp eax, 0x10000
setl al
movzx eax, al
lea rax, [rax + rax - 4]
jmp 0x140006d2a
lea r10d, [r9 + 1]
sar r10d, 1
movsxd r10, r10d
sub rdx, r10
test r9d, 1
je 0x140006d23
sub ecx, 2
jmp case.default.0x140006c51
mov rax, 0xfffffffffffffffe
add r11, rax
sub ecx, 2
jmp 0x140006e7f
inc r9d
jmp case.default.0x140006c51
mov ecx, 1
cmp eax, 0x22
je case.default.0x140006c51
cmp eax, 0x10000
setl al
movzx eax, al
lea rax, [rax + rax - 4]
add r11, rax
jmp 0x140006e7f
cmp eax, 0x20
je 0x140006d88
mov ecx, 8
cmp eax, 0x22
je 0x140006e7f
mov ecx, 7
cmp eax, 9
jmp 0x140006d86
cmp eax, 9
je 0x140006d88
cmp eax, 0x20
jmp 0x140006d86
cmp eax, 0x22
jne case.default.0x140006c51
mov byte [rdx], 0
xor ecx, ecx
inc rdx
jmp 0x140006e7f
mov ecx, 3
xor r10d, r10d
cmp eax, 0x7f
setg r10b
xor r12d, r12d
cmp eax, 0x7ff
setg r12b
add r10d, r12d
xor r12d, r12d
cmp eax, 0xffff
setg r12b
add r10d, r12d
cmp r10d, 2
je 0x140006dfe
cmp r10d, 3
je 0x140006e2f
dec r10d
je 0x140006ddd
mov byte [rdx], al
inc rdx
jmp 0x140006e7f
mov r10d, eax
and eax, 0x3f
add rdx, 2
sar r10d, 6
or eax, 0xffffff80
or r10d, 0xffffffc0
mov byte [rdx - 1], al
mov byte [rdx - 2], r10b
jmp 0x140006e7f
mov r10d, eax
add rdx, 3
sar r10d, 0xc
or r10d, 0xffffffe0
mov byte [rdx - 3], r10b
mov r10d, eax
and eax, 0x3f
sar r10d, 6
or eax, 0xffffff80
and r10d, 0x3f
mov byte [rdx - 1], al
or r10d, 0xffffff80
mov byte [rdx - 2], r10b
jmp 0x140006e7f
mov r10d, eax
add rdx, 4
sar r10d, 0x12
or r10d, 0xfffffff0
mov byte [rdx - 4], r10b
mov r10d, eax
sar r10d, 0xc
and r10d, 0x3f
or r10d, 0xffffff80
mov byte [rdx - 3], r10b
mov r10d, eax
and eax, 0x3f
sar r10d, 6
or eax, 0xffffff80
and r10d, 0x3f
mov byte [rdx - 1], al
or r10d, 0xffffff80
mov byte [rdx - 2], r10b
jmp 0x140006e7f
mov ecx, 2
jmp 0x140006e7f
mov ecx, 5
mov r10, r11
jmp 0x140006bfd
mov byte [rdx], 0
movsxd rax, r8d
xor edx, edx
dec r8d
mov qword [rsi + rax*8], rdx
movsxd r8, r8d
mov edx, 0x10
mov rcx, rbx
mov qword [rbx + 0x18], r8
call fcn.140001b6d
mov r10, qword [rbx + 0x18]
xor edx, edx
mov qword [rbx + 0x10], rax
cmp r10, rdx
jle 0x140006ee6
mov r9, qword [rsi + rdx*8 + 8]
xor ecx, ecx
test r9, r9
je 0x140006ed6
xor r8d, r8d
mov rcx, r8
inc r8
cmp byte [r9 + r8 - 1], 0
jne 0x140006ec8
mov qword [rax], r9
inc rdx
add rax, 0x10
mov qword [rax - 8], rcx
jmp 0x140006eb4
mov rdi, qword [rbx]
mov rax, qword [rbx + 8]
mov edx, 0x7fffffff
mov ecx, 2
sub rax, rdi
cmp rax, rdx
cmovg rax, rdx
cdq
idiv ecx
mov rdx, rdi
xor ecx, ecx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cdqe
lea rdx, [rax + rax]
add rdx, rdi
mov qword [rbx], rdx
xor edx, edx
cmp rax, rdx
jle 0x140006f37
cmp word [rdi + rdx*2], 0x5c
jne 0x140006f32
mov word [rdi + rdx*2], 0x2f
inc rdx
jmp 0x140006f20
lea rsi, [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x58], rax
mov rcx, rsi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x28], rsi
call fcn.140001f8e
movups xmm1, xmmword [rsp + 0x60]
mov qword [rbx], rdi
lea rdi, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov rdx, rdi
movaps xmmword [rsp + 0x40], xmm1
call fcn.140001436
movups xmm2, xmmword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
mov rdx, rdi
movaps xmmword [rsp + 0x40], xmm2
call fcn.140001436
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
lea r8, str.PKG_CONFIG_PATH
mov r14, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
call fcn.14000208b
movups xmm3, xmmword [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rsp + 0x28]
lea r8, str.PKG_CONFIG_LIBDIR
movups xmmword [rbx + 0x20], xmm3
call fcn.14000208b
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x30], rax
mov rdx, rax
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x38], rax
test rdx, rdx
jne 0x140007110
mov rcx, qword [rsp + 0x28]
lea r8, [r12 + r12 + 0x45]
mov rdx, rbx
lea r13, [rsp + 0x30]
call fcn.140001bc3
mov rsi, qword [rsp + 0x60]
mov r8, r13
mov rdx, rdi
mov r15, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x38], r12
call fcn.1400017fe
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov r8, r13
mov qword [rsp + 0x38], 0x21
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, str._x86_64_w64_mingw32_lib_pkgconfig
mov qword [rsp + 0x48], rdx
mov rdx, rdi
mov qword [rsp + 0x30], rax
call fcn.1400017fe
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov r8, r13
mov qword [rsp + 0x38], 1
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, str._PKG_CONFIG_TOP_BUILD_DIR
mov qword [rsp + 0x48], rdx
mov rdx, rdi
mov qword [rsp + 0x30], rax
call fcn.1400017fe
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov r8, r13
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x48], rdx
mov rdx, rdi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
call fcn.1400017fe
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov r8, r13
mov qword [rsp + 0x38], 0x23
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, str._x86_64_w64_mingw32_share_pkgconfig
mov qword [rsp + 0x48], rdx
mov rdx, rdi
mov qword [rsp + 0x30], rax
call fcn.1400017fe
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x38], r15
mov rcx, qword [rsp + 0x28]
lea r8, [0x1400085f4]
mov rdx, rbx
lea r13, [rsp + 0x30]
call fcn.14000208b
movups xmm4, xmmword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
lea r8, [r12 + 0x1b]
movups xmmword [rbx + 0x40], xmm4
call fcn.140001bc3
mov rsi, qword [rsp + 0x60]
mov r8, r13
mov rdx, rdi
mov r15, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x38], r12
call fcn.1400017fe
movups xmm5, xmmword [rsp + 0x60]
mov r8, r13
mov rdx, rdi
mov rcx, qword [rsp + 0x28]
lea rax, str._x86_64_w64_mingw32_include
mov qword [rsp + 0x38], 0x1b
movaps xmmword [rsp + 0x40], xmm5
mov qword [rsp + 0x30], rax
call fcn.1400017fe
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
mov qword [rbx + 0x50], rsi
lea r8, [r12 + 0x17]
mov qword [rbx + 0x58], r15
call fcn.140001bc3
mov rsi, qword [rsp + 0x60]
mov r8, r13
mov rdx, rdi
mov r15, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x38], r12
call fcn.1400017fe
movups xmm0, xmmword [rsp + 0x60]
mov r8, r13
mov rdx, rdi
mov rcx, qword [rsp + 0x28]
lea rax, str._x86_64_w64_mingw32_lib
mov qword [rsp + 0x38], 0x17
mov qword [rsp + 0x30], rax
movaps xmmword [rsp + 0x40], xmm0
call fcn.1400017fe
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
mov qword [rbx + 0x60], rsi
lea r8, str.PKG_CONFIG_ALLOW_SYSTEM_CFLAGS
mov qword [rbx + 0x68], r15
call fcn.14000208b
movups xmm1, xmmword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
lea r8, str.PKG_CONFIG_ALLOW_SYSTEM_LIBS
movups xmmword [rbx + 0x70], xmm1
call fcn.14000208b
movups xmm2, xmmword [rsp + 0x60]
mov rcx, rbx
movups xmmword [rbx + 0x80], xmm2
call fcn.1400037c8
mov ecx, dword [0x140009014]
or ecx, dword [0x140009020]
je 0x140007278
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]