Function at 0x18001d3f4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x500]
sub rsp, 0x600
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
xor ebx, ebx
mov r14, r8
mov rdi, rcx
mov esi, edx
mov dword [rbp - 0x60], edx
lea rcx, [rsp + 0x70]
lea r8d, [rbx + 0x30]
xor edx, edx
mov qword [rbp - 0x58], r9
mov qword [rsp + 0x68], rbx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x64], ebx
test esi, 0xfffffffc
je 0x18001d45e
lea edi, [rbx + 0x57]
jmp 0x18001d937
lea r9, [rbp - 0x5c]
mov r8d, esi
mov rdx, r14
mov rcx, rdi
call fcn.18001b178
test eax, eax
jne 0x18001d481
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x18001d937
cmp dword [0x1800246a8], ebx
jne 0x18001d492
call fcn.18001e1bc
test eax, eax
je 0x18001d474
mov r15d, esi
lea r12, [0x1800248f8]
lea rax, [0x1800248c8]
and r15d, 1
cmove r12, rax
cmp dword [r12], ebx
jne 0x18001d4bb
mov edi, 0x10d5
jmp 0x18001d937
test rdi, rdi
je 0x18001d4c9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test r14, r14
jne 0x18001d4f7
lea rdx, [rbp + 0x2e0]
mov r8d, 0x208
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r14, [rbp + 0x2e0]
lea rcx, [0x18001d970]
test eax, eax
cmove r14, rcx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test rdi, rdi
je 0x18001d512
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
add esi, 0x10
mov ecx, esi
call fcn.18001f4a0
mov r13, rax
test rax, rax
jne 0x18001d52c
lea edi, [rax + 8]
jmp 0x18001d937
mov edx, esi
mov r9, r14
mov rcx, rax
test rdi, rdi
je 0x18001d54c
lea r8, [0x18001d980]
mov qword [rsp + 0x20], rdi
call fcn.18001b250
jmp 0x18001d558
lea r8, [0x18001d98c]
call fcn.18001b250
test eax, eax
jns 0x18001d564
movzx edi, ax
jmp 0x18001d91f
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rdx, [rsp + 0x68]
xor r9d, r9d
lea r8d, [rax + 0x146]
mov rcx, r12
mov dword [rsp + 0x20], ebx
add r8d, esi
call fcn.18001bfa0
mov edi, eax
test eax, eax
jne 0x18001d91f
neg r15d
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x40]
sbb edx, edx
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x64], 1
neg edx
add edx, 2
call fcn.18001b9ac
test eax, eax
je 0x18001d5e7
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
call fcn.18001ca78
mov edx, dword [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.18001b824
mov rsi, qword [rbp - 0x78]
mov r15d, 0x1000
test dword [rsi + 0xc], r15d
jne 0x18001d766
mov rcx, rsi
call fcn.18001bc60
mov r14d, eax
test r15d, eax
jne 0x18001d762
lea rcx, [rbp - 0x50]
mov dword [rsp + 0x60], ebx
call fcn.18001a608
test eax, eax
je 0x18001d754
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x18001d754
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x18001d754
movzx ecx, word [rbp - 0x34]
movzx edx, word [rbp - 0x36]
movzx r8d, word [rbp - 0x38]
movzx eax, word [rbp - 0x32]
movzx r10d, word [rbp - 0x3a]
movzx r11d, word [rbp - 0x3e]
movzx r9d, word [rbp - 0x40]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r10d
lea r8, [0x18001d998]
lea rcx, [rbp + 0x150]
mov edx, 0x80
mov dword [rsp + 0x20], r11d
call fcn.18001b250
test eax, eax
js 0x18001d754
mov edx, dword [rbp - 0x70]
lea r8, [0x180021018]
lea rcx, [rsp + 0x68]
call fcn.18001bd74
mov edx, dword [rbp - 0x70]
lea r8, [rbp + 0x150]
lea rcx, [rsp + 0x68]
call fcn.18001bd74
lea rcx, [rsp + 0x60]
call fcn.18001be64
mov ecx, dword [rsp + 0x60]
test eax, eax
cmovne ecx, ebx
test ecx, ecx
je 0x18001d750
lea rcx, [rbp + 0x100]
call fcn.18001bb78
test eax, eax
je 0x18001d701
mov word [rbp + 0x100], bx
lea rcx, [rbp + 0x100]
call fcn.18001a734
mov rsi, rax
test rax, rax
je 0x18001d750
lea r8, [0x18001d9d0]
lea rcx, [rbp + 0x150]
mov r9, rax
mov edx, 0x80
call fcn.18001b250
test eax, eax
js 0x18001d748
mov edx, dword [rbp - 0x70]
lea r8, [rbp + 0x150]
lea rcx, [rsp + 0x68]
call fcn.18001bd74
mov rcx, rsi
call fcn.18001f484
mov rsi, qword [rbp - 0x78]
or r14d, r15d
mov rcx, rsi
mov edx, r14d
call fcn.18001c2fc
or dword [rsi + 0xc], r15d
mov edx, dword [rbp - 0x70]
lea r8, [0x180021018]
lea rcx, [rsp + 0x68]
call fcn.18001bd74
mov r15d, dword [rbp - 0x70]
lea rcx, [rsp + 0x68]
mov edx, r15d
xor r9d, r9d
mov r8, r13
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x10
call fcn.18001c594
mov edx, dword [rbp - 0x70]
lea r8, [0x18001d9f0]
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x10010
call fcn.18001c594
cmp dword [0x1800248c0], ebx
je 0x18001d879
mov esi, 0x11c
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, esi
call sub.msvcrt.dll_memset
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], esi
call qword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x18001d879
movzx eax, byte [rbp + 0xfa]
movzx ecx, word [rbp + 0xf8]
movzx edx, word [rbp + 0xf6]
movzx r8d, word [rbp + 0xf4]
lea r9, [0x18002101c]
mov qword [rsp + 0x50], r9
mov r9d, dword [rbp - 0x1c]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp - 0x14]
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x18]
lea r8, [0x18001da00]
lea edx, [rsi - 0x18]
lea rcx, [rbp + 0x1d0]
mov dword [rsp + 0x20], eax
call fcn.18001b250
test eax, eax
js 0x18001d879
mov edx, dword [rbp - 0x70]
lea r8, [rbp + 0x1d0]
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call fcn.18001c594
test byte [rbp - 0x60], 2
je 0x18001d8c3
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea r8, [0x18001da68]
lea rcx, [rbp + 0x2e0]
mov r9, rax
mov edx, 0x208
call fcn.18001b250
test eax, eax
js 0x18001d8c3
mov edx, dword [rbp - 0x70]
lea r8, [rbp + 0x2e0]
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call fcn.18001c594
mov r14d, dword [rbp - 0x70]
lea r8, [0x180021024]
lea rcx, [rsp + 0x68]
mov edx, r14d
call fcn.18001bd74
mov esi, dword [rbp - 0x5c]
test esi, esi
je 0x18001d905
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x68]
mov dword [rbp - 0x40], 0xe0e01111
mov dword [rbp - 0x3c], esi
mov dword [rbp - 0x38], r15d
mov dword [rbp - 0x34], r14d
mov dword [rbp - 0x30], ebx
call fcn.18001bcf8
mov rdx, qword [rbp - 0x58]
test rdx, rdx
je 0x18001d91f
mov ecx, dword [r12]
and ecx, 0xf
shl rcx, 0x20
or rcx, rsi
mov qword [rdx], rcx
mov rcx, r13
call fcn.18001f484
cmp dword [rsp + 0x64], ebx
je 0x18001d937
lea rcx, [rsp + 0x68]
call fcn.18001c368
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.180001ac0
mov rbx, qword [rsp + 0x648]
add rsp, 0x600
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret