Function at 0x1400740f0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Get program files directory

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x101c0
call fcn.140181870
sub rsp, rax
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov qword [rsp + 0x10210], rbx
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0x101b0], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0xb8], rcx
mov qword [rsp + 0xa0], rdx
call fcn.14013d07c
mov rcx, rax
xor r12d, r12d
mov edx, r12d
test rax, rax
setne dl
test edx, edx
jne 0x14007416c
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x50], rsi
lea rdx, [0x14019cf88]
or rbp, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x1400741b5
movzx edi, dx
mov ecx, edi
call fcn.14013d654
test rax, rax
je 0x1400741d6
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400020e0
mov rsi, qword [rsp + 0x50]
jmp 0x1400741d6
xor eax, eax
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x50]
call fcn.140002390
mov rsi, qword [rsp + 0x50]
mov dword [rsp + 0x58], r12d
mov edx, 0x7fff
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1400747a8
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x1b0]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x1ac], 0x5c
jne 0x14007421c
mov word [rsp + rcx*2 + 0x1ac], ax
mov rcx, rbp
lea rdi, [rsp + 0x1b0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140074297
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140074321
cmp dword [rdx + 0x10], eax
jge 0x140074269
cmp dword [rsi - 0xc], eax
jge 0x14007425d
mov ecx, 0x80070057
call fcn.140001c00
int3
mov dword [rsi - 0x10], r12d
mov word [rsi], ax
jmp 0x140074321
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140074280
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x50], rsi
jmp 0x140074321
mov ebx, dword [rsi - 0x10]
lea r13, [rsp + 0x1b0]
sub r13, rsi
sar r13, 1
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400742ca
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
cmp r13, rbx
ja 0x1400742ea
movsxd rax, edi
lea rbx, [rax + rax]
lea r8, [rsi + r13*2]
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.14015cf60
jmp 0x140074307
movsxd rax, edi
lea rbx, [rax + rax]
mov r9, rbx
lea r8, [rsp + 0x1b0]
mov rdx, rbx
mov rcx, rsi
call fcn.14015cd30
test edi, edi
js 0x14007479d
cmp edi, dword [rsi - 0xc]
jg 0x14007479d
mov dword [rsi - 0x10], edi
mov word [rbx + rsi], 0
xor eax, eax
mov rcx, rbp
lea r13, [0x14019eaf8]
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov rbx, r13
sub rbx, rsi
sar rbx, 1
mov r14d, dword [rsi - 0x10]
lea edi, [r14 + rcx - 1]
mov edx, 1
sub edx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, edx
jge 0x14007436e
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
cmp rbx, r14
ja 0x140074377
lea r13, [rsi + rbx*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rsi + r14*2]
mov r9, rdx
mov r8, r13
call fcn.14015cd30
test edi, edi
js 0x140074792
cmp edi, dword [rsi - 0xc]
jg 0x140074792
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov word [rsi + rax*2], 0
mov r13, qword [rsp + 0x60]
mov r13, qword [r13]
movsxd r15, dword [r13 - 0x10]
mov rbx, r13
sub rbx, rsi
sar rbx, 1
mov r14d, dword [rsi - 0x10]
lea edi, [r14 + r15]
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400743e9
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
cmp rbx, r14
ja 0x1400743f2
lea r13, [rsi + rbx*2]
mov rdx, r15
add rdx, rdx
lea rcx, [rsi + r14*2]
mov r9, rdx
mov r8, r13
call fcn.14015cd30
test edi, edi
js 0x140074787
cmp edi, dword [rsi - 0xc]
jg 0x140074787
lea r15, [rsi - 0x10]
mov dword [r15], edi
movsxd rax, edi
mov word [rsi + rax*2], 0
lea r13, [rsi - 0x18]
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [r13 + 0x10], 0
jl 0x140074451
cmp rax, qword [r13]
jne 0x140074451
mov rbx, r13
lock add dword [r13 + 0x10], 1
jmp 0x140074493
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [r13 + 8]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x14007446e
call fcn.1400c5210
int3
mov eax, dword [r13 + 8]
mov dword [rbx + 8], eax
mov eax, dword [r13 + 8]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
lea r8, [r13 + 0x18]
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.14015cd30
add rbx, 0x18
mov qword [rsp + 0xb0], rbx
xor eax, eax
lea rdi, [0x14019cf88]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x1400744ba
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
jne 0x1400744e8
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14007451b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x50]
jmp 0x1400747a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140074525
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14007451b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x50]
jmp 0x1400747a8
mov rsi, qword [rsp + 0x50]
jmp 0x1400747a8
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140074540
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, rbp
lea rdx, [0x1401a1ccc]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x58], rcx
mov r14, rdx
mov rbx, rdx
mov rsi, qword [rsp + 0x50]
sub rbx, rsi
sar rbx, 1
mov r15d, dword [r15]
lea edi, [r15 + rcx]
mov edx, 1
sub edx, dword [r13 + 0x10]
mov eax, dword [r13 + 0xc]
sub eax, edi
or eax, edx
jge 0x14007459f
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
cmp rbx, r15
ja 0x1400745a8
lea r14, [rsi + rbx*2]
movsxd rdx, ecx
add rdx, rdx
lea rcx, [rsi + r15*2]
mov r9, rdx
mov r8, r14
call fcn.14015cd30
test edi, edi
js 0x14007477c
cmp edi, dword [rsi - 0xc]
jg 0x14007477c
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov word [rsi + rax*2], 0
mov r13, qword [rsp + 0x68]
mov r13, qword [r13]
movsxd r15, dword [r13 - 0x10]
mov rbx, r13
sub rbx, rsi
sar rbx, 1
mov r14d, dword [rsi - 0x10]
lea edi, [r14 + r15]
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x14007461a
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
cmp rbx, r14
ja 0x140074623
lea r13, [rsi + rbx*2]
mov rdx, r15
add rdx, rdx
lea rcx, [rsi + r14*2]
mov r9, rdx
mov r8, r13
call fcn.14015cd30
test edi, edi
js 0x140074771
cmp edi, dword [rsi - 0xc]
jg 0x140074771
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov word [rsi + rax*2], 0
cmp dword [rsi - 8], 1
jle 0x14007466d
mov edx, dword [rsi - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140001e50
mov rsi, qword [rsp + 0x50]
test rsi, rsi
jne 0x140074682
mov r8d, r12d
mov dword [rsp + 0x58], r12d
mov ecx, r12d
jmp 0x14007474a
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0xd0]
call fcn.140160e90
mov dword [rsp + 0xd0], 0x68
xor eax, eax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14007470d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, r12d
mov dword [rsp + 0x58], r12d
jmp 0x140074734
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 1
mov dword [rsp + 0x58], r8d
xor eax, eax
mov rcx, rbp
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x140074766
cmp ecx, dword [rsi - 0xc]
jg 0x140074766
mov dword [rsi - 0x10], ecx
movsxd rax, ecx
mov word [rsi + rax*2], 0
test r8d, r8d
jne 0x140074d6d
jmp 0x1400747a8
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x1b0]
call fcn.140160e90
lea rdx, [rsp + 0x1b0]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140074d6d
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x1b0]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x1ac], 0x5c
jne 0x14007480a
mov word [rsp + rcx*2 + 0x1ac], ax
mov rcx, rbp
lea rdi, [rsp + 0x1b0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140074885
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14007490f
cmp dword [rdx + 0x10], eax
jge 0x140074857
cmp dword [rsi - 0xc], eax
jge 0x14007484b
mov ecx, 0x80070057
call fcn.140001c00
int3
mov dword [rsi - 0x10], r12d
mov word [rsi], ax
jmp 0x14007490f
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14007486e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x50], rsi
jmp 0x14007490f
mov ebx, dword [rsi - 0x10]
lea r13, [rsp + 0x1b0]
sub r13, rsi
sar r13, 1
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400748b8
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
cmp r13, rbx
ja 0x1400748d8
movsxd rax, edi
lea rbx, [rax + rax]
lea r8, [rsi + r13*2]
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.14015cf60
jmp 0x1400748f5
movsxd rax, edi
lea rbx, [rax + rax]
mov r9, rbx
lea r8, [rsp + 0x1b0]
mov rdx, rbx
mov rcx, rsi
call fcn.14015cd30
test edi, edi
js 0x140074d62
cmp edi, dword [rsi - 0xc]
jg 0x140074d62
mov dword [rsi - 0x10], edi
mov word [rbx + rsi], 0
xor eax, eax
mov rcx, rbp
lea r13, str.RealtekAudioAP_
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov rbx, r13
sub rbx, rsi
sar rbx, 1
mov r14d, dword [rsi - 0x10]
lea edi, [r14 + rcx - 1]
mov edx, 1
sub edx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, edx
jge 0x14007495c
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
cmp rbx, r14
ja 0x140074965
lea r13, [rsi + rbx*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rsi + r14*2]
mov r9, rdx
mov r8, r13
call fcn.14015cd30
test edi, edi
js 0x140074d57
cmp edi, dword [rsi - 0xc]
jg 0x140074d57
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov word [rsi + rax*2], 0
mov rax, qword [rsp + 0x60]
mov r13, qword [rax]
movsxd r15, dword [r13 - 0x10]
mov rbx, r13
sub rbx, rsi
sar rbx, 1
mov r14d, dword [rsi - 0x10]
lea edi, [r14 + r15]
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400749d6
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
cmp rbx, r14
ja 0x1400749df
lea r13, [rsi + rbx*2]
mov rdx, r15
add rdx, rdx
lea rcx, [rsi + r14*2]
mov r9, rdx
mov r8, r13
call fcn.14015cd30
test edi, edi
js 0x140074d4c
cmp edi, dword [rsi - 0xc]
jg 0x140074d4c
lea r14, [rsi - 0x10]
mov dword [r14], edi
movsxd rax, edi
mov word [rsi + rax*2], 0
lea r13, [rsi - 0x18]
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [r13 + 0x10], 0
jl 0x140074a3e
cmp rax, qword [r13]
jne 0x140074a3e
mov rbx, r13
lock add dword [r13 + 0x10], 1
jmp 0x140074a80
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [r13 + 8]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x140074a5b
call fcn.1400c5210
int3
mov eax, dword [r13 + 8]
mov dword [rbx + 8], eax
mov eax, dword [r13 + 8]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
lea r8, [r13 + 0x18]
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.14015cd30
add rbx, 0x18
mov qword [rsp + 0xc0], rbx
xor eax, eax
lea rdi, [0x14019cf88]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x140074aa7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
jne 0x140074ad5
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140074b08
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x50]
jmp 0x140074d6d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140074b12
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140074b08
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x50]
jmp 0x140074d6d
mov rsi, qword [rsp + 0x50]
jmp 0x140074d6d
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140074b2d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, rbp
lea r8, [0x1401a1ccc]
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov rbx, r8
mov rsi, qword [rsp + 0x50]
sub rbx, rsi
sar rbx, 1
mov r14d, dword [r14]
lea edi, [r14 + rcx - 1]
mov edx, 1
sub edx, dword [r13 + 0x10]
mov eax, dword [r13 + 0xc]
sub eax, edi
or eax, edx
jge 0x140074b87
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
lea r8, [0x1401a1ccc]
cmp rbx, r14
ja 0x140074b90
lea r8, [rsi + rbx*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rsi + r14*2]
mov r9, rdx
call fcn.14015cd30
test edi, edi
js 0x140074d41
cmp edi, dword [rsi - 0xc]
jg 0x140074d41
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov word [rsi + rax*2], 0
mov rax, qword [rsp + 0x68]
mov r13, qword [rax]
movsxd r15, dword [r13 - 0x10]
mov rbx, r13
sub rbx, rsi
sar rbx, 1
mov r14d, dword [rsi - 0x10]
lea edi, [r14 + r15]
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x140074bfe
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001df0
mov rsi, qword [rsp + 0x50]
cmp rbx, r14
ja 0x140074c07
lea r13, [rsi + rbx*2]
mov rdx, r15
add rdx, rdx
lea rcx, [rsi + r14*2]
mov r9, rdx
mov r8, r13
call fcn.14015cd30
test edi, edi
js 0x140074d36
cmp edi, dword [rsi - 0xc]
jg 0x140074d36
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov word [rsi + rax*2], 0
cmp dword [rsi - 8], 1
jle 0x140074c51
mov edx, dword [rsi - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140001e50
mov rsi, qword [rsp + 0x50]
test rsi, rsi
jne 0x140074c60
mov dword [rsp + 0x58], r12d
jmp 0x140074d16
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x140]
call fcn.140160e90
mov dword [rsp + 0x140], 0x68
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x140]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140074cdf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], r12d
jmp 0x140074cfd
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x58], 1
xor eax, eax
mov rcx, rbp
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r12d, ecx
test ecx, ecx
js 0x140074d2b
cmp r12d, dword [rsi - 0xc]
jg 0x140074d2b
mov dword [rsi - 0x10], r12d
movsxd rax, r12d
mov word [rsi + rax*2], 0
jmp 0x140074d6d
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
nop
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140074d89
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140074dad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140074dce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x101b0]
xor rcx, rsp
call fcn.14015d000
mov rbx, qword [rsp + 0x10210]
add rsp, 0x101c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret