Function at 0x1000507d0
Capabilities:
Accept command line arguments

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1b0
mov qword [rsp + 0x110], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x100176150]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x198], rdx
lea r13, [0x100176d80]
mov qword [rsp + 0x40], r13
lea rdi, [0x1000068e0]
mov qword [rsp + 0x50], rdi
lea r12, [0x100007800]
mov qword [rsp + 0x58], r12
lea rsi, [0x1000068c8]
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], 0x3fc
mov r14d, 1
mov dword [rsp + 0x6c], r14d
mov dword [rsp + 0x70], 0xff
xor ebx, ebx
mov word [rsp + 0xf0], bx
mov byte [rsp + 0xf2], bl
mov byte [r11 - 0xe5], r14b
xor edx, edx
lea r8d, [r14 + 0x77]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x120]
call fcn.1000e842c
nop
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov qword [0x100177a08], rbx
mov qword [0x1001779f8], rbx
mov byte [0x100177a10], r14b
mov byte [0x100177a11], bl
mov word [0x100177a12], bx
mov dword [0x100177a14], ebx
lea rax, [0x100006898]
mov qword [0x100177a18], rax
lea r14, [0x1001779f8]
mov qword [0x100177368], r14
lea r15, [0x100177a18]
mov r8, qword [r15]
add r15, 8
mov qword [rsp + 0xf8], r8
mov qword [rsp + 0x100], rbx
lea rax, [r14 + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov rdx, r14
lea rcx, [0x10004d508]
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov r14, qword [r14]
cmp r14, rbx
jne 0x1000508f6
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r14, rax
lea r10, [rsp + 0x50]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], 0x406
mov edx, 1
mov dword [rsp + 0x6c], edx
mov dword [rsp + 0x70], 0xff
mov word [rsp + 0xf0], bx
mov byte [rsp + 0xf2], bl
mov byte [rsp + 0xf3], dl
movzx ecx, bx
cmp cx, 0xf
jae 0x1000509ad
movzx eax, cx
mov qword [r10 + rax*8 + 0x28], rbx
add cx, dx
jmp 0x10005099a
mov r9, r14
lea r8, [0x100007838]
mov rdx, r10
lea rcx, [rsp + 0x120]
call fcn.1000e9608
lea r15, [r13 + 8]
lea rax, [0x100176160]
mov qword [r15 + 0xc8], rax
mov qword [0x100178048], r15
mov dword [r15], 0xf8
mov dword [r15 + 0xb0], 0x301
mov r8, qword [rsp + 0x198]
lea rdx, [0x100176ca0]
mov rcx, r15
call qword [sym.imp.ATL.DLL_AtlModuleInit]
cmp eax, ebx
jl 0x100050a1a
mov eax, 1
mov dword [r15 + 0xf0], eax
mov rax, qword [rsp + 0x198]
mov qword [r13 + 0x158], rax
lea rcx, [rsp + 0x198]
mov eax, dword [0x100007874]
mov dword [rcx], eax
movzx eax, word [0x100007878]
mov word [rcx + 4], ax
cmp word [r14], bx
je 0x100050a70
lea rax, [rsp + 0x198]
movzx ecx, word [rax]
cmp cx, bx
je 0x100050a6a
add rax, 2
cmp word [r14], cx
jne 0x100050a52
add r14, 2
jmp 0x100050a73
add r14, 2
jmp 0x100050a44
mov r14, rbx
mov r15d, 1
cmp r14, rbx
je 0x100050bcb
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], 0x413
mov dword [rsp + 0x6c], r15d
mov dword [rsp + 0x70], 0xff
mov word [rsp + 0xf0], bx
mov byte [rsp + 0xf2], bl
mov byte [rsp + 0xf3], r15b
movzx ecx, bx
cmp cx, 0xf
jae 0x100050ad9
movzx eax, cx
mov qword [rdx + rax*8 + 0x28], rbx
add cx, r15w
jmp 0x100050ac5
mov r9, r14
lea r8, [0x100007880]
lea rcx, [rsp + 0x120]
call fcn.1000e9608
or ecx, 0xffffffff
mov dword [rsp + 0x28], ecx
lea rax, [0x1000078b0]
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov r8, r14
mov edx, r15d
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x100050b94
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], 0x418
mov dword [rsp + 0x6c], r15d
mov dword [rsp + 0x70], 0xff
mov word [rsp + 0xf0], bx
mov byte [rsp + 0xf2], bl
mov byte [rsp + 0xf3], r15b
movzx ecx, bx
cmp cx, 0xf
jae 0x100050b73
movzx eax, cx
mov qword [rdx + rax*8 + 0x28], rbx
add cx, r15w
jmp 0x100050b5f
lea r8, [0x1000078d0]
lea rcx, [rsp + 0x120]
call fcn.1000e9608
mov dword [r13 + 0x11c], AtlModuleAddTermFunc
jmp 0x100050bd8
cmp word [r14], bx
je 0x100050bc3
lea rax, [rsp + 0x198]
movzx ecx, word [rax]
cmp cx, bx
je 0x100050bbd
add rax, 2
cmp word [r14], cx
jne 0x100050ba2
add r14, 2
jmp 0x100050a79
add r14, 2
jmp 0x100050b94
mov r14, rbx
jmp 0x100050a79
cmp bl, bl
jne 0x100050bd8
mov rcx, r13
call fcn.10004d948
nop
jmp 0x100050bfc
lea rsi, [0x100177368]
mov rdi, qword [0x100177368]
cmp rdi, rsi
je 0x100050c36
cmp rdi, rbx
je 0x100050c2f
mov rcx, qword [rdi + 8]
cmp rcx, rbx
je 0x100050c27
call qword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov qword [rdi + 8], rbx
mov rdi, qword [rdi]
cmp rdi, rbx
jne 0x100050c14
mov qword [0x100177368], rsi
mov ebx, dword [r13 + 0x11c]
lea rcx, [rsp + 0x120]
call fcn.1000e8518
mov eax, ebx
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.100130df0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret