Function at 0x140040840
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4c8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x430], xmm6
mov qword [rbp + 0x428], 0xfffffffffffffffe
mov qword [rbp + 0x3b8], rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 8
mov qword [rbp + 0x400], 0
test rax, rax
je 0x140040d24
mov rdi, rax
movzx esi, word [rax]
test si, si
je 0x140040d24
mov qword [rbp + 0x3d0], 0
mov qword [rbp + 0x3d8], 2
mov qword [rbp + 0x3e0], 0
mov eax, 2
xor r8d, r8d
lea rbx, [rbp + 0x3d0]
xor r14d, r14d
test si, si
jne 0x140040907
jmp 0x140040964
mov word [rax + r8*2], si
inc r8
mov qword [rbp + 0x3e0], r8
movzx esi, word [rdi]
test si, si
je 0x140040964
add rdi, 2
cmp si, 9
je 0x140040930
movzx ecx, si
cmp ecx, 0x20
je 0x140040930
cmp ecx, 0x22
jne 0x140040936
not r14b
and r14b, 1
movzx esi, word [rdi]
test si, si
jne 0x140040907
jmp 0x140040964
test r14b, 1
je 0x140040964
cmp r8, qword [rbp + 0x3d0]
jne 0x1400408f0
mov rcx, rbx
mov rdx, r8
call fcn.14003ef70
mov rax, qword [rbp + 0x3d8]
mov r8, qword [rbp + 0x3e0]
jmp 0x1400408f0
add rdi, 2
movzx eax, word [rdi]
cmp eax, 0x20
je 0x140040960
cmp eax, 9
je 0x140040960
mov rdx, qword [rbp + 0x3d8]
lea rcx, [rbp - 0x60]
call fcn.140045590
lea rcx, [rbp + 0x3f0]
xor edx, edx
call fcn.14003eea0
mov rax, qword [rbp + 0x3f8]
mov rcx, qword [rbp + 0x400]
mov rdx, rcx
shl rdx, 5
movups xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [rax + rdx + 0x10], xmm1
movups xmmword [rax + rdx], xmm0
inc rcx
mov qword [rbp + 0x400], rcx
mov qword [rbp + 0x408], 0
mov qword [rbp + 0x410], 2
mov qword [rbp + 0x418], 0
mov r12d, 2
xor r8d, r8d
lea rbx, [rbp - 0x60]
lea r15, [rbp + 0x408]
movaps xmm6, xmmword [0x140083d90]
xor esi, esi
jmp 0x140040a10
test sil, sil
mov sil, 1
jne 0x140040bba
nop dword [rax + rax]
movzx r13d, word [rdi]
test r13d, r13d
je 0x140040e51
mov r14, rdi
add rdi, 2
cmp r13d, 0x21
jg 0x140040ae0
cmp r13d, 9
je 0x140040a3e
cmp r13d, 0x20
jne 0x140040b50
test sil, sil
jne 0x140040b50
mov r12, qword [rbp + 0x410]
mov rcx, rbx
mov rdx, r12
call fcn.140045590
mov rdx, qword [rbp + 0x400]
cmp rdx, qword [rbp + 0x3f0]
jne 0x140040a7c
lea rcx, [rbp + 0x3f0]
call fcn.14003eea0
mov rdx, qword [rbp + 0x400]
mov rax, qword [rbp + 0x3f8]
mov rcx, rdx
shl rcx, 5
movups xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc rdx
mov qword [rbp + 0x400], rdx
mov qword [rbp + 0x418], 0
jmp 0x140040ac4
add rdi, 2
movzx eax, word [rdi]
cmp eax, 0x20
je 0x140040ac0
cmp eax, 9
je 0x140040ac0
xor r8d, r8d
jmp 0x140040a10
cmp r13d, 0x22
je 0x1400409ff
cmp r13d, 0x5c
jne 0x140040b50
movzx eax, word [rdi]
xor r13d, r13d
cmp ax, 0x5c
jne 0x140040b13
nop dword [rax]
add rdi, 2
movzx eax, word [r14 + r13*2 + 4]
inc r13
cmp ax, 0x5c
je 0x140040b00
inc r13
cmp ax, 0x22
jne 0x140040b86
mov r14, r13
shr r14, 1
mov rax, qword [rbp + 0x408]
sub rax, r8
cmp rax, r14
jae 0x140040bd5
mov rcx, r15
mov rdx, r8
mov r8, r14
call fcn.140072c30
mov r8, qword [rbp + 0x418]
jmp 0x140040bdb
cmp r8, qword [rbp + 0x408]
jne 0x140040b6b
mov rcx, r15
mov rdx, r8
call fcn.14003ef70
mov r8, qword [rbp + 0x418]
mov r12, qword [rbp + 0x410]
mov word [r12 + r8*2], r13w
inc r8
mov qword [rbp + 0x418], r8
jmp 0x140040a10
mov rax, qword [rbp + 0x408]
sub rax, r8
cmp rax, r13
jae 0x140040c80
mov rcx, r15
mov rdx, r8
mov r8, r13
call fcn.140072c30
mov r12, qword [rbp + 0x410]
mov r8, qword [rbp + 0x418]
jmp 0x140040c85
movzx eax, word [rdi]
cmp eax, 0x22
je 0x140040cdb
xor esi, esi
test eax, eax
jne 0x140040a10
jmp 0x140040fe4
cmp r13, 2
jb 0x140040c2f
mov r12, qword [rbp + 0x410]
cmp r13, 0x20
jb 0x140040c20
mov rax, r14
and rax, 0xfffffffffffffff0
lea rcx, [r12 + r8*2]
add rcx, 0x10
add r8, rax
xor edx, edx
nop dword [rax]
movups xmmword [rcx + rdx*2 - 0x10], xmm6
movups xmmword [rcx + rdx*2], xmm6
add rdx, 0x10
cmp rax, rdx
jne 0x140040c00
cmp r14, rax
je 0x140040c2f
and r14d, 0xf
nop dword [rax + rax]
mov word [r12 + r8*2], 0x5c
inc r8
dec r14
jne 0x140040c20
mov qword [rbp + 0x418], r8
test r13b, 1
je 0x140040a10
xor r14d, r14d
cmp word [rdi], 0
setne r12b
cmp r8, qword [rbp + 0x408]
jne 0x140040c66
mov rcx, r15
mov rdx, r8
call fcn.14003ef70
mov r8, qword [rbp + 0x418]
mov r14b, r12b
lea rdi, [rdi + r14*2]
mov r12, qword [rbp + 0x410]
mov word [r12 + r8*2], 0x22
jmp 0x140040b77
test r13, r13
je 0x140040ccf
cmp r13, 0x10
jb 0x140040cc0
mov rax, r13
and rax, 0xfffffffffffffff0
lea rcx, [r12 + r8*2]
add rcx, 0x10
add r8, rax
xor edx, edx
nop
movups xmmword [rcx + rdx*2 - 0x10], xmm6
movups xmmword [rcx + rdx*2], xmm6
add rdx, 0x10
cmp rax, rdx
jne 0x140040ca0
cmp r13, rax
je 0x140040ccf
and r13d, 0xf
nop dword [rax + rax]
mov word [r12 + r8*2], 0x5c
inc r8
dec r13
jne 0x140040cc0
mov qword [rbp + 0x418], r8
jmp 0x140040a10
cmp r8, qword [rbp + 0x408]
jne 0x140040cf6
mov rcx, r15
mov rdx, r8
call fcn.14003ef70
mov r8, qword [rbp + 0x418]
mov r12, qword [rbp + 0x410]
mov word [r12 + r8*2], 0x22
inc r8
mov qword [rbp + 0x418], r8
cmp word [r14 + 2], 0
lea rax, [r14 + 4]
cmovne rdi, rax
mov sil, 1
jmp 0x140040a10
mov qword [rbp + 0x3d0], 0
mov qword [rbp + 0x3d8], 2
mov qword [rbp + 0x3e0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r14d, r14d
cmp r8, 0x201
jae 0x140040d90
jmp 0x140040d7f
jae 0x140040e76
cmp r8, 0x201
jae 0x140040d90
lea r15, [rbp - 0x60]
mov r12d, 0x200
mov r13, r8
jmp 0x140040de8
sub r8, r14
sub rbx, r14
cmp rbx, r8
jae 0x140040dbf
lea rcx, [rbp + 0x3d0]
mov rdx, r14
call fcn.140072c30
mov rdi, qword [rbp + 0x3d0]
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rbp + 0x3e0], r14
mov rbx, rdi
mov r15, qword [rbp + 0x3e8]
mov r12, r14
mov r13, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ecx, ecx
mov rdx, r15
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
test eax, eax
jne 0x140040e12
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140040fc4
mov r8d, esi
cmp r13, r8
jne 0x140040d70
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400410bb
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x140040d7f
jmp 0x140040d90
test r8, r8
jne 0x140040fe4
test sil, sil
jne 0x140040fe4
mov rsi, qword [rbp + 0x3f8]
mov rdi, qword [rbp + 0x400]
jmp 0x14004103c
cmp r12, r8
jb 0x1400410d5
lea rcx, [rbp + 0x408]
mov rdx, r15
call fcn.140045590
mov rsi, qword [rbp + 0x408]
movups xmm0, xmmword [rbp + 0x410]
movaps xmmword [rbp + 0x3a0], xmm0
movzx ebx, byte [rbp + 0x420]
mov eax, dword [rbp + 0x421]
mov dword [rbp + 0x3c8], eax
mov eax, dword [rbp + 0x424]
mov dword [rbp + 0x3cb], eax
test rdi, rdi
je 0x140040edd
mov rcx, qword [0x1400a7c58]
xor edx, edx
mov r8, qword [rbp + 0x3e8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp bl, 2
jne 0x140040f5d
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x50], 0
mov byte [rbp - 0x48], 1
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x140040f81
lea rax, [rsi - 1]
mov qword [rbp + 0x3e8], rax
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
mov qword [rbp + 0x3c0], rsi
call qword [rax]
mov rax, qword [rbp + 0x3c0]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov rsi, qword [rbp + 0x3e8]
je 0x140040f49
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.14004ad30
mov rcx, qword [0x1400a7c58]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140040f81
movaps xmm0, xmmword [rbp + 0x3a0]
movups xmmword [rbp - 0x58], xmm0
mov eax, dword [rbp + 0x3c8]
mov ecx, dword [rbp + 0x3cb]
mov dword [rbp - 0x47], eax
mov dword [rbp - 0x44], ecx
mov qword [rbp - 0x60], rsi
mov byte [rbp - 0x48], bl
lea rcx, [rbp + 0x3f0]
xor edx, edx
call fcn.14003eea0
mov rsi, qword [rbp + 0x3f8]
mov rdi, qword [rbp + 0x400]
mov rax, rdi
shl rax, 5
movups xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [rsi + rax + 0x10], xmm1
movups xmmword [rsi + rax], xmm0
inc rdi
mov rbx, qword [rbp + 0x3f0]
jmp 0x140041083
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov bl, 2
test rdi, rdi
jne 0x140040ec7
jmp 0x140040edd
mov rdx, qword [rbp + 0x410]
lea rcx, [rbp - 0x60]
call fcn.140045590
mov rdi, qword [rbp + 0x400]
cmp rdi, qword [rbp + 0x3f0]
jne 0x14004101a
lea rcx, [rbp + 0x3f0]
mov rdx, rdi
call fcn.14003eea0
mov rdi, qword [rbp + 0x400]
mov rsi, qword [rbp + 0x3f8]
mov rax, rdi
shl rax, 5
movups xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [rsi + rax + 0x10], xmm1
movups xmmword [rsi + rax], xmm0
inc rdi
mov rbx, qword [rbp + 0x3f0]
cmp qword [rbp + 0x408], 0
je 0x140041063
mov r8, qword [rbp + 0x410]
mov rcx, qword [0x1400a7c58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp + 0x3d0], 0
je 0x140041083
mov r8, qword [rbp + 0x3d8]
mov rcx, qword [0x1400a7c58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
shl rdi, 5
add rdi, rsi
mov rax, qword [rbp + 0x3b8]
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rsi
movaps xmm6, xmmword [rbp + 0x430]
add rsp, 0x4c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [0x14008427b]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140071a80
jmp 0x1400410ea
lea rax, str.md_b_
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.140071e50
ud2