Function at 0x180042f90
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov qword [rbp + 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x220], rbx
mov rax, qword [0x1802247b8]
xor rax, rsp
mov qword [rbp + 0xc8], rax
mov r14, rdx
mov r13, rcx
mov rcx, qword [rdx]
test rcx, rcx
je 0x180043474
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x180043474
lea rdx, [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x180043010
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180043474
mov edi, dword [rbp + 0xa8]
shl rdi, 0x20
add rdi, rbx
mov rcx, r14
call fcn.18004f9b0
test al, al
je 0x180043474
call fcn.180042e70
mov rsi, rax
cmp rdi, rax
jb 0x180043474
xor eax, eax
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc0], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xb0], xmm0
xor r12d, r12d
mov qword [rbp + 0xc0], r12
mov byte [rsp + 0x30], r12b
lea r8, [rsp + 0x30]
mov rdx, rsi
lea rcx, [rbp + 0xb0]
call fcn.180047970
mov dword [rbp + 0x88], r12d
mov rcx, qword [r14]
mov r15, qword [rbp + 0xb0]
test rcx, rcx
je 0x18004344e
test r15, r15
je 0x18004344e
cmp qword [rcx], 0xffffffffffffffff
je 0x18004344e
mov dword [rbp + 0x88], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x88]
mov r8d, esi
mov rdx, r15
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004344e
mov eax, dword [rbp + 0x88]
cmp rax, rsi
jne 0x18004344e
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r12
mov dword [rbp - 0x78], 0xffffffff
mov qword [rbp + 0xa8], r12
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0xb0]
call fcn.180042a30
test al, al
jne 0x18004313d
xor bl, bl
jmp 0x180043442
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r12
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r12
mov dword [rbp - 0x28], 0xffffffff
lea rcx, [rbp - 0x70]
call fcn.180040be0
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
sub r8, rcx
mov rax, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x70]
sub rax, rdx
cmp r8, rax
jne 0x180043195
call fcn.1801465f0
test eax, eax
je 0x180043258
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x48], r12
movdqa xmmword [rbp + 0x50], xmm0
movdqa xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r12
mov dword [rbp + 0x78], 0xffffffff
lea rcx, [rbp + 0x30]
call fcn.180041060
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
sub r8, rcx
mov rax, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub rax, rdx
cmp r8, rax
jne 0x1800431e9
call fcn.1801465f0
test eax, eax
je 0x18004324f
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r12
movdqa xmmword [rbp], xmm0
movdqa xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r12
mov dword [rbp + 0x28], 0xffffffff
lea rcx, [rbp - 0x20]
call fcn.1800414e0
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
sub r8, rcx
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x20]
sub rax, rdx
cmp r8, rax
jne 0x180043423
call fcn.1801465f0
test eax, eax
jne 0x180043423
lea rcx, [rbp - 0x20]
call fcn.180044bc0
nop
lea rcx, [rbp + 0x30]
call fcn.180044bc0
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
sub r8, rcx
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x40]
sub rax, rdx
cmp r8, rax
jne 0x180043436
call fcn.1801465f0
test eax, eax
jne 0x180043436
mov eax, dword [rbp - 0x28]
cmp dword [rbp - 0x78], eax
jne 0x180043436
lea rbx, [r13 + 0x38]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.180047750
lea rcx, [rbx + 0x18]
lea rdx, [rsp + 0x58]
call fcn.180047750
lea rcx, [rbx + 0x30]
lea rdx, [rsp + 0x70]
call fcn.180047750
mov eax, dword [rbp - 0x78]
mov dword [rbx + 0x48], eax
cmp rdi, rsi
jne 0x1800432d1
mov bl, 1
jmp 0x180043438
mov dword [rbp + 0x8c], r12d
mov rcx, qword [r14]
test rcx, rcx
je 0x180043436
cmp qword [rcx], 0xffffffffffffffff
je 0x180043436
mov dword [rbp + 0x88], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x88]
mov r8d, 4
lea rdx, [rbp + 0x8c]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180043436
cmp dword [rbp + 0x88], 4
jne 0x180043436
mov ebx, dword [rbp + 0x8c]
sub rdi, rsi
cmp rbx, rdi
ja 0x180043436
xor eax, eax
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rax
mov qword [rbp + 0xa0], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], r12
mov byte [rsp + 0x30], al
lea r8, [rsp + 0x30]
mov edx, ebx
lea rcx, [rbp + 0x90]
call fcn.180047970
mov rcx, qword [r14]
test rcx, rcx
je 0x1800433f9
mov rdi, qword [rbp + 0x90]
test rdi, rdi
je 0x180043400
cmp qword [rcx], 0xffffffffffffffff
je 0x180043400
mov dword [rbp + 0x88], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x88]
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180043400
mov eax, dword [rbp + 0x88]
cmp rax, rbx
jne 0x180043400
lea r8, [rbp + 0x90]
lea rdx, [rsp + 0x40]
call fcn.1800434a0
test al, al
je 0x1800433f9
lea rdx, [rbp + 0x90]
mov rcx, r13
call fcn.180043960
movzx ebx, al
mov rdi, qword [rbp + 0x90]
jmp 0x180043402
mov rdi, qword [rbp + 0x90]
xor bl, bl
test rdi, rdi
je 0x180043438
mov rcx, rdi
call fcn.180139b7c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], r12
jmp 0x180043438
lea rcx, [rbp - 0x20]
call fcn.180044bc0
nop
lea rcx, [rbp + 0x30]
call fcn.180044bc0
xor bl, bl
lea rcx, [rbp - 0x70]
call fcn.180044bc0
nop
lea rcx, [rsp + 0x40]
call fcn.180044bc0
jmp 0x180043450
xor bl, bl
test r15, r15
je 0x18004346f
mov rcx, r15
call fcn.180139b7c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], r12
movzx eax, bl
jmp 0x180043476
xor al, al
mov rcx, qword [rbp + 0xc8]
xor rcx, rsp
call fcn.180139310
mov rbx, qword [rsp + 0x220]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret