Function at 0x100001338
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x260
mov rax, qword [0x100004110]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r9d, r9d
mov rbx, r8
mov r12, rcx
lea edx, [r9 + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
xor r13d, r13d
mov edi, 0x80004005
mov rbp, r13
cmp rbx, r13
je 0x1000015a3
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x30], r13d
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
cmp rax, r13
je 0x1000015a8
cmp dword [rsp + 0x30], 1
mov esi, 0x80070057
jne 0x1000013ff
mov r8, qword [rax]
mov ecx, 0x104
lea rdx, [rsp + 0x40]
mov edi, r13d
lea rax, [rcx + 0x7ffffefa]
cmp rax, r13
je 0x1000013eb
movzx eax, word [r8]
cmp ax, r13w
je 0x1000013eb
mov word [rdx], ax
add r8, 2
add rdx, 2
sub rcx, 1
jne 0x1000013c4
cmp rcx, r13
jne 0x1000013f9
sub rdx, 2
mov edi, 0x8007007a
mov word [rdx], r13w
jmp 0x100001470
cmp dword [rsp + 0x30], 2
jne 0x100001470
mov rcx, qword [rax]
call qword [sym.imp.msvcrt.dll__wtoi64]
mov r8, qword [rbx + 8]
mov ecx, 0x104
lea rdx, [rsp + 0x40]
mov edi, r13d
mov rbp, rax
lea rax, [rcx + 0x7ffffefa]
cmp rax, r13
je 0x10000144a
movzx eax, word [r8]
cmp ax, r13w
je 0x10000144a
mov word [rdx], ax
add r8, 2
add rdx, 2
sub rcx, 1
jne 0x100001423
cmp rcx, r13
jne 0x100001458
sub rdx, 2
mov edi, 0x8007007a
cmp edi, r13d
mov word [rdx], r13w
jl 0x100001470
mov rcx, rbp
call qword [sym.imp.USER32.dll_IsWindow]
cmp eax, r13d
cmove edi, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, r13d
jl 0x1000015ab
lea rcx, [0x1000012a0]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
jle 0x1000015a8
lea rcx, [0x1000012a0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [0x1000012a0]
lea rcx, [rsp + 0x40]
mov r8d, eax
call qword [sym.imp.SHLWAPI.dll_StrCmpNW]
cmp eax, r13d
jne 0x1000015a8
lea rcx, [0x1000012a0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x40]
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp edi, eax
jge 0x100001518
lea rbx, [rsp + rdi*2 + 0x40]
movzx ecx, word [rbx]
call qword [sym.imp.msvcrt.dll_iswdigit]
cmp eax, r13d
je 0x100001551
lea rcx, [rsp + 0x40]
inc edi
add rbx, 2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp edi, eax
jl 0x1000014f5
mov edi, 0x8007000e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, 0x430
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r13
je 0x100001555
lea r8, [rsp + 0x40]
mov rdx, r12
mov rcx, rax
call fcn.1000015e0
mov rbx, rax
jmp 0x100001558
mov edi, esi
jmp 0x1000015a8
mov rbx, r13
cmp rbx, r13
je 0x1000015a8
mov rcx, rbx
mov edi, esi
call fcn.1000017c0
cmp eax, r13d
je 0x10000158d
mov rcx, qword [rbx + 8]
lea r9, [0x1000016b8]
mov r8, rbp
mov edx, 0xc8
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov edi, r13d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000015a8
mov edi, 0x80070057
cmp edi, r13d
cmovge edi, r13d
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1000023a0
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret