Function at 0x140040de0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x248
movaps xmmword [rsp + 0x230], xmm6
mov rax, qword [0x14010c040]
xor rax, rsp
mov qword [rsp + 0x228], rax
cmp qword [0x14011d648], 0
jne 0x140040e90
mov ecx, 0x50
call fcn.14008ed5c
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.14008ed5c
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
lea rax, [rsi + 0x38]
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x14011d648], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdi, [rsp + 0x38]
mov qword [rdi], rax
mov rcx, rax
call fcn.14008f334
mov qword [rdi + 8], rax
mov rcx, rsi
mov rdx, rdi
call fcn.140045be0
movabs rax, 0xaaaaaaaa00000006
lea rcx, [rsp + 0x1f8]
mov qword [rcx], rax
xor esi, esi
mov qword [rcx + 8], rsi
movabs rax, 0x100000000
mov qword [rcx + 0x10], rax
call fcn.140043f30
lea rdx, [rsp + 0x1e0]
mov qword [rdx + 0x10], rsi
xorps xmm6, xmm6
movaps xmmword [rdx], xmm6
mov ecx, 3
call fcn.14001d0a0
test al, al
je 0x140041468
movaps xmm0, xmmword [0x1400efde0]
lea rdi, [rsp + 0x1c8]
movaps xmmword [rdi + 8], xmm0
movaps xmmword [rdi - 8], xmm0
movaps xmmword [rdi - 0x18], xmm0
movaps xmmword [rdi - 0x28], xmm0
movaps xmmword [rdi - 0x38], xmm0
lea rax, str.thorium.exe
lea r8, [rsp + 0x180]
mov qword [r8], rax
mov qword [r8 + 8], 0xb
lea rcx, [rsp + 0x1e0]
lea rsi, [rsp + 0x38]
mov rdx, rsi
call fcn.140044e20
movaps xmmword [rdi - 0x38], xmm6
mov byte [rdi - 0x28], 0
mov ecx, 0x18
call fcn.14008ed5c
mov qword [rdi - 0x20], rax
lea rcx, [rax + 0x18]
mov qword [rdi - 0x10], rcx
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rdi - 0x18], rcx
movups xmmword [rdi], xmm6
mov qword [rdi - 8], rdi
mov qword [rdi + 0x10], 1
lea rcx, [rsp + 0x190]
mov rdx, rsi
call fcn.140045ab0
cmp byte [rsi + 0x17], 0
jns 0x140040f90
mov rcx, qword [rsp + 0x38]
call fcn.14008ed54
mov rbx, qword [0x14011d648]
mov rax, qword [rbx + 0x18]
cmp qword [rbx + 0x20], rax
je 0x14004146b
movzx ecx, byte [rax + 0x17]
test cl, cl
jns 0x140040fb4
mov rcx, qword [rax + 8]
mov rax, qword [rax]
lea rdx, [rsp + 0x170]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rdi, [rsp + 0xf0]
mov rcx, rdi
call fcn.140085a70
lea rsi, [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.14001c430
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x140040ff3
mov rcx, qword [rsp + 0x40]
cmp rcx, 0x10
jne 0x140041465
test al, al
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx], 0x63
jne 0x140041465
test al, al
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx + 2], 0x68
jne 0x140041465
test al, al
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx + 4], 0x72
jne 0x140041465
test al, al
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx + 6], 0x6f
jne 0x140041465
test al, al
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx + 8], 0x6d
jne 0x140041465
test al, al
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx + 0xa], 0x65
jne 0x140041465
test al, al
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx + 0xc], 0x5f
jne 0x140041465
test al, al
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx + 0xe], 0x70
jne 0x140041465
test al, al
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx + 0x10], 0x72
jne 0x140041465
test al, al
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx + 0x12], 0x6f
jne 0x140041465
test al, al
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx + 0x14], 0x78
jne 0x140041465
test al, al
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx + 0x16], 0x79
jne 0x140041465
test al, al
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx + 0x18], 0x2e
jne 0x140041465
test al, al
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx + 0x1a], 0x65
jne 0x140041465
test al, al
mov rdx, rsi
cmovs rdx, rcx
cmp word [rdx + 0x1c], 0x78
jne 0x140041465
test al, al
cmovs rsi, rcx
cmp word [rsi + 0x1e], 0x65
jne 0x140041465
test al, al
jns 0x140041147
call fcn.14008ed54
cmp byte [rsp + 0x107], 0
jns 0x14004115e
mov rcx, qword [rsp + 0xf0]
call fcn.14008ed54
mov rax, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x20]
sub rcx, rax
sar rcx, 3
movabs r14, 0xaaaaaaaaaaaaaaab
imul rcx, r14
cmp rcx, 1
jbe 0x1400411be
mov r15d, 1
mov r12d, 0x18
lea rsi, [rsp + 0x190]
lea rdi, [rsp + 0x160]
jmp 0x140041450
mov rax, qword [rsp + 0x1f0]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [rsp + 0x1e0]
movups xmmword [rcx], xmm0
jmp 0x1400412bc
xorps xmm6, xmm6
lea rsi, [rsp + 0xf0]
movaps xmmword [rsi], xmm6
movaps xmmword [rsi + 0x50], xmm6
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
mov qword [rsi + 0x60], 0
mov dword [rsi], 0x68
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [rsi + 0x3d], 8
je 0x140041243
mov rcx, qword [rsp + 0x108]
lea rsi, [rsp + 0xe0]
mov qword [rsi], rcx
call fcn.14008f334
mov qword [rsi + 8], rax
lea rax, str.source_shortcut
lea rdx, [rsp + 0xd0]
mov qword [rdx], rax
mov qword [rdx + 8], 0xf
lea rcx, [rsp + 0x190]
mov r8, rsi
call fcn.140046ab0
lea rsi, [rsp + 0x38]
mov r8d, 0x98
mov rcx, rsi
mov dl, 0xaa
call fcn.1400bf160
xor eax, eax
mov byte [rsi], al
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0xb8]
movups xmmword [rdx - 0x5c], xmm6
movups xmmword [rdx - 0x4c], xmm6
mov qword [rdx - 0x3f], 0
movups xmmword [rdx - 0x30], xmm6
movups xmmword [rdx - 0x20], xmm6
mov dword [rdx - 0x11], 0
movups xmmword [rdx], xmm6
movups xmmword [rdx - 0x78], xmm6
movups xmmword [rdx - 0x6d], xmm6
mov qword [rdx - 8], rdx
mov byte [rdx + 0x10], al
cmp byte [rsp + 0x1f7], al
jns 0x1400411a2
mov rdx, qword [rsp + 0x1e0]
mov r8, qword [rsp + 0x1e8]
call fcn.14000d2c0
mov byte [rsp + 0xa9], 1
cmp byte [rsp + 0x59], 0
jne 0x140041471
lea rcx, [rsp + 0x190]
lea rsi, [rsp + 0x210]
mov rdx, rsi
call fcn.1400200a0
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x38]
mov rdx, rsi
call fcn.140021100
cmp byte [rsi + 0x17], 0
jns 0x14004130c
mov rcx, qword [rsp + 0x210]
call fcn.14008ed54
mov rax, qword [rsp + 0x28]
inc rax
cmp rax, 1
ja 0x140041325
cmp byte [rsp + 0x30], 0
je 0x14004146e
lea rsi, [rsp + 0xb0]
lea rcx, [rsp + 0x28]
call fcn.140021c10
mov rdx, qword [rsi + 8]
mov rcx, rsi
call fcn.1400d8f10
mov rcx, qword [rsi - 0x50]
test rcx, rcx
je 0x140041356
mov qword [rsp + 0x68], rcx
call fcn.14008ed54
lea rsi, [rsp + 0x1c0]
cmp byte [rsp + 0x57], 0
jns 0x14004136f
mov rcx, qword [rsp + 0x40]
call fcn.14008ed54
mov rdx, qword [rsp + 0x1c8]
mov rcx, rsi
call fcn.14001a120
mov rsi, qword [rsp + 0x1a8]
test rsi, rsi
je 0x1400413cd
mov rdi, qword [rsp + 0x1b0]
mov rcx, rsi
cmp rdi, rsi
jne 0x1400413b0
jmp 0x1400413c0
mov rcx, qword [rdi - 0x18]
call fcn.14008ed54
add rdi, 0xffffffffffffffe8
cmp rdi, rsi
je 0x1400413b8
cmp byte [rdi - 1], 0
jns 0x1400413a7
jmp 0x14004139e
mov rcx, qword [rsp + 0x1a8]
mov qword [rsp + 0x1b0], rsi
call fcn.14008ed54
cmp byte [rsp + 0x1f7], 0
jns 0x1400413e4
mov rcx, qword [rsp + 0x1e0]
call fcn.14008ed54
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.1400909a0
xor eax, eax
movaps xmm6, xmmword [rsp + 0x230]
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
add rax, r12
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], rcx
mov rcx, rsi
mov rdx, rdi
call fcn.140047540
inc r15
mov rax, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x20]
sub rcx, rax
sar rcx, 3
imul rcx, r14
add r12, 0x18
cmp r15, rcx
jae 0x1400411be
movzx ecx, byte [rax + r12 + 0x17]
test cl, cl
jns 0x14004140f
mov rcx, qword [rax + r12 + 8]
mov rax, qword [rax + r12]
jmp 0x140041412
int3
int3
int3
int3
mov r9b, byte [rsp + 0x38]
mov r8b, byte [rsp + 0x58]
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x190]
call fcn.1400d8c20
jmp 0x14004130c