Function at 0x140087de8
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x678]
sub rsp, 0x770
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x1401080e0]
xor rax, rsp
mov qword [rbp + 0x660], rax
lea rcx, [rbp + 0x2f0]
call fcn.14007d3c8
nop
lea rcx, [rbp - 0x50]
call fcn.14007d700
nop
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
cmp dword [rsp + 0x20], 2
je 0x140087e69
lea ebx, [r14 + 1]
jmp 0x140088050
lea rdx, str._terminate
mov rcx, qword [rax + 8]
call qword [sym.imp.MSVCR120.dll_wcscmp]
test eax, eax
jne 0x140087e8a
call fcn.14009e67c
mov ebx, eax
jmp 0x140088050
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x28]
call fcn.14006874c
nop
call fcn.14009ac18
mov rdi, rax
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140069bfc
mov rdx, rax
mov rcx, rdi
call fcn.14009ad18
test eax, eax
jne 0x140087ed5
test rdi, rdi
je 0x140087ecd
mov r8, qword [rdi]
lea edx, [rax + 1]
mov rcx, rdi
call qword [r8]
mov ebx, r14d
jmp 0x140088032
mov rcx, rdi
call fcn.14009aa84
cmp dword [rax + 0x78], r14d
jne 0x140088004
lea rax, vtable.WTL::CMessageLoop.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140109700]
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x24]
mov rcx, qword [0x140109878]
call fcn.14007ef60
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rdi
call fcn.14009aa84
mov ebx, 1
xor r8d, r8d
xor edx, edx
cmp dword [rax + 0x90], r14d
jne 0x140087f75
lea rcx, [rbp + 0x2f0]
call fcn.140080770
jmp 0x140087f7e
lea rcx, [rbp - 0x50]
call fcn.1400807ec
test rax, rax
jne 0x140087fbf
test rdi, rdi
je 0x140087f93
mov rax, qword [rdi]
mov edx, ebx
mov rcx, rdi
call qword [rax]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140087fa8
call qword [sym.imp.MSVCR120.dll_free]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140088032
call qword [sym.imp.MSVCR120.dll_free]
jmp 0x140088032
lea rcx, [rsp + 0x40]
call fcn.140088094
mov esi, eax
lea rcx, [0x140109820]
call fcn.140087c74
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140087fed
call qword [sym.imp.MSVCR120.dll_free]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14008801e
call qword [sym.imp.MSVCR120.dll_free]
jmp 0x14008801e
mov rcx, rdi
call fcn.14009bf4c
mov rcx, rdi
call fcn.14009e854
mov rcx, rdi
call fcn.14009ad08
mov esi, eax
test rdi, rdi
je 0x140088030
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov ebx, esi
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x140088050
lock add dword [rcx], 0xffffffff
jg 0x140088050
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
nop
lea rcx, [rbp - 0x50]
call fcn.14007e6d0
nop
lea rcx, [rbp + 0x2f0]
call fcn.14007e3cc
mov eax, ebx
mov rcx, qword [rbp + 0x660]
xor rcx, rsp
call fcn.1400bf530
lea r11, [rsp + 0x770]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret