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

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x2d0]
sub rsp, 0x3d0
mov rax, qword [0x180056040]
xor rax, rsp
mov qword [rbp + 0x2c8], rax
xor r14d, r14d
lea rcx, str.Pipsi_HI3.cfg
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1800043ba
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x378
jne 0x1800043b1
mov qword [rsp + 0x3e0], rbx
lea r9, [rbp + 0x2c0]
lea rbx, [0x1800560b0]
mov qword [rsp + 0x3e8], rdi
mov rdx, rbx
mov qword [rsp + 0x20], r14
mov r8d, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x2c0], 0x378
lea edi, [r14 + 6]
je 0x180004241
xor edx, edx
mov byte [rsp + 0x40], r14b
mov r8d, 0x320
mov qword [rsp + 0x44], 0x2d
lea rcx, [rbp - 0x70]
mov byte [rsp + 0x4c], r14b
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x54], 0x41700000
mov word [rsp + 0x58], r14w
mov dword [rsp + 0x5c], 0xa
mov dword [rsp + 0x60], 1
mov word [rsp + 0x64], r14w
mov byte [rsp + 0x66], r14b
mov dword [rsp + 0x68], 0x42c80000
mov qword [rsp + 0x6c], 1
mov word [rsp + 0x74], r14w
mov dword [rsp + 0x78], 0x40000000
mov byte [rsp + 0x7c], r14b
mov dword [rbp - 0x80], 0x40000000
mov byte [rbp - 0x7c], r14b
mov dword [rbp - 0x78], r14d
mov word [rbp - 0x74], pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x70]
call fcn.180004470
mov word [rbp + 0x2b0], pe_nt_image_headers64
lea rax, [rsp + 0x40]
mov byte [rbp + 0x2b2], r14b
mov rcx, rbx
mov dword [rbp + 0x2b4], 0x88009e17
mov edx, edi
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1800041b0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
mov rax, qword [rax + 0x70]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
mov qword [rcx + 0x70], rax
cmp dword [0x180056424], 0x88009e17
je 0x1800043a1
xor edx, edx
mov byte [rsp + 0x40], r14b
mov r8d, 0x320
mov qword [rsp + 0x44], 0x2d
lea rcx, [rbp - 0x70]
mov byte [rsp + 0x4c], r14b
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x54], 0x41700000
mov word [rsp + 0x58], r14w
mov dword [rsp + 0x5c], 0xa
mov dword [rsp + 0x60], 1
mov word [rsp + 0x64], r14w
mov byte [rsp + 0x66], r14b
mov dword [rsp + 0x68], 0x42c80000
mov qword [rsp + 0x6c], 1
mov word [rsp + 0x74], r14w
mov dword [rsp + 0x78], 0x40000000
mov byte [rsp + 0x7c], r14b
mov dword [rbp - 0x80], 0x40000000
mov byte [rbp - 0x7c], r14b
mov dword [rbp - 0x78], r14d
mov word [rbp - 0x74], pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x70]
call fcn.180004470
mov word [rbp + 0x2b0], pe_nt_image_headers64
lea rax, [rsp + 0x40]
mov byte [rbp + 0x2b2], r14b
mov dword [rbp + 0x2b4], 0x88009e17
nop dword [rax]
nop dword [rax + rax]
lea rbx, [rbx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rbx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rbx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rbx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rbx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rbx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rbx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rbx - 0x20], xmm0
movups xmmword [rbx - 0x10], xmm1
sub rdi, 1
jne 0x180004310
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rbx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rbx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rbx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
mov rax, qword [rax + 0x70]
movups xmmword [rbx + 0x50], xmm1
movups xmmword [rbx + 0x60], xmm0
mov qword [rbx + 0x70], rax
mov rbx, qword [rsp + 0x3e0]
mov rdi, qword [rsp + 0x3e8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x2c8]
xor rcx, rsp
call fcn.180046710
lea r11, [rsp + 0x3d0]
mov rsi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret