Function at 0x100047014
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x300
mov rax, qword [0x1000de138]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov esi, r9d
mov r12, r8
mov rbp, rdx
mov r13, rcx
xor r15d, r15d
lea rax, [0x10000a5a0]
lea rbx, [0x1000df620]
mov qword [0x1000df630], r15
mov qword [0x1000df620], r15
mov byte [0x1000df638], 1
mov byte [0x1000df639], r15b
mov qword [0x1000df640], rax
mov qword [0x1000dedd8], rbx
mov word [0x1000df63a], r15w
mov dword [0x1000df63c], r15d
lea rdi, [0x1000df640]
mov r8, qword [rdi]
lea rax, [rbx + 8]
lea rcx, [0x100046c5c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], r15
mov r9d, 1
mov rdx, rbx
mov qword [rsp + 0x28], r15
add rdi, 8
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov rbx, qword [rbx]
cmp rbx, r15
jne 0x10004709a
mov rcx, qword [0x1000dedd8]
lea rax, [0x1000dedd8]
cmp rcx, rax
je 0x10004712b
test byte [rcx + 0x1c], 1
je 0x10004712b
cmp byte [rcx + 0x19], 7
jb 0x10004712b
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x30], esi
lea r8, [0x100008e20]
mov edx, 0x12
mov r9, r13
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbp
call fcn.100046b88
lea rcx, [rsp + 0x58]
mov r14d, 0x80004004
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x48], r15d
call fcn.1000a78c8
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
or r12, 0xffffffffffffffff
lea rcx, [rsp + 0x58]
mov rdx, rax
mov r8d, r12d
call fcn.1000a75a4
mov rbp, qword [rsp + 0x58]
cmp rbp, r15
je 0x100047179
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x10004717c
mov eax, r15d
mov dil, 5
cmp eax, r15d
je 0x100047263
lea rdx, [0x10000c618]
lea rcx, [rsp + 0x58]
call fcn.1000a76e0
cmp eax, r12d
je 0x100047263
lea rcx, [0x1000e2b50]
xor r9d, r9d
mov r8, r13
xor edx, edx
call fcn.100047c70
mov ebx, eax
mov rcx, qword [0x1000dedd8]
lea r13, [0x1000dedd8]
cmp rcx, r13
je 0x1000471ef
test byte [rcx + 0x1c], 1
je 0x1000471ef
cmp byte [rcx + 0x19], dil
jb 0x1000471ef
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x14
mov r9d, eax
call fcn.100020d8c
cmp ebx, r15d
jl 0x10004729d
call fcn.100046d4c
mov ebx, eax
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x10004722f
test byte [rcx + 0x1c], 1
je 0x10004722f
cmp byte [rcx + 0x19], dil
jb 0x10004722f
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x15
mov r9d, eax
call fcn.100020d8c
cmp ebx, r15d
jl 0x10004729d
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
mov r14d, eax
mov ebx, eax
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x10004729d
test byte [rcx + 0x1c], 1
je 0x10004729d
cmp byte [rcx + 0x19], dil
jb 0x10004729d
mov edx, 0x16
mov r9d, eax
jmp 0x10004728d
mov ebx, r14d
mov rcx, qword [0x1000dedd8]
lea r13, [0x1000dedd8]
cmp rcx, r13
je 0x10004729d
test byte [rcx + 0x1c], 1
je 0x10004729d
cmp byte [rcx + 0x19], 2
jb 0x10004729d
mov edx, 0x13
mov r9d, r14d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
call fcn.100020d8c
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
cmp ebx, r15d
jl 0x100047968
lea rcx, [rsp + 0xe2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xe0], r15w
call sub.msvcrt.dll_memset
mov rcx, qword [0x1000def10]
mov ebx, 0x104
lea rdx, [rsp + 0xe0]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x80070000
cmp eax, r15d
jbe 0x1000472fa
cmp eax, ebx
je 0x1000472fa
mov ebx, r15d
jmp 0x10004730b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
cmp eax, r15d
cmovle ebx, eax
xor edx, edx
lea rcx, [rsp + 0x74]
mov dword [rsp + 0x70], r15d
lea r8d, [rdx + 0x34]
call sub.msvcrt.dll_memset
cmp ebx, r15d
mov qword [rsp + 0x68], r15
jl 0x1000473a5
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x38
mov dword [rsp + 0x74], 8
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov r12, rax
cmp rax, r15
jne 0x10004737c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
cmp eax, r15d
cmovle ebx, eax
cmp ebx, r15d
jl 0x1000473a5
lea rdx, [rsp + 0x68]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
cmp eax, r15d
je 0x100047394
mov ebx, r15d
jmp 0x1000473a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
cmp eax, r15d
cmovle ebx, eax
lea r9, [0x1000e2c48]
lea r8, [0x1000e2c50]
lea rdx, [0x100046adc]
lea rcx, [0x10000a4e0]
call fcn.100046b18
cmp ebx, r15d
jl 0x100047419
mov dl, 1
mov ecx, 8
call fcn.100047b7c
mov esi, eax
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x100047410
test byte [rcx + 0x1c], 1
je 0x100047410
cmp byte [rcx + 0x19], dil
jb 0x100047410
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x17
mov r9d, eax
call fcn.100020d8c
mov rcx, qword [0x1000dedd8]
cmp esi, r15d
jl 0x100047793
mov ecx, 2
call fcn.100078d1c
mov esi, eax
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x10004745c
test byte [rcx + 0x1c], 1
je 0x10004745c
cmp byte [rcx + 0x19], dil
jb 0x10004745c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x18
mov r9d, eax
call fcn.100020d8c
mov rcx, qword [0x1000dedd8]
cmp esi, r15d
jl 0x100047793
lea rcx, [rsp + 0x40]
call fcn.10003e6f8
mov ebx, eax
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x1000474b2
test byte [rcx + 0x1c], 1
je 0x1000474b2
cmp byte [rcx + 0x19], dil
jb 0x1000474b2
mov rax, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x19
mov r9d, ebx
mov qword [rsp + 0x20], rax
call fcn.100021328
mov rcx, qword [0x1000dedd8]
cmp ebx, r15d
jl 0x100047793
mov rcx, qword [rsp + 0x40]
call fcn.10003e848
mov ebx, eax
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x1000474fe
test byte [rcx + 0x1c], 1
je 0x1000474fe
cmp byte [rcx + 0x19], dil
jb 0x1000474fe
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x1a
mov r9d, eax
call fcn.100020d8c
mov rcx, qword [0x1000dedd8]
cmp ebx, r15d
jl 0x100047793
call fcn.100025b7c
mov ebx, eax
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x100047545
test byte [rcx + 0x1c], 1
je 0x100047545
cmp byte [rcx + 0x19], dil
jb 0x100047545
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x1b
mov r9d, eax
call fcn.100020d8c
mov rcx, qword [0x1000dedd8]
cmp ebx, r15d
jl 0x100047793
lea rcx, [rsp + 0x50]
call fcn.100025c68
mov ebx, eax
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x10004759b
test byte [rcx + 0x1c], 1
je 0x10004759b
cmp byte [rcx + 0x19], dil
jb 0x10004759b
mov rax, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x1c
mov r9d, ebx
mov qword [rsp + 0x20], rax
call fcn.100021328
mov rcx, qword [0x1000dedd8]
cmp ebx, r15d
jl 0x100047793
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x48]
mov rdx, rbp
call fcn.1000297f8
mov ebx, eax
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x1000475fc
test byte [rcx + 0x1c], 1
je 0x1000475fc
cmp byte [rcx + 0x19], dil
jb 0x1000475fc
mov eax, dword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x1d
mov r9d, ebx
mov dword [rsp + 0x20], eax
call fcn.100020f2c
mov rcx, qword [0x1000dedd8]
cmp ebx, r15d
jl 0x100047793
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.10003eb90
mov ebx, eax
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x100047652
test byte [rcx + 0x1c], 1
je 0x100047652
cmp byte [rcx + 0x19], dil
jb 0x100047652
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x1e
mov r9d, eax
call fcn.100020d8c
mov rcx, qword [0x1000dedd8]
cmp ebx, r15d
jl 0x100047793
mov rcx, qword [0x1000def10]
mov edx, 0x1f4
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov rdi, rax
cmp rax, r15
je 0x10004767a
mov ebx, r15d
jmp 0x10004768f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r15d
cmovle ebx, eax
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x1000476c6
test byte [rcx + 0x1c], 1
je 0x1000476c6
cmp byte [rcx + 0x19], 5
jb 0x1000476c6
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x1f
mov r9d, ebx
call fcn.100020d8c
mov rcx, qword [0x1000dedd8]
cmp ebx, r15d
jl 0x100047793
mov rcx, rbp
call fcn.100046e64
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x10004770e
test byte [rcx + 0x1c], 1
je 0x10004770e
cmp byte [rcx + 0x19], 5
jb 0x10004770e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x20
mov r9, rbp
call fcn.100020614
mov rcx, qword [0x1000dedd8]
mov rbx, qword [rsp + 0x40]
cmp rbx, r15
je 0x100047835
cmp qword [rbx + 8], r15
je 0x100047798
lea rcx, [rsp + 0xa8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.wmpdui.dll_GetMessageExW]
cmp eax, r15d
je 0x10004778c
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0xa8]
mov rdx, rdi
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
cmp eax, r15d
jne 0x100047778
lea rcx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov rbx, qword [rsp + 0x40]
cmp qword [rbx + 8], r15
jne 0x100047722
mov rcx, qword [0x1000dedd8]
jmp 0x100047798
mov rcx, qword [0x1000dedd8]
mov rbx, qword [rsp + 0x40]
cmp rbx, r15
je 0x100047835
cmp rcx, r13
je 0x1000477c7
test byte [rcx + 0x1c], 1
je 0x1000477c7
cmp byte [rcx + 0x19], 5
jb 0x1000477c7
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e80]
mov edx, 0x27e
call fcn.100020584
lea rdi, [rbx + 0xf4]
mov rcx, rbx
mov rdx, rdi
call fcn.1000417b4
cmp eax, r15d
jne 0x1000477e7
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetRectEmpty]
mov rdx, rdi
mov rcx, rbx
call fcn.100041598
mov rcx, qword [rbx + 8]
call qword [sym.imp.ole32.dll_RevokeDragDrop]
mov rcx, qword [0x1000dedd8]
mov dil, 5
cmp rcx, r13
je 0x100047838
test byte [rcx + 0x1c], 1
je 0x100047838
cmp byte [rcx + 0x19], dil
jb 0x100047838
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x21
call fcn.100020584
mov rcx, qword [0x1000dedd8]
jmp 0x100047838
mov dil, 5
cmp qword [rsp + 0x50], r15
je 0x100047892
cmp rcx, r13
je 0x100047892
test byte [rcx + 0x1c], 1
je 0x10004786c
cmp byte [rcx + 0x19], dil
jb 0x10004786c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e80]
mov edx, 0xc1
call fcn.100020584
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x100047892
test byte [rcx + 0x1c], 1
je 0x100047892
cmp byte [rcx + 0x19], dil
jb 0x100047892
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x22
call fcn.100020584
lea rcx, [0x1000e2b50]
call fcn.100047a10
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x1000478cb
test byte [rcx + 0x1c], 1
je 0x1000478cb
cmp byte [rcx + 0x19], dil
jb 0x1000478cb
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x23
call fcn.100020584
cmp esi, r15d
jl 0x100047941
call fcn.100078f1c
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x100047905
test byte [rcx + 0x1c], 1
je 0x100047905
cmp byte [rcx + 0x19], dil
jb 0x100047905
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x24
mov r9d, eax
call fcn.100020d8c
lea rcx, [0x100000000]
call fcn.100078b84
mov rcx, qword [0x1000dedd8]
cmp rcx, r13
je 0x100047941
test byte [rcx + 0x1c], 1
je 0x100047941
cmp byte [rcx + 0x19], dil
jb 0x100047941
mov rcx, qword [rcx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x25
mov r9d, eax
call fcn.100020d8c
lea rcx, [0x1000e2c48]
call fcn.100046b58
cmp r12, r15
je 0x100047968
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
cmp r14d, r15d
jl 0x1000479a0
call qword [sym.imp.ole32.dll_OleUninitialize]
mov rbx, qword [0x1000dedd8]
cmp rbx, r13
je 0x1000479d0
test byte [rbx + 0x1c], 1
je 0x1000479a7
cmp byte [rbx + 0x19], dil
jb 0x1000479a7
mov rcx, qword [rbx + 0x10]
lea r8, [0x100008e20]
mov edx, 0x26
call fcn.100020584
mov rbx, qword [0x1000dedd8]
cmp rbx, r13
je 0x1000479d0
jmp 0x1000479c4
mov rcx, qword [rbx + 8]
cmp rcx, r15
je 0x1000479c1
call qword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov qword [rbx + 8], r15
mov rbx, qword [rbx]
cmp rbx, r15
jne 0x1000479ae
mov qword [0x1000dedd8], r13
lea rcx, [rsp + 0x58]
call fcn.1000a764c
xor eax, eax
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1000cd7d0
mov rbx, qword [rsp + 0x358]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret