Function at 0x140087890
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x700]
sub rsp, 0x800
mov qword [rbp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x848], rbx
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rbp + 0x6f0], rax
mov qword [rsp + 0x78], r9
mov r12, r8
mov ebx, edx
mov dword [rbp - 0x80], edx
mov rsi, rcx
mov rax, qword [rbp + 0x760]
mov qword [rsp + 0x60], rax
mov r13, qword [rbp + 0x770]
mov r15, qword [rbp + 0x778]
mov qword [rsp + 0x70], r15
mov qword [rbp + 0xa8], r15
mov r14, qword [rbp + 0x780]
mov qword [rsp + 0x40], r14
mov qword [rbp + 0xb0], r14
mov edi, 0x80004005
call fcn.14001a970
cmp eax, 9
je 0x140087957
lea eax, [rbx - 0x65]
cmp eax, 0x62
ja 0x140087957
mov rdx, qword [r15]
sub rdx, 0x18
or r15, 0xffffffffffffffff
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140087952
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x1400889ad
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x58]
call fcn.1400386c0
nop
xor r14d, r14d
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x48], r14d
lea rax, [rbp - 0x48]
mov qword [rbp - 0x60], rax
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp - 0x48], rax
mov rcx, qword [r15]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x80], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x48]
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.140012630
or r15, 0xffffffffffffffff
mov edx, dword [rbp - 0x80]
cmp edx, 0xc9
ja case.0x140087a13.19
lea r8, [0x140000000]
movzx eax, byte [r8 + rdx + 0x88a5c]
mov ecx, dword [r8 + rax*4 + 0x889f8]
add rcx, r8
jmp rcx
mov edi, r14d
jmp case.0x140087a13.19
cmp dword [rsp + 0x48], 0
jne 0x140087a6b
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140087a31
cmp eax, 1
jne 0x140087a6b
mov rdx, r12
lea rcx, [rbp - 0x76]
call fcn.1400536b0
mov edi, eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
lea rdx, [0x1400e0a38]
call qword [sym.imp.MSVCR100.dll__wcsicmp]
test eax, eax
jne 0x140087a6b
lea r8, reloc.ATL100.DLL_Ordinal_49
mov edx, edi
mov rcx, rsi
call fcn.140087750
mov edi, eax
mov r8, r13
mov edx, edi
mov rcx, rsi
call fcn.140087750
mov edi, eax
jmp case.0x140087a13.19
cmp dword [rsp + 0x48], 0
jne 0x140087a6b
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140087a93
cmp eax, 1
jne 0x140087a6b
cmp edx, 2
mov rdx, r12
jne 0x140087aa4
mov r8b, 1
lea rcx, [rbp - 0x74]
jmp 0x140087aab
xor r8d, r8d
lea rcx, [rbp - 0x72]
call fcn.140085670
jmp 0x140087a3d
cmp dword [rsp + 0x48], 2
je 0x140087a6b
lea rax, [rbp - 0x38]
mov qword [rsp + 0x60], rax
mov r14, qword [rsp + 0x40]
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp - 0x38], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x68], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x68]
mov r8, r13
mov rdx, r12
mov rcx, rsi
call fcn.140086cc0
mov edi, eax
mov rcx, qword [r14]
jmp 0x140087a47
cmp dword [rsp + 0x48], 2
je 0x140087a6b
lea rax, [rbp + 0x18]
mov qword [rsp + 0x60], rax
mov r14, qword [rsp + 0x40]
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x18], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x30], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, r13
mov r8, qword [rsp + 0x78]
mov rdx, r12
mov rcx, rsi
call fcn.140086d90
mov edi, eax
mov rcx, qword [r14]
jmp 0x140087a47
cmp dword [rsp + 0x48], 0
jne 0x140087a6b
lea rax, [rbp - 0x20]
mov qword [rsp + 0x60], rax
mov r14, qword [rsp + 0x40]
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp - 0x20], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x20], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9, r13
mov r8, qword [rsp + 0x78]
mov rdx, r12
mov rcx, rsi
call fcn.140086e70
mov edi, eax
mov rcx, qword [r14]
jmp 0x140087a47
cmp dword [rsp + 0x48], 2
je 0x140087a6b
call fcn.14001a970
cmp eax, 9
jne 0x140087daf
mov dword [rbp + 0xc0], r14d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0xc4]
call sub.MSVCR100.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0xc0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je case.0x140087a13.19
xor eax, eax
mov rcx, r15
lea rdi, [rbp + 0xc0]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140087cd1
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140087d60
cmp dword [rdx + 0x10], eax
jge 0x140087ca3
cmp dword [rbx - 0xc], eax
jge 0x140087c96
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x140087d60
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140087cba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
jmp 0x140087d60
mov eax, dword [rbx - 0x10]
mov dword [rbp - 0x80], eax
lea r12, [rbp + 0xc0]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x140087cf3
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140087d15
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001c20
mov rbx, qword [rsp + 0x50]
mov eax, dword [rbp - 0x80]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, rax
movsxd rax, edi
ja 0x140087d3f
add rax, rax
lea r8, [rbx + r12*2]
mov r12, rax
mov r9, rax
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x140087d53
lea r12, [rax + rax]
mov r9, r12
lea r8, [rbp + 0xc0]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x140087da4
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], r14w
lea rcx, [rsp + 0x50]
call fcn.14003ff20
lea r8, str.:WINDOWSSYSWOW64_
lea rdx, str.:WINDOWSSYSTEM32_
lea rcx, [rsp + 0x50]
call fcn.140003ec0
lea r8, str.:PROGRAM_FILES__X86__
lea rdx, str.:PROGRAM_FILES_
lea rcx, [rsp + 0x50]
call fcn.140003ec0
mov rbx, qword [rsp + 0x50]
mov r12, rbx
jmp 0x140087daf
mov ecx, 0x80070057
call fcn.140001000
int3
lea rax, [rbp - 0x50]
mov qword [rsp + 0x60], rax
mov r14, qword [rsp + 0x40]
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp - 0x50], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x40], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, r13
mov r8, qword [rsp + 0x78]
mov rdx, r12
mov rcx, rsi
call fcn.140086f50
mov edi, eax
mov rcx, qword [r14]
jmp 0x140087a47
cmp dword [rsp + 0x48], 2
je 0x140087a6b
lea rax, [rbp]
mov qword [rsp + 0x60], rax
mov r14, qword [rsp + 0x40]
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x90], rax
lea rax, [rbp]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
jmp 0x140087df7
cmp dword [rsp + 0x48], 0
jne 0x140087a6b
call fcn.14001a970
cmp eax, 9
jne 0x140088020
mov dword [rbp + 0x2d0], r14d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0x2d4]
call sub.MSVCR100.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x2d0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je case.0x140087a13.19
xor eax, eax
mov rcx, r15
lea rdi, [rbp + 0x2d0]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140087f42
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140087fd1
cmp dword [rdx + 0x10], eax
jge 0x140087f14
cmp dword [rbx - 0xc], eax
jge 0x140087f07
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x140087fd1
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140087f2b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
jmp 0x140087fd1
mov eax, dword [rbx - 0x10]
mov dword [rbp - 0x80], eax
lea r12, [rbp + 0x2d0]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x140087f64
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140087f86
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001c20
mov rbx, qword [rsp + 0x50]
mov eax, dword [rbp - 0x80]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, rax
movsxd rax, edi
ja 0x140087fb0
add rax, rax
lea r8, [rbx + r12*2]
mov r12, rax
mov r9, rax
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x140087fc4
lea r12, [rax + rax]
mov r9, r12
lea r8, [rbp + 0x2d0]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x140088015
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], r14w
lea rcx, [rsp + 0x50]
call fcn.14003ff20
lea r8, str.:WINDOWSSYSWOW64_
lea rdx, str.:WINDOWSSYSTEM32_
lea rcx, [rsp + 0x50]
call fcn.140003ec0
lea r8, str.:PROGRAM_FILES__X86__
lea rdx, str.:PROGRAM_FILES_
lea rcx, [rsp + 0x50]
call fcn.140003ec0
mov rbx, qword [rsp + 0x50]
mov r12, rbx
jmp 0x140088020
mov ecx, 0x80070057
call fcn.140001000
int3
lea rax, [rbp - 0x40]
mov qword [rsp + 0x60], rax
mov r14, qword [rsp + 0x40]
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp - 0x40], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, r13
mov r8, qword [rsp + 0x78]
mov rdx, r12
mov rcx, rsi
call fcn.140087030
jmp 0x140087e0f
cmp dword [rsp + 0x48], 0
jne 0x140087a6b
lea rax, [rbp - 0x10]
mov qword [rsp + 0x60], rax
mov r14, qword [rsp + 0x40]
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp - 0x10], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x78], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x78]
jmp 0x140088068
cmp dword [rsp + 0x48], 0
jne 0x140087a6b
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x1400880f6
cmp eax, 1
jne 0x140087a6b
cmp edx, 8
jne 0x1400881b9
call fcn.14001a970
cmp eax, 9
jne 0x1400881b9
test r12, r12
je 0x140088124
xor eax, eax
mov rcx, r15
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r14, [rcx - 1]
mov r8d, r14d
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.140001e80
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0x10], 0
jl 0x14008815f
lea rdx, str.SOFTWAREWOW6432NODE_
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsstr]
test rax, rax
je 0x14008815f
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400881b9
lea rcx, [rsp + 0x50]
call fcn.14003ff20
lea r8, str.HKEY_LOCAL_MACHINESOFTWAREWOW6432NODE_
lea rdx, str.HKEY_LOCAL_MACHINESOFTWARE_
lea rcx, [rsp + 0x50]
call fcn.140003ec0
lea r8, str.HKEY_CURRENT_USERSOFTWAREWOW6432NODE_
lea rdx, str.HKEY_CURRENT_USERSOFTWARE_
lea rcx, [rsp + 0x50]
call fcn.140003ec0
lea r8, str.HKEY_CLASSES_ROOTSOFTWAREWOW6432NODE_
lea rdx, str.HKEY_CLASSES_ROOTSOFTWARE_
lea rcx, [rsp + 0x50]
call fcn.140003ec0
mov rbx, qword [rsp + 0x50]
mov r12, rbx
mov r8, qword [rsp + 0x78]
mov rdx, r12
lea rcx, [rbp - 0x73]
call fcn.140081ac0
jmp 0x140087a3d
cmp edx, 9
jne 0x140088292
call fcn.14001a970
cmp eax, 9
jne 0x140088292
test r12, r12
je 0x1400881fd
xor eax, eax
mov rcx, r15
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r14d, [rcx - 1]
mov r8d, r14d
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.140001e80
lea rcx, [rsp + 0x50]
call fcn.14003ff20
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0x10], 0
jl 0x140088242
lea rdx, str.SOFTWAREWOW6432NODE_
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsstr]
test rax, rax
je 0x140088242
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140088292
lea r8, str.HKEY_LOCAL_MACHINESOFTWAREWOW6432NODE_
lea rdx, str.HKEY_LOCAL_MACHINESOFTWARE_
lea rcx, [rsp + 0x50]
call fcn.140003ec0
lea r8, str.HKEY_CURRENT_USERSOFTWAREWOW6432NODE_
lea rdx, str.HKEY_CURRENT_USERSOFTWARE_
lea rcx, [rsp + 0x50]
call fcn.140003ec0
lea r8, str.HKEY_CLASSES_ROOTSOFTWAREWOW6432NODE_
lea rdx, str.HKEY_CLASSES_ROOTSOFTWARE_
lea rcx, [rsp + 0x50]
call fcn.140003ec0
mov rbx, qword [rsp + 0x50]
mov r12, rbx
lea rax, [rbp - 0x30]
mov qword [rbp - 0x80], rax
mov r14, qword [rsp + 0x40]
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp - 0x30], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x60], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x78]
mov rdx, r12
mov rcx, rsi
call fcn.140087110
mov edi, eax
lea rdx, [0x1400e0a38]
mov rcx, qword [r14]
call qword [sym.imp.MSVCR100.dll__wcsicmp]
test eax, eax
jne 0x140088321
lea r8, reloc.ATL100.DLL_Ordinal_49
mov edx, edi
mov rcx, rsi
call fcn.140087750
mov edi, eax
mov r8, r13
mov edx, edi
mov rcx, rsi
call fcn.140087750
mov edi, eax
jmp 0x140088962
mov r14, qword [rsp + 0x40]
cmp dword [rsp + 0x48], 2
je 0x140088321
lea rax, [rbp + 0x10]
mov qword [rsp + 0x60], rax
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x10], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x88], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x88]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 1
mov r9, r13
mov r8, qword [rsp + 0x78]
mov rdx, r12
mov rcx, rsi
call fcn.140087200
jmp 0x1400882f8
mov r14, qword [rsp + 0x40]
cmp dword [rsp + 0x48], 2
je 0x140088321
lea rax, [rbp - 0x68]
mov qword [rsp + 0x60], rax
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp - 0x68], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x70], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
jmp 0x140088394
cmp dword [rsp + 0x48], 2
je 0x140088622
call fcn.14001a970
cmp eax, 9
jne 0x1400885b7
mov dword [rbp + 0x4e0], r14d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0x4e4]
call sub.MSVCR100.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x4e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je case.0x140087a13.19
xor eax, eax
mov rcx, r15
lea rdi, [rbp + 0x4e0]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x1400884d9
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140088568
cmp dword [rdx + 0x10], eax
jge 0x1400884ab
cmp dword [rbx - 0xc], eax
jge 0x14008849e
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x140088568
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400884c2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
jmp 0x140088568
mov eax, dword [rbx - 0x10]
mov dword [rbp - 0x80], eax
lea r12, [rbp + 0x4e0]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x1400884fb
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14008851d
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001c20
mov rbx, qword [rsp + 0x50]
mov eax, dword [rbp - 0x80]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, rax
movsxd rax, edi
ja 0x140088547
add rax, rax
lea r8, [rbx + r12*2]
mov r12, rax
mov r9, rax
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x14008855b
lea r12, [rax + rax]
mov r9, r12
lea r8, [rbp + 0x4e0]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x1400885ac
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], r14w
lea rcx, [rsp + 0x50]
call fcn.14003ff20
lea r8, str.:WINDOWSSYSWOW64_
lea rdx, str.:WINDOWSSYSTEM32_
lea rcx, [rsp + 0x50]
call fcn.140003ec0
lea r8, str.:PROGRAM_FILES__X86__
lea rdx, str.:PROGRAM_FILES_
lea rcx, [rsp + 0x50]
call fcn.140003ec0
mov rbx, qword [rsp + 0x50]
mov r12, rbx
jmp 0x1400885b7
mov ecx, 0x80070057
call fcn.140001000
int3
lea rax, [rbp - 0x58]
mov qword [rsp + 0x60], rax
mov r14, qword [rsp + 0x40]
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp - 0x58], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x98], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x98]
mov qword [rsp + 0x20], rax
mov r9, r13
mov r8, qword [rsp + 0x78]
mov rdx, r12
mov rcx, rsi
call fcn.1400872f0
jmp 0x1400882f8
mov r14, qword [rsp + 0x40]
jmp 0x140088321
mov r14, qword [rsp + 0x40]
cmp dword [rsp + 0x48], 2
je 0x140088321
lea rax, [rbp - 0x70]
mov qword [rbp - 0x80], rax
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp - 0x70], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov rax, qword [rbp + 0x768]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x78]
mov rdx, r12
mov rcx, rsi
call fcn.1400873d0
jmp 0x1400882f8
mov r14, qword [rsp + 0x40]
cmp dword [rsp + 0x48], 0
jne 0x140088321
lea rax, [rbp - 0x28]
mov qword [rsp + 0x60], rax
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp - 0x28], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x38], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x38]
mov r8, r13
mov rdx, r12
mov rcx, rsi
call fcn.1400874d0
jmp 0x1400882f8
cmp dword [rsp + 0x48], 0
jne 0x140088622
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140088730
cmp eax, 1
jne 0x140088622
mov rdx, r12
lea rcx, [rbp - 0x75]
call fcn.140055440
mov r14, qword [rsp + 0x40]
jmp 0x1400882f8
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140088757
cmp eax, 2
jne 0x140088622
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140088768
cmp eax, 1
jne 0x140088622
call fcn.14001a970
mov dword [rbp - 0x80], eax
lea rdx, [0x1400e9248]
mov rcx, r12
call qword [sym.imp.MSVCR100.dll__wcsicmp]
test eax, eax
jne 0x140088789
cmp dword [rbp - 0x80], eax
jmp 0x1400887a1
lea rdx, [0x1400e9240]
mov rcx, r12
call qword [sym.imp.MSVCR100.dll__wcsicmp]
test eax, eax
jne 0x1400887a5
cmp dword [rbp - 0x80], 9
cmove edi, r14d
mov r14, qword [rsp + 0x40]
jmp 0x1400882fa
mov r14, qword [rsp + 0x40]
cmp dword [rsp + 0x48], 2
je 0x140088321
lea rax, [rbp - 0x18]
mov qword [rsp + 0x60], rax
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x48], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x48]
mov r8, r13
mov rdx, r12
mov rcx, rsi
call fcn.1400875a0
jmp 0x1400882f8
mov r14, qword [rsp + 0x40]
cmp dword [rsp + 0x48], 2
je 0x140088321
lea rax, [rbp - 8]
mov qword [rsp + 0x60], rax
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp - 8], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x58], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x58]
jmp 0x140088605
cmp dword [rsp + 0x48], 0
jne 0x140088622
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140088889
cmp eax, 1
jne 0x140088622
call fcn.1400193c0
cmp eax, 0x51
jle 0x140088622
mov rdx, r12
lea rcx, [rbp - 0x77]
call fcn.14000f1f0
mov r14, qword [rsp + 0x40]
jmp 0x1400882f8
cmp dword [rsp + 0x48], 0
jne 0x140088622
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x1400888c9
cmp eax, 1
jne 0x140088622
mov rdx, r12
lea rcx, [rbp - 0x78]
call fcn.14004feb0
mov r14, qword [rsp + 0x40]
jmp 0x1400882f8
cmp dword [rsp + 0x48], 2
je 0x140088622
call fcn.1400193c0
mov r14, qword [rsp + 0x40]
cmp eax, 0x62
jl 0x140088321
lea rax, [rbp + 8]
mov qword [rsp + 0x60], rax
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 8], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp - 0x60], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9, r13
mov r8, qword [rsp + 0x78]
mov rdx, r12
mov rcx, rsi
call fcn.140087670
jmp 0x1400882f8
mov r14, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.1400036a0
nop
lea rdx, [rbx - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140088989
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
sub rdx, 0x18
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400889ad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r15d
dec r15d
test r15d, r15d
jg 0x1400889cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, edi
mov rcx, qword [rbp + 0x6f0]
xor rcx, rsp
call fcn.1400cafa0
mov rbx, qword [rsp + 0x848]
add rsp, 0x800
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret