Function at 0x140124e98
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x188
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r13, r9
mov r12, r8
mov rdi, rcx
mov r14, qword [rsp + 0x1e0]
mov r15, qword [rsp + 0x1e8]
mov rsi, qword [rsp + 0x1f0]
mov qword [rsp + 0x60], rsi
mov rdx, qword [rdx]
lea rcx, [rsp + 0x48]
call fcn.14000cb18
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140124f10
xor sil, sil
jmp 0x14012528b
and qword [r15], 0
and dword [rsi], 0
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140124308
nop
cmp qword [rsp + 0x50], 0
jne 0x140124f38
xor sil, sil
jmp 0x14012525b
mov qword [rsp + 0xb0], 0xf
and qword [rsp + 0xa8], 0
mov byte [rsp + 0x98], 0
mov ecx, 0x20
call fcn.1400be454
nop
test rax, rax
je 0x140124f86
lea rcx, vtable.CryptoPP::StringSinkTemplate_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.0
mov qword [rax], rcx
lea rcx, vtable.CryptoPP::StringSinkTemplate_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.1.0
mov qword [rax + 8], rcx
lea rcx, [rsp + 0x98]
mov qword [rax + 0x18], rcx
mov r8, rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xc0]
call fcn.14009ba80
nop
mov qword [rsp + 0x88], 0xf
and qword [rsp + 0x80], 0
mov byte [rsp + 0x70], 0
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x98]
call qword [rax + 0x10]
xor sil, sil
test eax, eax
jne 0x140125205
mov r8b, 0x7c
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.140129580
nop
mov rcx, qword [rsp + 0x30]
mov r10, qword [rsp + 0x28]
sub rcx, r10
movabs rax, 0x6666666666666667
imul rcx
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
cmp rdi, 3
jbe 0x1401251d7
cmp rdi, 4
jne 0x14012506e
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r10
mov rcx, r12
call fcn.1400030c4
mov rdx, qword [rsp + 0x28]
add rdx, 0x28
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, r13
call fcn.1400030c4
mov rdx, qword [rsp + 0x28]
add rdx, 0x50
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, r14
call fcn.1400030c4
jmp 0x1401251cf
cmp qword [r10 + 0x18], 0x10
jb 0x140125078
mov r10, qword [r10]
mov rcx, r10
call fcn.1400c5d28
test eax, eax
je 0x140125185
cmp eax, 1
jle 0x1401251d2
cmp eax, 3
jle 0x14012513d
cmp eax, 4
jne 0x1401251d2
cmp rdi, 7
jb 0x1401251d2
mov rdx, qword [rsp + 0x28]
add rdx, 0x28
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, r12
call fcn.1400030c4
mov rdx, qword [rsp + 0x28]
add rdx, 0x50
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, r13
call fcn.1400030c4
mov rdx, qword [rsp + 0x28]
add rdx, 0x78
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, r14
call fcn.1400030c4
mov rcx, qword [rsp + 0x28]
add rcx, 0xc8
cmp qword [rcx + 0x18], 0x10
jb 0x14012510b
mov rcx, qword [rcx]
call fcn.1400c5d28
movsxd rcx, eax
mov qword [r15], rcx
mov rcx, qword [rsp + 0x28]
add rcx, 0xf0
cmp qword [rcx + 0x18], 0x10
jb 0x14012512c
mov rcx, qword [rcx]
call fcn.1400c5d28
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
jmp 0x1401251cf
cmp rdi, 5
jb 0x1401251d2
mov rdx, qword [rsp + 0x28]
add rdx, 0x28
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, r12
call fcn.1400030c4
mov rdx, qword [rsp + 0x28]
add rdx, 0x50
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, r13
call fcn.1400030c4
mov rdx, qword [rsp + 0x28]
add rdx, 0x78
jmp 0x14012505a
cmp rdi, 4
jb 0x1401251d2
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
mov rcx, r12
call fcn.1400030c4
mov rdx, qword [rsp + 0x28]
add rdx, 0x28
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, r13
call fcn.1400030c4
mov rdx, qword [rsp + 0x28]
add rdx, 0x50
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, r14
call fcn.1400030c4
mov sil, 1
mov r10, qword [rsp + 0x28]
test r10, r10
je 0x140125205
mov r12, qword [rsp + 0x30]
mov rdi, r10
cmp rdi, r12
je 0x1401251fc
mov rcx, rdi
call fcn.14008b088
add rdi, 0x28
mov r10, qword [rsp + 0x28]
jmp 0x1401251e4
mov rcx, r10
call fcn.1400be0f4
nop
cmp qword [rsp + 0x88], 0x10
jb 0x14012521a
mov rcx, qword [rsp + 0x70]
call fcn.1400be0f4
mov qword [rsp + 0x88], 0xf
and qword [rsp + 0x80], 0
mov byte [rsp + 0x70], 0
lea rcx, [rsp + 0xc0]
call fcn.14009bbb4
nop
cmp qword [rsp + 0xb0], 0x10
jb 0x14012525b
mov rcx, qword [rsp + 0x98]
call fcn.1400be0f4
nop
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x140125284
lock dec dword [rdi + 8]
jne 0x140125284
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lock dec dword [rdi + 0xc]
jne 0x140125284
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
jmp 0x14012528b
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1401252ac
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, sil
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400be110
add rsp, 0x188
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret