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

Disassembly:
push rbp
sub rsp, 0x2a0
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0x2b0], rcx
mov qword [rbp + 0x2b8], rdx
mov qword [rbp + 0x2c0], r8
nop
mov byte [rbp + 0x28f], 0
mov rcx, qword [rbp + 0x2c0]
call fcn.004104c0
mov dword [rbp + 0x288], 0
mov rcx, qword [rbp + 0x2b8]
lea rdx, [rbp + 0x288]
call sub.KERNEL32.DLL_GetFileSize
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0
jne 0x4369e4
cmp dword [rbp + 0x288], 0
jne 0x4369e4
mov ecx, 6
xor edx, edx
call fcn.00444980
test al, al
je 0x4369e4
mov rcx, qword [rbp + 0x2b8]
lea rdx, [rbp + 0x78]
mov r8d, 0x104
mov r9d, 2
call sub.kernel32.dll_GetFinalPathNameByHandleW
mov dword [rbp + 0x74], eax
cmp dword [rbp + 0x74], 0
jbe 0x4369e4
cmp dword [rbp + 0x74], 0x104
jae 0x436978
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x78]
mov r8d, 0x106
call fcn.004119b0
mov rcx, rbp
lea rdx, [rbp + 0x60]
mov r8, qword [rbp + 0x58]
call fcn.004365b0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x60]
call fcn.00410b30
jmp 0x4369d8
mov rcx, qword [rbp + 0x2c0]
mov edx, dword [rbp + 0x74]
sub edx, 1
call fcn.00411b60
mov rax, qword [rbp + 0x2c0]
mov rcx, qword [rax]
call fcn.004118c0
mov rcx, qword [rbp + 0x2b8]
mov rdx, rax
mov r8d, dword [rbp + 0x74]
mov r9d, 2
call sub.kernel32.dll_GetFinalPathNameByHandleW
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov rax, qword [rbp + 0x2c0]
mov r8, qword [rax]
call fcn.004365b0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x50]
call fcn.00410b30
mov byte [rbp + 0x28f], 1
jmp 0x436b4a
cmp dword [rbp + 0x284], 0
jne 0x4369fa
cmp dword [rbp + 0x288], 0
je 0x436ae3
mov rcx, qword [rbp + 0x2b8]
xor edx, edx
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x28], 0
call sub.KERNEL32.DLL_CreateFileMappingW
mov qword [rbp + 0x290], rax
cmp qword [rbp + 0x290], 0x3ee
je 0x436ae3
nop
mov rcx, qword [rbp + 0x290]
mov edx, 4
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 1
call sub.KERNEL32.DLL_MapViewOfFile
mov qword [rbp + 0x298], rax
cmp qword [rbp + 0x298], 0
je 0x436ad6
nop
call sub.KERNEL32.DLL_GetCurrentProcess
mov rcx, rax
mov rdx, qword [rbp + 0x298]
lea r8, [rbp + 0x78]
mov r9d, 0x104
call fcn.00424900
test eax, eax
jbe 0x436ac9
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x78]
mov r8d, 0x106
call fcn.004119b0
mov rcx, rbp
lea rdx, [rbp + 0x48]
mov r8, qword [rbp + 0x40]
call fcn.004365b0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x48]
call fcn.00410b30
mov byte [rbp + 0x28f], 1
nop
mov rcx, qword [rbp + 0x298]
call sub.KERNEL32.DLL_UnmapViewOfFile
nop
mov rcx, qword [rbp + 0x290]
call sub.KERNEL32.DLL_CloseHandle
cmp byte [rbp + 0x28f], 0
jne 0x436b49
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8, qword [rbp + 0x2b8]
call fcn.00436710
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x38]
call fcn.00410b30
mov rax, qword [rbp + 0x2c0]
cmp qword [rax], 0
je 0x436b49
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov rax, qword [rbp + 0x2c0]
mov r8, qword [rax]
call fcn.004365b0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x30]
call fcn.00410b30
mov byte [rbp + 0x28f], 1
nop
lea rcx, [rbp + 0x30]
mov edx, 7
call fcn.004105a0
movzx rax, byte [rbp + 0x28f]
lea rsp, [rbp + 0x2a0]
pop rbp
ret