Function at 0x140127950
Capabilities:
Check if file exists
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov rsi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0xd8], rax
cmp r8, 7
jbe 0x14012804a
mov eax, dword [rdx]
cmp rax, r8
jne 0x14012804a
movzx ebx, word [rdx + 6]
xor ebp, ebp
test bx, bx
cmovne rbp, rdx
test rbp, rbp
mov qword [rsp + 0x48], rsi
je 0x1401280c4
movzx r14d, word [rbp + 4]
cmp r14d, 0x10
jb 0x14012804a
cmp dword [rbp], r14d
jb 0x14012804a
test r14b, 7
jne 0x14012804a
lea r12, [r14 - 0x10]
sub r8, r14
add r14, rdx
lea rcx, [rbp + 8]
lea r10, [rdx + 4]
test rbp, rbp
mov rax, rcx
cmove rax, r10
cmp r12, 0x103
ja 0x140128045
mov rsi, r12
shr rsi, 2
movzx eax, word [rax]
cmp eax, esi
ja 0x140128045
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x60], r10
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x58], rdx
cmp r9d, 1
jne 0x140127a31
test ax, ax
jne 0x140128045
mov qword [rsp + 0x50], rax
xor r13d, r13d
test bx, bx
setne r13b
mov ecx, 0x48
call fcn.14017b1d8
mov rdi, rax
lea rax, [0x14026ecb0]
mov qword [rdi], rax
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x20], rsi
mov rax, r12
and rax, 0xfffffffffffffffc
mov r15, r12
shl r15, 0x3d
sar r15, 0x3f
and r12d, 4
mov ecx, 8
sub ecx, r12d
and r15d, ecx
lea r13, [rax + r13*8]
lea rax, [r15 + r13]
mov rcx, qword [rsp + 0x38]
lea r12, [rcx + rax]
add r12, 8
xorps xmm0, xmm0
movups xmmword [rdi + 0x28], xmm0
movups xmmword [rdi + 0x38], xmm0
mov qword [rdi + 0x18], r12
mov qword [rdi + 8], r12
mov rcx, r12
call fcn.14017b340
test rax, rax
je 0x1401280d4
add r15, r13
add r15, 8
mov qword [rdi + 0x10], rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.1401808d0
mov rax, qword [0x14026ecc8]
mov rcx, rdi
call qword [case.0x1401e7f70.0]
mov dword [rax], r12d
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
mov rcx, rdi
call qword [case.0x1401e7f70.0]
mov word [rax + 6], bx
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
mov rcx, rdi
call qword [case.0x1401e7f70.0]
test bx, bx
je 0x140127e9b
mov word [rax + 4], r15w
mov r12, qword [rsp + 0x50]
mov r13, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x38]
cmp qword [rdi + 0x20], 0
je 0x140127b65
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
mov rcx, rdi
call qword [case.0x1401e7f70.0]
add rax, 0x10
mov qword [rdi + 0x40], rax
cmp qword [rdi + 0x20], 0
je 0x140127b65
xor eax, eax
mov rcx, qword [rdi + 0x40]
mov dword [rcx + rax*4], 0xffffffff
inc rax
cmp rax, qword [rdi + 0x20]
jb 0x140127b51
test rsi, rsi
je 0x140127bc1
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
mov rcx, rdi
call qword [case.0x1401e7f70.0]
movzx esi, word [rax + 6]
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
mov rcx, rdi
call qword [case.0x1401e7f70.0]
mov r15, rax
test si, si
je 0x1401280d7
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
mov rcx, rdi
call qword [case.0x1401e7f70.0]
movzx eax, word [rax + 4]
add r15, rax
mov rcx, r15
mov rdx, r14
mov r8, qword [rsp + 0x38]
call fcn.140180220
test rbp, rbp
je 0x1401280e0
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
mov rcx, rdi
call qword [case.0x1401e7f70.0]
cmp word [rax + 4], 0x10
je 0x140127c26
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
mov rcx, rdi
call qword [case.0x1401e7f70.0]
mov rbx, rax
add rbx, 0x10
add r13, 0x10
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
mov rcx, rdi
call qword [case.0x1401e7f70.0]
movzx r8d, word [rax + 4]
add r8, 0xfffffffffffffff0
cmp r8, 8
jne 0x14012810b
mov rax, qword [r13]
mov qword [rbx], rax
mov rax, qword [rsp + 0x40]
movzx esi, word [rax]
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
mov rcx, rdi
call qword [case.0x1401e7f70.0]
mov word [rax + 8], si
test r12, r12
je 0x140128101
lea rax, [r12*8]
lea r15, [rax + rax*4]
mov rcx, r15
call fcn.14017b1d8
mov rbx, rax
lea r12, [rax + r15]
xorps xmm6, xmm6
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r14, rax
test r14, r14
je 0x140128056
mov qword [r14], 0xffffffffffffffff
mov dword [r14 + 8], 0
movups xmmword [r14 + 0x10], xmm6
mov byte [r14 + 0x20], 0
call rsi
test rax, rax
je 0x140128082
add r14, 0x28
cmp r14, r12
jne 0x140127c73
mov qword [rsp + 0x38], r15
lea rbp, [rbx + 0x18]
xor r14d, r14d
mov r15, qword [rsp + 0x160]
mov rax, qword [rdi + 0x40]
movsxd r13, dword [rax + r14*4]
cmp r13, 0xfffffffffffffff3
ja 0x140128088
test r15, r15
je 0x140127ea4
call rsi
mov rcx, r13
mov rdx, r15
mov r8, rax
call fcn.140024cc0
mov qword [rsp + 0xd0], 0
test rax, rax
je 0x140127d29
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
cmp r13, 0xffffffffffffffff
je 0x140127d18
mov qword [rsp + 0xd0], r13
call fcn.140105b90
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15, qword [rsp + 0x160]
lea r13, [rsp + 0x80]
mov rcx, r13
lea rdx, [rsp + 0xd0]
call fcn.140019a50
mov qword [rsp + 0xa8], 0xffffffffffffffff
lea rcx, [rsp + 0xb0]
mov rdx, r13
call fcn.1401246e0
mov qword [rsp + 0xc0], 0
mov byte [rsp + 0xc8], 0
call rsi
test rax, rax
je 0x140128085
mov rax, qword [rsp + 0x88]
inc rax
cmp rax, 2
mov r13, qword [rsp + 0x50]
jae 0x140127fc8
mov rax, qword [rbp]
inc rax
cmp rax, 1
ja 0x140127da9
cmp byte [rbp + 8], 0
je 0x140127dee
mov r15, qword [rbp - 0x18]
mov qword [rsp + 0xd0], r15
mov rcx, rbp
call fcn.14000a5d0
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 1
mov rcx, rax
mov rdx, r15
mov r15, qword [rsp + 0x160]
xor r8d, r8d
lea r9, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rax, qword [rsp + 0xa8]
mov qword [rbp - 0x18], rax
mov qword [rsp + 0xa8], 0xffffffffffffffff
lea rcx, [rbp - 0x10]
lea rdx, [rsp + 0xb0]
call fcn.140124920
mov rcx, rbp
lea rdx, [rsp + 0xc0]
call fcn.140105ba0
lea rcx, [rsp + 0xa8]
call fcn.1401247d0
inc r14
add rbp, 0x28
cmp r13, r14
jne 0x140127cbd
lea rdx, [rsp + 0x68]
mov qword [rdx], rbx
mov qword [rdx + 8], r12
mov qword [rdx + 0x10], r12
mov rax, qword [rdi]
mov rax, qword [rax + 0x28]
mov rcx, rdi
call qword [case.0x1401e7f70.0]
mov rsi, qword [rsp + 0x48]
mov qword [rsi], rdi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14017e7b0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov word [rax + 4], si
jmp 0x140127b1a
mov qword [rsp + 0x90], 0
test r13d, r13d
je 0x140127ef5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rax, qword [rsp + 0x90]
inc rax
cmp rax, 2
jae 0x140127f85
lea rax, [r13 + 1]
cmp rax, 2
jb 0x140127eef
mov qword [rsp + 0x90], r13
mov r13d, ecx
call fcn.140105b90
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r13, [rsp + 0x98]
mov rcx, r13
lea rdx, [rsp + 0x90]
call fcn.140019a50
mov qword [rsp + 0xa8], 0xffffffffffffffff
lea rcx, [rsp + 0xb0]
mov rdx, r13
call fcn.1401246e0
mov qword [rsp + 0xc0], 0
mov byte [rsp + 0xc8], 0
call rsi
test rax, rax
je 0x14012811b
mov rax, qword [rsp + 0xa0]
inc rax
cmp rax, 2
mov r13, qword [rsp + 0x50]
jb 0x140127d96
call fcn.140105b90
mov rcx, qword [rsp + 0xa0]
call fcn.1401651a0
mov qword [rsp + 0xa0], 0
jmp 0x140127d96
mov dword [rsp + 0x58], ecx
call fcn.140105b90
mov rdx, qword [rsp + 0x90]
cmp qword [0x1402a45d0], 0
je 0x140127feb
mov rcx, qword [0x1402a45d0]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x1401e7f70.0]
mov qword [rsp + 0x90], 0
mov ecx, dword [rsp + 0x58]
jmp 0x140127ed2
call fcn.140105b90
mov rcx, qword [rsp + 0x88]
call fcn.1401651a0
mov qword [rsp + 0x88], 0
jmp 0x140127d96
mov qword [rsp + 0x40], rdx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14027d081]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14012811e
lea rcx, [sym.Maxthon.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14012803f
call qword [case.0x1401e7f70.0]
mov rcx, rax
xor edx, edx
call fcn.140005a10
mov r15, qword [rsp + 0x160]
mov rdx, qword [rsp + 0x40]
jmp 0x140127fa0
xor ecx, ecx
mov dl, 1
jmp 0x140128028
mov rsi, qword [rsp + 0x48]
mov qword [rsi], 0
jmp 0x140127e6c
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1401bdbc0
int3
int3
mov rax, qword [rsp + 0x48]
mov qword [rax], 0
test rbx, rbx
jne 0x140128125
test rdi, rdi
mov rsi, qword [rsp + 0x48]
je 0x140127e6c
mov rax, qword [rdi]
mov rax, qword [rax]
mov rcx, rdi
mov edx, 1
call qword [case.0x1401e7f70.0]
jmp 0x140127e6c
add r8, 0xfffffffffffffff8
lea r14, [rdx + 8]
xor r12d, r12d
jmp 0x1401279dd
int3
add r15, 8
jmp 0x140127bb1
mov rax, qword [rsp + 0x60]
movzx esi, word [rax]
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
mov rcx, rdi
call qword [case.0x1401e7f70.0]
mov word [rax + 4], si
jmp 0x140127c42
xor r12d, r12d
xor ebx, ebx
jmp 0x140127e44
mov rcx, rbx
mov rdx, r13
call fcn.140180220
jmp 0x140127c26
int3
xor ecx, ecx
jmp 0x140128026
neg qword [rsp + 0x38]
mov rax, qword [rsp + 0x50]
lea rax, [rax + rax*4]
lea rsi, [rbx + rax*8]
add rsi, 0xffffffffffffffd8
mov rcx, rsi
call fcn.1401247d0
add rsi, 0xffffffffffffffd8
add qword [rsp + 0x38], 0x28
jne 0x14012813b
mov rcx, rbx
call fcn.14017b254
jmp 0x14012809d