Function at 0x14001cff8
Capabilities:
Accept command line arguments
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
or rdx, 0xffffffffffffffff
mov rcx, rax
mov r8, rdx
call qword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov rcx, qword [0x14019c040]
xor r9d, r9d
mov r8, rbx
xor edx, edx
add rsp, 0x20
pop rbx
jmp 0x140050cc0
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rcx, [r11 - 0x1c0]
mov qword [r11 - 0x1c0], r8
call fcn.140029d28
mov ebp, 1
mov byte [0x14019c229], bpl
call fcn.14002d394
xor r12d, r12d
movzx ecx, al
mov dword [rsp + 0x80], eax
movzx esi, r12w
mov r15w, cx
shl r15w, 8
or r15w, cx
lea rcx, [rsp + 0x50]
call fcn.140063500
lea r13, [0x14019c170]
or r14, 0xffffffffffffffff
lea r8, str.PeExe
mov edx, r14d
mov rcx, r13
call fcn.140065f20
lea rcx, [rsp + 0xa0]
call fcn.140063500
mov rcx, qword [0x14019c040]
lea r9, [rsp + 0xa0]
lea r8, str.SCRIPTINIT
lea edx, [rbp + 0x63]
mov dword [rsp + 0xa8], r12d
mov dword [rsp + 0xac], r12d
mov qword [rsp + 0x20], r12
call fcn.140030854
lea rcx, [rsp + 0xa0]
mov edx, ebp
call fcn.140081dc0
mov r11, qword [rsp + 0xa0]
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0xb8], r11
call fcn.140029d28
cmp dword [rsp + 0xa8], 4
mov rcx, qword [rsp + 0xb8]
jg 0x140050de8
mov word [r11], r12w
mov word [rcx], r12w
mov r11, qword [rsp + 0xa0]
cmp word [rcx], r12w
je 0x140050ecc
lea rdx, [0x14014bb30]
mov r8d, 0x40
mov rcx, r13
call fcn.140036614
mov rbx, qword [rsp + 0xa0]
mov dil, byte [0x1401958a8]
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xa0], r12
mov byte [0x1401958a8], bpl
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0xd0]
mov rdx, rax
call fcn.140071240
mov r8, qword [rsp + 0xd0]
lea r9, [0x14014f7a8]
mov rdx, rbx
mov rcx, r13
call fcn.1400c0a20
lea rdx, str.__Autoapp
mov r9d, r14d
xor r8d, r8d
mov rcx, r13
mov byte [0x1401958a8], dil
call fcn.1400307c0
cmp rax, r12
je 0x140050e98
mov rdx, qword [rax]
cmp word [rdx], r12w
je 0x140050e8e
mov si, word [rdx]
add rdx, 2
lea rcx, [rsp + 0x50]
call fcn.140071480
lea rdx, str.__bInitWin
mov r9d, r14d
xor r8d, r8d
mov rcx, r13
call fcn.1400307c0
lea rcx, [rsp + 0xd0]
cmp rax, r12
setne byte [0x14019c0cf]
call fcn.14005b520
mov r11, qword [rsp + 0xa0]
mov rcx, r11
call fcn.14005b500
lea rcx, [rsp + 0xa0]
call fcn.14005b520
lea r8, str.PeExe
mov edx, ebp
mov rcx, r13
call fcn.140065f20
lea rcx, [rsp + 0x90]
call fcn.140063500
mov ecx, 0x2a
movzx r13d, r15w
shl r13d, 0x10
mov dword [rsp + 0x98], r12d
mov dword [rsp + 0x9c], r12d
lea eax, [rcx - 6]
lea edi, [rcx - 0xa]
mov rbx, r12
mov dword [rsp + 0x60], r13d
cmp cx, si
je 0x140051019
cmp ax, si
je 0x140051019
mov rax, qword [rsp + 0x50]
cmp word [rax], r12w
jne 0x140051019
mov al, byte [0x14019c104]
mov rcx, qword [0x14019c040]
lea r9, [rsp + 0x90]
neg al
lea rax, [rsp + 0x60]
lea r8, str.SCRIPT
sbb rdx, rdx
mov qword [rsp + 0x20], rax
and edx, 0xc8
add rdx, 0x65
call fcn.140030854
mov r13d, dword [rsp + 0x60]
lea rcx, [rsp + 0x90]
mov edx, r13d
or edx, ebp
call fcn.140081dc0
cmp dword [rsp + 0x98], 4
mov rbx, qword [rsp + 0x90]
jg 0x140050fc0
mov word [rsp + 0x80], r12w
mov r15d, r12d
mov r13d, r12d
mov rbx, r12
lea rcx, [rsp + 0x200]
lea rdx, str.MBSTLOAD_101
mov r8, rdi
call fcn.14010cd30
lea rdx, [0x14019c170]
lea rcx, [rsp + 0x200]
call fcn.1400223c8
lea rcx, [rsp + 0x220]
lea rdx, str.MBSTGUITEAM_SET_::MBSRGui1_EXIT_FILE
mov r8d, 0x50
call fcn.14010cd30
lea rdx, [0x14019c170]
lea rcx, [rsp + 0x220]
call fcn.1400223c8
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
mov qword [rsp + 0xf8], rax
cmp rax, r12
je 0x140051055
lea rdx, [rsp + 0xf8]
lea rcx, str.PECMDpecmd_cmd
mov r8d, 0x11
call fcn.14005b600
mov byte [0x14019bf20], bpl
cmp eax, r12d
jne 0x14005105c
mov byte [0x14019bf20], r12b
mov rbp, qword [rsp + 0xe8]
lea rcx, str.MAIN
mov r8d, 4
mov rdx, rbp
call fcn.14005c510
movzx ecx, byte [0x14019bce6]
cmp al, r12b
cmovne ecx, r12d
mov r12b, byte [0x14019bf20]
mov byte [0x14019bce6], cl
xor ecx, ecx
cmp r12b, cl
jne 0x140051180
lea eax, [rcx + 0x2d]
cmp ax, si
jne 0x1400510ab
or r12b, 2
mov eax, 0x2a
cmp ax, si
jne 0x1400510df
lea rcx, [0x14019c1b0]
mov byte [0x1401958a8], 1
call fcn.1400620f0
mov rdx, qword [rsp + 0x50]
lea rcx, [0x14019c170]
add rdx, 8
call fcn.1400504a0
jmp 0x140051155
mov eax, 0x24
cmp ax, si
jne 0x14005110e
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea rcx, [0x14019c170]
xor r9d, r9d
xor r8d, r8d
mov byte [0x1401958a8], 1
call fcn.14004d38c
jmp 0x140051155
mov rax, qword [rsp + 0x50]
xor esi, esi
cmp word [rax], si
je 0x14005115d
cmp rbx, rsi
jne 0x14005115d
lea rdx, [0x140146d20]
lea rcx, [rsp + 0x50]
mov byte [0x1401958a8], 1
call fcn.140063600
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.140063600
mov rdx, qword [rsp + 0x50]
lea rcx, [0x14019c170]
call fcn.140047384
movsxd rdi, eax
jmp 0x140051836
cmp word [rbp], si
jne 0x140051182
cmp rbx, rsi
jne 0x140051182
lea rdx, [0x14014f7a8]
lea rcx, [0x14019c170]
xor r8d, r8d
call fcn.140046210
jmp 0x140051155
xor esi, esi
lea rcx, [rsp + 0x48]
call fcn.140063500
cmp rdi, rsi
jne 0x1400511a0
lea rcx, [rsp + 0x48]
call fcn.14005b520
jmp 0x140051889
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14003aa2c
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xc8]
mov r8d, 1
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0x88], esi
call fcn.140036bcc
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
call fcn.140029d28
mov rdi, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x48]
mov rbp, rdi
sub rbp, rdx
sar rbp, 1
mov dword [rsp + 0x88], ebp
cmp rbx, rsi
je 0x140051211
mov al, 1
cmp r12b, sil
je 0x140051214
mov al, sil
mov r12b, 0x10
mov byte [rsp + 0x40], al
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x70], esi
mov dword [rsp + 0x74], esi
mov byte [rsp + 0x42], 1
mov byte [rsp + 0x41], r12b
mov ebx, 9
cmp al, sil
je 0x140051255
lea rbp, [rsp + 0x90]
mov byte [0x1401958a8], 1
mov byte [rsp + 0x42], sil
jmp 0x14005150c
mov rcx, qword [rsp + 0x90]
call fcn.14005b500
lea rcx, [rsp + 0x90]
call fcn.14005b520
mov eax, 0x2f
mov word [rsp + 0x80], si
mov r15w, si
mov r13d, esi
mov r12b, sil
lea edx, [rax - 0xf]
cmp ax, word [rdi]
jne 0x1400512b4
movzx eax, word [rdi + 2]
lea ecx, [rdx + 0x4c]
or ax, dx
cmp cx, ax
jne 0x1400512b4
cmp bx, word [rdi + 4]
ja 0x1400512aa
cmp word [rdi + 4], 0xd
jbe 0x1400512b0
cmp dx, word [rdi + 4]
jne 0x1400512b4
mov r12b, byte [rdi + 2]
mov qword [rsp + 0x78], rsi
cmp r12b, sil
je 0x1400512e2
mov word [rdi + 2], dx
mov word [rdi], dx
add rdi, 4
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rdi
call fcn.140029d28
mov rdi, qword [rsp + 0x58]
jmp 0x1400513dc
mov eax, 0x22
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xf0]
cmp ax, word [rdi]
mov dword [rsp + 0xc0], esi
mov qword [rsp + 0xf0], rdi
sete bl
xor r8d, r8d
call fcn.140036bcc
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0xd8]
sub rax, rdx
sar rax, 1
mov r8d, eax
call fcn.1400712b0
mov rcx, qword [rsp + 0xd8]
call fcn.1400cf470
mov esi, eax
xor eax, eax
cmp bl, al
je 0x140051378
cmp esi, eax
je 0x140051366
lea ecx, [rax + 9]
cmp cx, word [rdi + 2]
ja 0x14005135b
cmp word [rdi + 2], 0xd
jbe 0x140051366
mov ecx, 0x20
cmp cx, word [rdi + 2]
jne 0x140051378
mov rcx, rdi
call fcn.14002e004
mov rdi, rax
mov qword [rsp + 0x58], rax
xor eax, eax
cmp esi, eax
je 0x1400513cd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x78]
lea ebx, [rax + 1]
lea edx, [rbx + 0xa]
call fcn.1400635c0
mov rcx, qword [rsp + 0x78]
lea rdx, str.LOAD
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.14010cd30
mov rcx, qword [rsp + 0x78]
movsxd r8, ebx
add r8, r8
mov rdx, rdi
add rcx, 0xa
call fcn.14010cd30
mov rdi, qword [rsp + 0x78]
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0xd8]
call fcn.14005b520
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x68]
movsxd rbx, eax
lea edx, [rbx + 3]
call fcn.1400635c0
mov rcx, qword [rsp + 0x68]
lea r11d, [rbx + 1]
movsxd r8, r11d
mov rdx, rdi
add r8, r8
call fcn.14010cd30
mov rax, qword [rsp + 0x68]
mov word [rax + rbx*2 + 2], si
cmp r12b, sil
je 0x1400514ef
mov rcx, qword [rsp + 0x68]
mov byte [rsp + 0x41], sil
call fcn.14005df20
mov r11, qword [rsp + 0x68]
xor edi, edi
movzx eax, word [r11]
mov rsi, r11
mov qword [rsp + 0xc8], r11
cmp ax, di
je 0x14005146b
lea ecx, [rdi + 0xa]
cmp ax, 0xd
je 0x140051463
cmp ax, cx
je 0x140051463
add rsi, 2
mov ax, word [rsi]
cmp ax, di
jne 0x14005144c
mov qword [rsp + 0xc8], rsi
mov rbx, rsi
lea rcx, [rsp + 0x48]
sub rbx, r11
sar rbx, 1
lea edx, [rbx + rbp + 1]
call fcn.1400635c0
cmp ebx, edi
jle 0x1400514ed
mov rax, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
movsxd rdi, ebx
movsxd rbx, ebp
lea r8, [rdi + rdi]
lea rcx, [rax + rbx*2]
call fcn.14010cd30
mov rax, qword [rsp + 0x48]
xor ecx, ecx
lea r11, [rbx + rdi]
mov word [rax + r11*2], cx
cmp r12b, 0x4c
jne 0x1400514ed
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x68]
mov rdx, rsi
inc eax
cdqe
lea rbx, [rax + rax]
mov r8, rbx
call fcn.14010cd30
mov rcx, qword [rsp + 0x68]
lea r8, [rdi + rdi]
add rcx, rbx
xor edx, edx
call fcn.14010c6c0
xor esi, esi
mov r12b, byte [rsp + 0x41]
lea rcx, [rsp + 0x78]
lea rbp, [rsp + 0x68]
or r12b, 1
call fcn.14005b520
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rbp]
lea rdi, [0x14019c170]
mov r8d, 1
mov rcx, rdi
mov qword [rsp + 0xb0], rbx
call fcn.140075040
cmp byte [rsp + 0x40], sil
je 0x14005154f
cmp byte [0x14019c104], sil
lea rax, str.301
lea rdx, str.101
cmovne rdx, rax
jmp 0x1400515ab
lea rcx, [rsp + 0xb0]
call fcn.140029d28
mov rbx, qword [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rax, [rbx + rcx*2 - 2]
cmp rax, rbx
jb 0x1400515a4
mov ecx, 9
lea r14d, [rcx + 0x17]
cmp cx, word [rax]
ja 0x14005158e
cmp word [rax], 0xd
jbe 0x140051594
cmp r14w, word [rax]
jne 0x1400515a0
mov word [rax], si
sub rax, 2
cmp rax, rbx
jae 0x140051583
or r14, 0xffffffffffffffff
lea rdx, str.cmdline
mov r8d, 0x40
mov rcx, rdi
call fcn.140036614
mov rax, rbx
sub rax, qword [rbp]
sar rax, 1
cmp eax, esi
jle 0x1400515e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp]
mov rdx, rbx
inc eax
movsxd r8, eax
add r8, r8
call fcn.14010cd30
mov rbx, qword [rbp]
lea rdx, [0x14014ba3c]
lea rcx, [rsp + 0xe0]
call fcn.140071240
lea rcx, [rsp + 0x130]
mov rdx, rdi
call fcn.14002a68c
lea rcx, [rsp + 0x130]
mov rdx, rdi
call fcn.14002af60
movzx edi, r15w
lea rcx, [rsp + 0x130]
mov edx, edi
mov qword [rsp + 0x170], rsi
call fcn.1400602b0
lea rcx, [rsp + 0x130]
xor r8d, r8d
mov rdx, rbx
mov word [rsp + 0x13c], r15w
call fcn.1400367d8
mov rcx, qword [rbp]
movzx edx, r15w
call fcn.14002d37c
lea r9, [rsp + 0xe0]
xor edx, edx
mov ebx, eax
lea rax, [rsp + 0x130]
mov rcx, rbp
mov r8d, ebx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
call fcn.1400435c0
movzx esi, word [rsp + 0x80]
lea r8d, [rbx + 1]
movzx ecx, ax
mov edx, esi
or r13d, ecx
mov rcx, qword [rbp]
xor edx, edi
call fcn.14002d430
shl esi, 0x10
and r13d, 2
lea rcx, [rsp + 0x130]
or esi, r13d
xor edx, edx
mov dword [rsp + 0x60], esi
call fcn.140045e0c
lea rcx, [rsp + 0x188]
call fcn.14005b520
lea rcx, [rsp + 0xe0]
call fcn.14005b520
movsx edx, byte [rsp + 0x42]
lea r8, str.PeExe
lea rcx, [0x14019c170]
call fcn.140065f20
mov rdx, qword [rbp]
mov r8, qword [rsp + 0x48]
xor r13d, r13d
movsx eax, r12b
lea rcx, [0x14019c170]
and eax, 1
mov qword [rsp + 0x30], r13
xor r9d, r9d
or eax, esi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0xb0], rdx
bts eax, 7
mov qword [rbp], r13
mov dword [rsp + 0x20], eax
call fcn.1400c0c10
movsxd rdi, eax
mov qword [rsp + 0x80], rdi
call fcn.14003aa90
mov byte [0x14019c105], al
call fcn.140063a60
mov r11d, dword [0x14019c66c]
cmp r11d, r13d
jle 0x140051767
mov byte [0x1401958af], r14b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [rax - 0x14]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, dword [0x14019c66c]
cmp r11d, r13d
jle 0x140051822
mov edi, 0xa
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov esi, eax
sub ecx, ebx
cmp ecx, 1
jb 0x1400517a6
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov ebx, esi
mov r9d, edi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0x4bf
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x1400517ff
lea rcx, [rsp + 0x100]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_PeekMessageW]
cmp eax, r13d
je 0x14005180b
lea rcx, [rsp + 0x100]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x100]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov r11d, dword [0x14019c66c]
cmp r11d, r13d
jg 0x1400517c0
mov eax, dword [0x14019c66c]
cmp eax, r13d
jg 0x14005178b
mov rdi, qword [rsp + 0x80]
lea rcx, [rsp + 0x68]
call fcn.14005b520
lea rcx, [rsp + 0x48]
call fcn.14005b520
mov rcx, qword [rsp + 0x90]
call fcn.14005b500
lea rcx, [0x14019c710]
call fcn.14005b840
lea rcx, [0x14019cb40]
call fcn.14005b880
lea rcx, [0x14019c1b0]
call fcn.1400620f0
call fcn.14002df58
lea r8, [0x14014f7a8]
lea rdx, [0x14014f7a8]
lea rcx, [0x14019c170]
call fcn.14003a070
mov r14, rdi
lea rcx, [rsp + 0x90]
call fcn.14005b520
lea rcx, [rsp + 0x50]
call fcn.14005b520
mov rax, r14
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14010bcc0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret