Function at 0x100049700
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x78], 0xffffffffffffffff
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0xc0]
call fcn.100013bb0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 7
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0xffffffffffffffff
jne 0x1000497b3
jmp 0x100049a70
mov rcx, qword [rsp + 0xc8]
call fcn.100013bb0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 7
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0xffffffffffffffff
jne 0x100049802
jmp 0x100049a70
lea rdx, [rsp + 0x94]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0xffffffff
jne 0x100049835
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100049835
jmp 0x100049a70
lea rdx, [rsp + 0x64]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0xffffffff
jne 0x10004985f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10004985f
jmp 0x100049a70
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x90], rax
je 0x100049873
jmp 0x100049a70
cmp qword [rsp + 0x90], 0
jne 0x10004988e
mov dword [rsp + 0x80], 1
jmp 0x100049a70
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x94]
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x1000498d5
jmp 0x100049a70
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x94]
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x100049916
jmp 0x100049a70
cmp qword [rsp + 0x90], 0x1000000
jbe 0x100049932
mov qword [rsp + 0x88], 0x1000000
jmp 0x100049942
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
sub rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0x88]
jae 0x100049982
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
jmp 0x10004998f
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
mov edx, 4
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1000499c8
jmp 0x100049a70
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
mov edx, 4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1000499fb
jmp 0x100049a70
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x100049a15
jmp 0x100049a70
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x40], rax
jb 0x10004994b
mov dword [rsp + 0x80], 1
cmp qword [rsp + 0x50], 0
je 0x100049a83
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rsp + 0x58], 0
je 0x100049a96
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rsp + 0x98], 0
je 0x100049aaf
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x48], 0
je 0x100049ac2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x100049ad5
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x78], 0xffffffffffffffff
je 0x100049ae8
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x80]
add rsp, 0xb8
ret