Function at 0x14004b790
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov edi, r9d
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp dword [rcx + 0x10], 0
mov rcx, qword [rcx]
je 0x14004bbdf
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r8, [rsp + 0x40]
mov dword [r8], 0
lea r15, [rsp + 0x48]
mov qword [r15], rax
mov qword [rsp + 0x20], r15
lea rdx, str.DNASYXOB
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebp, 0x42
test eax, eax
je 0x14004bb8d
cmp qword [rsp + 0x48], 4
jne 0x14004bbf9
mov eax, dword [rsp + 0x40]
cmp eax, dword [str.DNASYXOB]
jne 0x14004bc00
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r15
lea rdx, [0x1402ab298]
lea r8, [rsp + 0x40]
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14004bb8d
cmp qword [rsp + 0x48], 4
mov ebp, 0x43
jne 0x14004bb8d
mov eax, dword [rsp + 0x40]
mov ebp, 0x44
cmp eax, dword [0x1402ab298]
jne 0x14004bb8d
cmp byte [r14], 0
mov eax, edi
je 0x14004b883
mov eax, dword [r14 + 8]
add eax, edi
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r15, rax
cmp qword [rsi + 0x28], rax
je 0x14004b8eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jae 0x14004bbad
mov rax, r15
inc rax
cmp rax, 2
jb 0x14004b8df
mov qword [rsi + 0x28], r15
call fcn.1400e8860
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15, qword [rsi + 0x28]
mov r12, qword [rsp + 0xc0]
lea rax, [r15 + 1]
cmp rax, 1
jbe 0x14004bc07
mov qword [rsp + 0x20], 0
mov rcx, r15
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x14004bc1b
mov r15, rax
cmp byte [r14], 0
mov ebp, edi
je 0x14004b9b0
mov r8, qword [r14 + 8]
test r8, r8
je 0x14004b9b0
lea r12, [r15 + rbp]
mov r13, qword [r14 + 0x10]
mov rcx, r12
mov rdx, r13
call fcn.140188f50
xor eax, eax
pxor xmm0, xmm0
pcmpeqd xmm1, xmm1
movdqu xmm2, xmmword [r12 + rax*8]
movdqa xmm4, xmm2
pcmpeqd xmm4, xmm0
pshufd xmm3, xmm4, 0xb1
pand xmm3, xmm4
movd ecx, xmm3
not ecx
test cl, 1
je 0x14004b986
movq rcx, xmm2
sub rcx, r13
mov qword [r12 + rax*8], rcx
pxor xmm3, xmm1
pextrw ecx, xmm3, 4
test cl, 1
je 0x14004b9a6
pshufd xmm2, xmm2, 0xee
movq rcx, xmm2
sub rcx, r13
mov qword [r12 + rax*8 + 8], rcx
add rax, 2
cmp rax, 0x40
jne 0x14004b958
mov qword [0x1402b6e28], rbp
cmp dword [rsi + 0x10], 0
mov rcx, qword [rsi]
je 0x14004bc35
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x48]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x20], r12
lea rdx, [0x1402b6e28]
mov r9d, 8
mov r8, rdx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14004bc5e
cmp qword [rsp + 0x48], 8
mov qword [0x1402b6e28], 0
jne 0x14004bbc8
cmp byte [r14], 0
je 0x14004ba6f
mov rax, qword [r14 + 8]
mov qword [0x1402b6e30], rax
cmp dword [rsi + 0x10], 0
mov rcx, qword [rsi]
je 0x14004bce9
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x20], r12
lea rdx, [0x1402b6e30]
mov r9d, 8
mov r8, rdx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14004bd0e
cmp qword [rsp + 0x48], 8
mov qword [0x1402b6e30], 0
jne 0x14004bbc8
mov ebp, dword [rsi + 0x10]
mov r12, qword [rsi]
mov ecx, 0x40
call fcn.140184834
mov r14, rax
mov r9, qword [rsi + 0x38]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, r12
mov r8d, ebp
call fcn.14004bd70
mov rbx, qword [rsi + 0x30]
mov qword [rsi + 0x30], r14
test rbx, rbx
jne 0x14004bc73
mov rcx, r14
mov rdx, r15
mov r8d, edi
mov r9d, 0x400
call fcn.14004be20
test al, al
je 0x14004bc8c
lea rdi, [rsp + 0x40]
mov qword [rdi], r13
mov rbx, qword [rsi]
mov r14, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 7
mov rcx, rax
mov rdx, r14
mov r8, rbx
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
lea rdx, [rsp + 0x48]
je 0x14004bc96
mov rax, qword [rsp + 0x40]
mov qword [0x1402b6aa8], rax
cmp dword [rsi + 0x10], 0
mov rcx, qword [rsi]
je 0x14004bcb0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x20], rdx
lea rdx, [0x1402b6aa8]
mov r9d, 8
mov r8, rdx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14004bcd4
cmp qword [rsp + 0x48], 8
mov qword [0x1402b6aa8], 0
jne 0x14004bbc8
mov dword [rsi + 0x14], 0
mov rdi, qword [rsi + 8]
mov qword [rsi + 8], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14004bb82
call fcn.1400e8860
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401874c0
mov eax, ebp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400e8860
mov rcx, qword [rsi + 0x28]
call fcn.140165880
mov qword [rsi + 0x28], 0
jmp 0x14004b8ca
mov ebp, 0x3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc0]
mov dword [rcx], eax
jmp 0x14004bb8d
test rcx, rcx
jne 0x14004b7c8
cmp dword [rsi + 0x14], 0
je 0x14004bd23
xor ecx, ecx
jmp 0x14004b7c8
mov ebp, 0x43
jmp 0x14004bb8d
mov ebp, 0x44
jmp 0x14004bb8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov ebp, 0x19
jmp 0x14004bb8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc0]
mov dword [rcx], eax
mov ebp, 0x1b
jmp 0x14004bb8d
test rcx, rcx
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x48]
jne 0x14004b9d3
cmp dword [rsi + 0x14], 0
je 0x14004bd38
xor ecx, ecx
jmp 0x14004b9d3
mov ebp, 0x39
mov qword [0x1402b6e28], 0
jmp 0x14004bbcd
mov rcx, rbx
call fcn.140076850
mov rcx, rbx
call fcn.14018482c
mov r14, qword [rsi + 0x30]
jmp 0x14004baaa
mov ebp, 4
jmp 0x14004bb8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc0]
mov dword [rcx], eax
mov ebp, 0x1a
jmp 0x14004bb8d
test rcx, rcx
jne 0x14004bb25
cmp dword [rsi + 0x14], 0
je 0x14004bd4d
xor ecx, ecx
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x14004bb25
mov ebp, 0x39
mov qword [0x1402b6aa8], 0
jmp 0x14004bbcd
test rcx, rcx
jne 0x14004ba30
cmp dword [rsi + 0x14], 0
je 0x14004bd62
xor ecx, ecx
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x48]
jmp 0x14004ba30
mov ebp, 0x39
mov qword [0x1402b6e30], 0
jmp 0x14004bbcd
mov ebp, 8
cmp qword [rsi + 8], 0
je 0x14004bb8d
jmp 0x14004bbf2
mov ebp, 8
cmp qword [rsi + 8], 0
jne 0x14004bc57
jmp 0x14004bc63
mov ebp, 8
cmp qword [rsi + 8], 0
jne 0x14004bcc3
jmp 0x14004bcd9
mov ebp, 8
cmp qword [rsi + 8], 0
jne 0x14004bcf8
jmp 0x14004bd13