Function at 0x14003ddc0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x450], rbx
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rbx, r9
mov qword [rbp + 0x28], rbx
mov r12, r8
mov qword [rbp], r8
mov rsi, rdx
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x68], rbx
mov rdi, qword [rbp + 0x370]
mov qword [rsp + 0x58], rdi
mov qword [rbp + 0x58], rdi
xor r15d, r15d
mov dword [rbp - 0x48], r15d
mov eax, 0x80004005
mov r14d, eax
mov dword [rsp + 0x60], eax
lea rcx, [rbp + 0x70]
call fcn.140021c60
nop
lea rcx, [rsp + 0x40]
call fcn.1400386c0
nop
mov dword [rsp + 0x44], r15d
mov dword [rbp - 0x80], r15d
lea rax, [rbp + 0x10]
mov qword [rbp + 0x18], rax
mov rcx, qword [rdi]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x10], rax
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x38], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140012630
mov rdx, r12
lea rcx, [rbp + 0x60]
call fcn.140002710
mov r8d, dword [rsp + 0x44]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400124a0
or rbx, 0xffffffffffffffff
test eax, eax
je 0x14003ee07
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
test r12, r12
je 0x14003df2f
test r12, 0xffffffffffff0000
jne 0x14003df1c
movzx edi, r12w
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x14003df43
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140001f70
jmp 0x14003df43
xor eax, eax
mov rcx, rbx
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
dec rcx
jmp 0x14003df32
mov ecx, r15d
mov r8d, ecx
mov rdx, r12
lea rcx, [rsp + 0x70]
call fcn.140001e80
nop
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x18], rax
lea rdx, str.VersionTxt
test rdx, 0xffffffffffff0000
jne 0x14003dfa8
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x14003dfb8
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140001f70
jmp 0x14003dfb8
mov r8d, 0xa
lea rcx, [rbp - 0x18]
call fcn.140001e80
nop
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x20], rax
lea rdx, str.DebugInfoSearchEx
test rdx, 0xffffffffffff0000
jne 0x14003e003
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x14003e013
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140001f70
jmp 0x14003e013
mov r8d, reloc.ATL100.DLL_Ordinal_17
lea rcx, [rbp - 0x20]
call fcn.140001e80
nop
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x70]
call fcn.140021600
movzx edi, al
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14003e04b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e069
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test dil, dil
je 0x14003e19c
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x14003e126
cmp eax, 1
je 0x14003e126
lea rax, [rbp + 8]
mov qword [rsp + 0x68], rax
mov rdi, qword [rsp + 0x70]
lea rcx, [rdi - 0x18]
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 8], rax
mov rcx, qword [rsp + 0x78]
add rcx, 0xffffffffffffffe8
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x30], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp - 0x80]
lea r8, [rbp + 8]
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400184b0
test eax, eax
je 0x14003e19c
mov r14d, r15d
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e105
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov eax, ebx
lock xadd dword [rdi - 8], eax
dec eax
test eax, eax
jg 0x14003ee02
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
jmp 0x14003edff
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x14003e19c
mov rcx, qword [rsp + 0x78]
cmp dword [rcx - 0x10], 0
jl 0x14003e19c
call qword [sym.imp.MSVCR100.dll_wcsstr]
mov rdx, rax
test rax, rax
je 0x14003e19c
mov rax, qword [rsp + 0x78]
sub rdx, rax
sar rdx, 1
cmp edx, 0xffffffff
je 0x14003e19c
mov r14d, r15d
lea rdx, [rax - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e177
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003ee02
mov rcx, qword [rdx]
mov rax, qword [rcx]
jmp 0x14003edff
mov dword [rbp + 0xf0], r15d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0xf4]
call sub.MSVCR100.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0xf0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14003e1f3
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e1f1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x14003e177
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x50], rsi
lea rcx, [rbp + 0xf0]
lea rax, [rbp + 0xf0]
test rax, 0xffffffffffff0000
jne 0x14003e24d
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x14003e361
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001f70
jmp 0x14003e361
xor eax, eax
mov rcx, rbx
lea rdi, [rbp + 0xf0]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14003e2cd
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14003e361
cmp dword [rdx + 0x10], eax
jge 0x14003e2a0
cmp dword [rsi - 0xc], eax
jge 0x14003e28e
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rsi - 0x10], r15d
mov rax, qword [rsp + 0x50]
mov word [rax], r15w
jmp 0x14003e361
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e2b6
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 0x14003e361
mov r13d, dword [rsi - 0x10]
lea r12, [rbp + 0xf0]
sub r12, rsi
sar r12, 1
test ecx, ecx
jns 0x14003e2ed
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x14003e30f
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140001c20
mov rsi, qword [rsp + 0x50]
movsxd rax, edi
movsxd rdx, dword [rsi - 0xc]
mov rcx, rsi
add rdx, rdx
cmp r12, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x14003e334
lea r8, [rsi + r12*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x14003e341
lea r8, [rbp + 0xf0]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
mov rax, qword [rsp + 0x50]
cmp edi, dword [rax - 0xc]
jg 0x14003edf4
mov dword [rax - 0x10], edi
mov rax, qword [rsp + 0x50]
mov word [r13 + rax], r15w
mov r12, qword [rbp]
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.140015dc0
test eax, eax
je 0x14003e44d
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 8], rax
test r12, r12
je 0x14003e406
test r12, 0xffffffffffff0000
jne 0x14003e3f3
movzx edi, r12w
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x14003e419
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.140001f70
jmp 0x14003e419
xor eax, eax
mov rcx, rbx
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
dec rcx
jmp 0x14003e409
mov ecx, r15d
mov r8d, ecx
mov rdx, r12
lea rcx, [rbp - 8]
call fcn.140001e80
nop
mov edi, 1
mov dword [rbp - 0x48], edi
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r15d
mov r9d, edi
lea r8, [rbp - 0x40]
lea rdx, [rbp - 8]
lea rcx, [rsp + 0x40]
call fcn.140015dc0
test eax, eax
je 0x14003e450
xor sil, sil
jmp 0x14003e453
mov edi, dword [rbp - 0x48]
mov sil, 1
test dil, 1
je 0x14003e477
mov rdx, qword [rbp - 8]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e477
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test sil, sil
je 0x14003e573
mov r14d, 0x20000015
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x14003e4d2
mov rsi, qword [rbp - 0x38]
cmp rdi, rsi
je 0x14003e4ca
nop dword [rax + rax]
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e4bd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rdi, 8
cmp rdi, rsi
jne 0x14003e4a0
mov rdi, qword [rbp - 0x40]
mov rcx, rdi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x14003e522
mov rsi, qword [rbp - 0x70]
cmp rdi, rsi
je 0x14003e51a
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e50d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rdi, 8
cmp rdi, rsi
jne 0x14003e4f0
mov rdi, qword [rbp - 0x78]
mov rcx, rdi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e54e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e56e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x14003e177
mov dword [rsp + 0x48], r15d
mov r13, qword [rbp - 0x70]
mov rax, r13
mov r12, qword [rbp - 0x78]
sub rax, r12
sar rax, 3
test eax, eax
jle 0x14003e8d8
xor r13d, r13d
mov r12d, r13d
mov qword [rsp + 0x68], r13
nop dword [rax]
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x10], rdi
mov rax, qword [rbp - 0x78]
mov r14, qword [rax + r12]
lea rcx, [r14 - 0x18]
lea rsi, [rdi - 0x18]
cmp rcx, rsi
je 0x14003e6fd
cmp dword [rsi + 0x10], 0
jl 0x14003e60e
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x14003e60e
call fcn.140001b90
mov rdi, rax
mov ecx, ebx
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14003e601
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 8]
add rdi, 0x18
mov qword [rbp - 0x10], rdi
jmp 0x14003e6fd
movsxd r12, dword [r14 - 0x10]
test r12d, r12d
jne 0x14003e671
mov r12, qword [rsi]
cmp dword [rsi + 8], 0
je 0x14003e6f8
cmp dword [rsi + 0x10], 0
jge 0x14003e641
cmp dword [rdi - 0xc], 0
jl 0x14003e7a1
mov dword [rdi - 0x10], r13d
mov word [rdi], r13w
jmp 0x14003e6f8
mov eax, ebx
lock xadd dword [rsi + 0x10], eax
dec eax
test eax, eax
jg 0x14003e65a
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 8]
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x10], rdi
jmp 0x14003e6f8
test r14, r14
je 0x14003e7c2
mov r15d, dword [rdi - 0x10]
mov r13, r14
sub r13, rdi
sar r13, 1
test r12d, r12d
js 0x14003e7b7
mov ecx, 1
sub ecx, dword [rsi + 0x10]
mov eax, dword [rsi + 0xc]
sub eax, r12d
or eax, ecx
jge 0x14003e6b2
mov edx, r12d
lea rcx, [rbp - 0x10]
call fcn.140001c20
mov rdi, qword [rbp - 0x10]
lea rsi, [r12 + r12]
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
mov r9, rsi
add rdx, rdx
cmp r13, r15
ja 0x14003e6d4
lea r8, [rdi + r13*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x14003e6dd
mov r8, r14
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp r12d, dword [rdi - 0xc]
jg 0x14003e7ac
mov dword [rdi - 0x10], r12d
xor r13d, r13d
mov word [rsi + rdi], r13w
mov r15d, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
mov esi, dword [rdi - 0x10]
mov edx, Ordinal_44
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsrchr]
mov rdx, rax
test rax, rax
jne 0x14003e71a
mov edx, ebx
jmp 0x14003e720
sub rdx, rdi
sar rdx, 1
lea eax, [rsi - 1]
cmp eax, edx
jne 0x14003e74e
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsrchr]
mov rdx, rax
test rax, rax
jne 0x14003e741
mov edx, ebx
jmp 0x14003e747
sub rdx, rdi
sar rdx, 1
lea eax, [rsi - 2]
cmp eax, edx
jne 0x14003e7cd
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e768
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc r15d
mov dword [rsp + 0x48], r15d
add r12, 8
mov qword [rsp + 0x68], r12
mov r13, qword [rbp - 0x70]
mov rax, r13
mov r12, qword [rbp - 0x78]
sub rax, r12
sar rax, 3
cmp r15d, eax
jge 0x14003e8d3
mov r12, qword [rsp + 0x68]
xor r13d, r13d
jmp 0x14003e5a0
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov r14d, 0x20000009
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e7ee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x14003e832
mov rsi, qword [rbp - 0x38]
cmp rdi, rsi
je 0x14003e82a
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e81d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rdi, 8
cmp rdi, rsi
jne 0x14003e800
mov rdi, qword [rbp - 0x40]
mov rcx, rdi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r13
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x14003e882
mov rsi, qword [rbp - 0x70]
cmp rdi, rsi
je 0x14003e87a
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e86d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rdi, 8
cmp rdi, rsi
jne 0x14003e850
mov rdi, qword [rbp - 0x78]
mov rcx, rdi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r13
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e8ae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e8ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x14003e177
mov r14d, dword [rsp + 0x60]
xor r15d, r15d
mov dword [rsp + 0x48], r15d
mov rax, r13
sub rax, r12
sar rax, 3
test eax, eax
jle 0x14003ed00
mov qword [rsp + 0x68], r15
lea r14, [0x1400de328]
nop
xor eax, eax
mov rdi, r14
mov rsi, qword [r12 + r15]
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x14003e918
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x14003ecf7
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x50], rdi
mov rax, qword [rbp - 0x78]
mov r14, qword [rax + r15]
lea rcx, [r14 - 0x18]
lea rsi, [rdi - 0x18]
cmp rcx, rsi
je 0x14003ea7e
cmp dword [rsi + 0x10], 0
jl 0x14003e98f
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x14003e98f
call fcn.140001b90
mov rdi, rax
mov ecx, ebx
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14003e986
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 8]
add rdi, 0x18
jmp 0x14003ea7a
movsxd r12, dword [r14 - 0x10]
test r12d, r12d
jne 0x14003e9f1
mov r12, qword [rsi]
cmp dword [rsi + 8], 0
je 0x14003ea7e
cmp dword [rsi + 0x10], 0
jge 0x14003e9c5
cmp dword [rdi - 0xc], 0
jl 0x14003ecc4
xor r13d, r13d
mov dword [rdi - 0x10], r13d
mov word [rdi], r13w
jmp 0x14003ea81
mov eax, ebx
lock xadd dword [rsi + 0x10], eax
dec eax
test eax, eax
jg 0x14003e9de
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 8]
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
jmp 0x14003ea7a
test r14, r14
je 0x14003ece5
mov r15d, dword [rdi - 0x10]
mov r13, r14
sub r13, rdi
sar r13, 1
test r12d, r12d
js 0x14003ecda
mov ecx, 1
sub ecx, dword [rsi + 0x10]
mov eax, dword [rsi + 0xc]
sub eax, r12d
or eax, ecx
jge 0x14003ea32
mov edx, r12d
lea rcx, [rbp - 0x50]
call fcn.140001c20
mov rdi, qword [rbp - 0x50]
lea rsi, [r12 + r12]
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
mov r9, rsi
add rdx, rdx
cmp r13, r15
ja 0x14003ea54
lea r8, [rdi + r13*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x14003ea5d
mov r8, r14
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp r12d, dword [rdi - 0xc]
jg 0x14003eccf
mov dword [rdi - 0x10], r12d
xor r13d, r13d
mov word [rsi + rdi], r13w
mov r15, qword [rsp + 0x68]
jmp 0x14003ea81
mov qword [rbp - 0x50], rdi
xor r13d, r13d
mov esi, dword [rdi - 0x10]
mov edx, Ordinal_44
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsrchr]
mov rdx, rax
test rax, rax
jne 0x14003ea9e
mov edx, ebx
jmp 0x14003eaa4
sub rdx, rdi
sar rdx, 1
lea eax, [rsi - 1]
cmp eax, edx
jne 0x14003eaf5
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsrchr]
mov rdx, rax
test rax, rax
jne 0x14003eac5
mov edx, ebx
jmp 0x14003eacb
sub rdx, rdi
sar rdx, 1
lea eax, [rsi - 2]
cmp eax, edx
je 0x14003eaf5
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003ec8f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14003ec8f
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x58], rax
lea r14, [0x1400de328]
test r14, 0xffffffffffff0000
jne 0x14003eb41
movzx edi, r14w
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x14003eb51
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140001f70
jmp 0x14003eb51
xor r8d, r8d
mov rdx, r14
lea rcx, [rbp - 0x58]
call fcn.140001e80
nop
mov rax, qword [rbp - 0x78]
lea r8, [rbp - 0x58]
mov rdx, qword [rax + r15]
mov rcx, qword [rbp + 0x40]
call fcn.14003acd0
mov r12d, eax
mov dword [rsp + 0x60], eax
xor r8d, r8d
mov rdi, r14
mov rdx, qword [rbp - 0x58]
mov rsi, rdx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x14003eb8b
sbb r8d, r8d
sbb r8d, 0xffffffff
test r8d, r8d
sete al
test al, al
je 0x14003ebd7
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003ebb0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003ec96
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14003ec96
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x14003ec31
cmp eax, 1
je 0x14003ec31
lea rax, [rbp + 0x48]
mov qword [rsp + 0x68], rax
mov rdx, qword [rbp]
lea rcx, [rbp + 0x48]
call fcn.140002710
mov rdi, rax
mov rcx, qword [rbp - 0x58]
add rcx, 0xffffffffffffffe8
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x20], rax
mov ecx, dword [rsp + 0x44]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rbp - 0x80]
mov r8, rdi
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400184b0
jmp 0x14003ec4f
lea rcx, [rdx - 0x18]
call fcn.140001b90
add rax, 0x18
mov qword [rbp + 0x18], rax
lea rdx, [rbp + 0x18]
mov rcx, qword [rbp]
call fcn.140061320
test eax, eax
je 0x14003ec5a
mov dword [rsp + 0x60], r13d
jmp 0x14003ec6b
test r12d, r12d
mov eax, 0x80004005
cmove r12d, eax
mov dword [rsp + 0x60], r12d
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003ec8a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x14003ebb0
lea r14, [0x1400de328]
mov edx, dword [rsp + 0x48]
inc edx
mov dword [rsp + 0x48], edx
add r15, 8
mov qword [rsp + 0x68], r15
mov r13, qword [rbp - 0x70]
mov rax, r13
mov r12, qword [rbp - 0x78]
sub rax, r12
sar rax, 3
cmp edx, eax
jge 0x14003ecf0
jmp 0x14003e900
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
nop
mov r14d, dword [rsp + 0x60]
jmp 0x14003ecfd
mov r14d, 0x20000015
xor r15d, r15d
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x14003ed5a
mov rsi, qword [rbp - 0x38]
cmp rdi, rsi
je 0x14003ed4a
nop word [rax + rax]
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003ed3d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rdi, 8
cmp rdi, rsi
jne 0x14003ed20
mov rdi, qword [rbp - 0x40]
mov rcx, rdi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov r13, qword [rbp - 0x70]
mov r12, qword [rbp - 0x78]
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
test r12, r12
je 0x14003eda3
cmp r12, r13
je 0x14003ed9b
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003ed8e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add r12, 8
cmp r12, r13
jne 0x14003ed70
mov r12, qword [rbp - 0x78]
mov rcx, r12
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003edcf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003edef
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x14003e177
mov ecx, 0x80070057
call fcn.140001000
nop
call qword [rax + 8]
mov rdi, qword [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.1400036a0
nop
lea rcx, [rbp + 0x70]
call fcn.140021ae0
nop
mov rdx, qword [rbp + 0x28]
mov rdx, qword [rdx]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003ee3e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14003ee59
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, r14d
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.1400cafa0
mov rbx, qword [rsp + 0x450]
add rsp, 0x410
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret