Function at 0x140009cd0
Capabilities:
Check if file exists
Create process on windows
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov qword [rbp + 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
call fcn.140091150
test al, al
je 0x14000a49b
call fcn.140009070
test al, al
jne 0x14000a8f0
xor esi, esi
mov qword [rbp - 8], rsi
mov dword [rbp], esi
mov qword [rbp + 8], rsi
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x68], rax
mov r9d, 0x20019
lea r8, str.SOFTWARESony_CorporationVAIO_CareSelfSoftwareUpdate
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 8]
call fcn.140008440
or r12d, 0xffffffff
test eax, eax
jne 0x140009f36
mov dword [rbp + 0x1a8], esi
lea rax, [rbp + 0x1a8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x2c]
xor r8d, r8d
lea rdx, str.VC_VSSU_Path
mov rdi, qword [rbp - 8]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140009f21
mov eax, dword [rbp - 0x2c]
cmp eax, 1
je 0x140009dae
cmp eax, 2
jne 0x140009f21
mov r13d, dword [rbp + 0x1a8]
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x28], rbx
shr r13d, 1
jns 0x140009dde
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r13d
or eax, ecx
jge 0x140009e00
mov edx, r13d
lea rcx, [rbp - 0x28]
call fcn.140001c20
mov rbx, qword [rbp - 0x28]
lea eax, [r13 + r13]
mov dword [rbp + 0x1b0], eax
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, str.VC_VSSU_Path
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140009f02
mov eax, dword [rbp - 0x20]
cmp eax, 1
je 0x140009e4c
cmp eax, 2
jne 0x140009f02
test rbx, rbx
je 0x140009e76
mov eax, dword [rbp + 0x1b0]
test eax, eax
je 0x140009e73
test al, 1
jne 0x140009f02
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x140009e76
jmp 0x140009f02
mov word [rbx], si
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x140009ef7
cmp eax, dword [rbx - 0xc]
jg 0x140009ef7
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], si
lea rcx, [rbx - 0x18]
mov rdi, qword [rbp - 0x68]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140009f02
cmp dword [rdi + 0x10], 0
jl 0x140009ee5
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140009ee5
call fcn.140001b90
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140009ed7
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [r8 + 8]
lea rax, [rbx + 0x18]
mov qword [rbp - 0x68], rax
mov rbx, qword [rbp - 0x28]
jmp 0x140009f02
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140001e80
jmp 0x140009f02
mov ecx, 0x80070057
call fcn.140001000
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140009f1d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbp - 8]
test rdi, rdi
je 0x140009f33
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 8], rsi
mov dword [rbp], esi
mov qword [rbp + 0x10], rsi
mov dword [rbp + 0x18], esi
mov qword [rbp + 0x20], rsi
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x70], rax
mov r9d, 0x20019
lea r8, str.SOFTWARESony_CorporationVAIO_CareSelfSoftwareUpdate
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x10]
call fcn.140008440
test eax, eax
jne 0x14000a149
mov dword [rbp + 0x1b8], esi
lea rax, [rbp + 0x1b8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x1c]
xor r8d, r8d
lea rdx, str.VSSU_Param
mov rdi, qword [rbp + 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a134
mov eax, dword [rbp - 0x1c]
cmp eax, 1
je 0x140009fca
cmp eax, 2
jne 0x14000a134
mov r13d, dword [rbp + 0x1b8]
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x10], rbx
shr r13d, 1
jns 0x140009ffa
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r13d
or eax, ecx
jge 0x14000a01c
mov edx, r13d
lea rcx, [rbp - 0x10]
call fcn.140001c20
mov rbx, qword [rbp - 0x10]
lea eax, [r13 + r13]
mov dword [rbp - 0x78], eax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x30]
xor r8d, r8d
lea rdx, str.VSSU_Param
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a115
mov eax, dword [rbp - 0x30]
cmp eax, 1
je 0x14000a062
cmp eax, 2
jne 0x14000a115
test rbx, rbx
je 0x14000a089
mov eax, dword [rbp - 0x78]
test eax, eax
je 0x14000a086
test al, 1
jne 0x14000a115
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x14000a089
jmp 0x14000a115
mov word [rbx], si
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x14000a10a
cmp eax, dword [rbx - 0xc]
jg 0x14000a10a
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], si
lea rcx, [rbx - 0x18]
mov rdi, qword [rbp - 0x70]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14000a115
cmp dword [rdi + 0x10], 0
jl 0x14000a0f8
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14000a0f8
call fcn.140001b90
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14000a0ea
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [r8 + 8]
lea rax, [rbx + 0x18]
mov qword [rbp - 0x70], rax
mov rbx, qword [rbp - 0x10]
jmp 0x14000a115
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140001e80
jmp 0x14000a115
mov ecx, 0x80070057
call fcn.140001000
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000a130
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbp + 0x10]
test rdi, rdi
je 0x14000a146
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x10], rsi
mov dword [rbp + 0x18], esi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x70]
call sub.WTSAPI32.dll_WTSQueryUserToken
lea r11, [rsp + 0x68]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rdx, qword [rsp + 0x68]
test rdx, rdx
cmove rdx, qword [rsp + 0x70]
mov qword [rsp + 0x68], rdx
mov qword [rbp - 0x48], rsi
xor r8d, r8d
lea rcx, [rbp - 0x48]
call sub.USERENV.dll_CreateEnvironmentBlock
mov qword [rbp + 0x50], rsi
xor eax, eax
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], rax
xor edx, edx
lea r8d, [rax + 0x60]
lea rcx, [rbp + 0x98]
call sub.MSVCR100.dll_memset
mov dword [rbp + 0x90], 0x68
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x80], rdi
mov r13, qword [rbp - 0x68]
lea rcx, [r13 - 0x18]
call fcn.140001b90
lea rbx, [rax + 0x18]
mov qword [rbp + 0x28], rbx
mov edx, 0x5c
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsrchr]
test rax, rax
je 0x14000a2be
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14000a2be
mov r8d, eax
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x28]
call fcn.140001d30
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14000a29b
cmp dword [rdi + 0x10], 0
jl 0x14000a28d
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14000a28d
call fcn.140001b90
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14000a283
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [r8 + 8]
lea rax, [rbx + 0x18]
mov qword [rbp - 0x80], rax
jmp 0x14000a29b
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x80]
call fcn.140001e80
nop
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000a2ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbp - 0x80]
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x50], rax
mov r9, qword [rbp - 0x70]
mov r8, qword [rbp - 0x68]
lea rdx, str.__s____s_
lea rcx, [rbp - 0x50]
call fcn.140004440
mov rbx, qword [rbp - 0x50]
cmp dword [rbx - 8], 1
jle 0x14000a309
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 0x50]
call fcn.140001930
mov rbx, qword [rbp - 0x50]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x4000410
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, rbx
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x14000a490
cmp eax, dword [rbx - 0xc]
jg 0x14000a490
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], si
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000a389
call sub.USERENV.dll_DestroyEnvironmentBlock
mov qword [rbp - 0x48], rsi
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000a3ba
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14000a3af
cmp rcx, rax
jne 0x14000a3af
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], rsi
jmp 0x14000a3ca
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], rsi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000a3cf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], rsi
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000a3eb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000a40b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000a42b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000a44b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14000a45b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lock xadd dword [r13 - 8], r12d
dec r12d
test r12d, r12d
jg 0x14000a478
mov rcx, qword [r13 - 0x18]
mov rax, qword [rcx]
lea rdx, [r13 - 0x18]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14000a8f0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000a8f0
mov ecx, 0x80070057
call fcn.140001000
nop
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x40], rax
lea rdx, str._VSSUUpdate
test rdx, 0xffffffffffff0000
jne 0x14000a4e6
movzx ebx, dx
xor edx, edx
mov ecx, ebx
call fcn.1400017e0
test rax, rax
je 0x14000a4f6
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140001f70
jmp 0x14000a4f6
mov r8d, 0xb
lea rcx, [rbp - 0x40]
call fcn.140001e80
nop
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x60], rbx
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x58], rdi
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x105
or eax, ecx
jge 0x14000a551
mov edx, 0x105
lea rcx, [rsp + 0x60]
call fcn.140001c20
mov rbx, qword [rsp + 0x60]
mov r8d, 0x105
mov rdx, rbx
lea rcx, str._SystemDrive__
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r13d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x14000a8f4
cmp eax, dword [rbx - 0xc]
jg 0x14000a8f4
mov dword [rbx - 0x10], eax
cdqe
xor esi, esi
mov word [rbx + rax*2], si
or r12d, 0xffffffff
test r13d, r13d
je 0x14000a62e
lea r8d, [rsi + 0x1e]
lea rdx, str.Program_FilesSONYVAIO_Update
lea rcx, [rsp + 0x60]
call fcn.140003c10
mov rdx, qword [rsp + 0x60]
lea rcx, [rdx - 0x18]
lea rbx, [rdi - 0x18]
cmp rcx, rbx
je 0x14000a612
cmp dword [rbx + 0x10], esi
jl 0x14000a601
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14000a601
call fcn.140001b90
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14000a5f7
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
add rdi, 0x18
mov qword [rbp - 0x58], rdi
jmp 0x14000a612
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x58]
call fcn.140001e80
mov rdi, qword [rbp - 0x58]
mov r8d, Ordinal_17
lea rdx, [0x1400df840]
lea rcx, [rsp + 0x60]
call fcn.140003c10
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000a894
lea r8, reloc.ATL100.DLL_Ordinal_32
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x48]
call fcn.140002ce0
nop
lea r8, [rbp - 0x40]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140008ad0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14000a6c1
cmp dword [rbx + 0x10], 0
jl 0x14000a6b2
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14000a6b2
call fcn.140001b90
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14000a6a7
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x60], rax
jmp 0x14000a6c1
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x60]
call fcn.140001e80
nop
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000a6e1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000a700
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rbp - 0x60], rsi
mov qword [rsp + 0x78], rsi
mov qword [rbp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rbp - 0x60]
call sub.WTSAPI32.dll_WTSQueryUserToken
mov dword [rbp - 0x18], esi
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rbp + 0x30]
lea edx, [r9 + 0xb]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14000a778
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rdx, qword [rsp + 0x78]
jmp 0x14000a781
mov rdx, qword [rbp - 0x60]
mov qword [rsp + 0x78], rdx
mov qword [rbp - 0x38], rsi
xor r8d, r8d
lea rcx, [rbp - 0x38]
call sub.USERENV.dll_CreateEnvironmentBlock
mov qword [rbp + 0x68], rsi
xor eax, eax
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rax
xor edx, edx
lea r8d, [rax + 0x60]
lea rcx, [rbp + 0x108]
call sub.MSVCR100.dll_memset
mov dword [rbp + 0x100], 0x68
mov rbx, qword [rsp + 0x60]
cmp dword [rbx - 8], 1
jle 0x14000a7d8
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x60]
call fcn.140001930
mov rbx, qword [rsp + 0x60]
lea rax, [rbp + 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x48], rax
mov rdi, qword [rbp - 0x58]
mov qword [rsp + 0x40], rdi
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x4000410
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, rbx
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x14000a882
cmp eax, dword [rbx - 0xc]
jg 0x14000a882
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], si
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14000a854
call sub.USERENV.dll_DestroyEnvironmentBlock
mov qword [rbp - 0x38], rsi
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14000a876
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14000a86c
cmp rcx, rax
je 0x14000a88d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x60], rsi
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000a894
jmp 0x14000a88d
mov ecx, 0x80070057
call fcn.140001000
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rdi - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000a8b0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000a8d1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rbp - 0x40]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x14000a8f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
jmp 0x14000a8ff
mov ecx, 0x80070057
call fcn.140001000
nop
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret