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

Disassembly:
sub rsp, 0x198
mov rax, rdx
mov r9, rdx
mov qword [rsp + 0x190], r9
mov qword [rsp + 0x188], r8
mov qword [rsp + 0x180], rcx
mov byte [rsp + 0x17f], 0
mov rcx, rdx
lea r8, [0x1401193e0]
mov qword [rsp + 0xa8], rdx
mov rdx, r8
mov qword [rsp + 0xa0], rax
call fcn.140006090
mov qword [rsp + 0x170], 0
mov qword [rsp + 0x168], 0
mov dword [rsp + 0x164], 0
mov dword [rsp + 0x160], 0
mov qword [rsp + 0x158], 0
mov qword [rsp + 0x150], 0
mov qword [rsp + 0x148], 0
mov rcx, qword [rsp + 0x188]
mov qword [rsp + 0x98], rax
call fcn.140016d40
test al, 1
jne 0x14002af43
jmp 0x14002af9f
lea rcx, [rsp + 0x128]
lea rdx, [0x14011dd87]
mov r8d, 0x3c
call fcn.14002f4b0
mov rcx, qword [rsp + 0xa8]
lea rdx, [rsp + 0x128]
call fcn.140023780
lea rcx, [rsp + 0x128]
mov qword [rsp + 0x90], rax
call fcn.140001770
mov byte [rsp + 0x17f], 1
mov dword [rsp + 0x124], 1
jmp 0x14002b3b5
mov ecx, 0x40
mov edx, 0x2000
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x168], rax
cmp rax, 0
jne 0x14002afc6
jmp 0x14002b365
mov rcx, qword [rsp + 0x188]
call fcn.1400073b0
xor edx, edx
xor r8d, r8d
mov ecx, r8d
mov r8d, 0xfde9
mov qword [rsp + 0x88], rcx
mov ecx, r8d
mov r8, rax
mov r9d, 0xffffffff
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x164], eax
cmp dword [rsp + 0x164], 0
jne 0x14002b026
jmp 0x14002b365
mov eax, dword [rsp + 0x164]
add eax, 1
movsxd rcx, eax
shl rcx, 1
mov dword [rsp + 0x160], ecx
mov eax, dword [rsp + 0x160]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x170], rax
cmp rax, 0
jne 0x14002b069
jmp 0x14002b365
xor edx, edx
mov rax, qword [rsp + 0x170]
mov ecx, dword [rsp + 0x160]
mov r8d, ecx
mov rcx, rax
call fcn.1400a9170
mov edx, dword [rsp + 0x164]
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x188]
mov dword [rsp + 0x84], edx
mov qword [rsp + 0x78], rax
call fcn.1400073b0
xor edx, edx
mov ecx, 0xfde9
mov r8, rax
mov r9d, 0xffffffff
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r10d, dword [rsp + 0x84]
mov dword [rsp + 0x28], r10d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov r9d, ecx
xor ecx, ecx
mov qword [rsp + 0x118], 0xffffffffffffffff
mov r8, qword [rsp + 0x170]
mov dword [rsp + 0x74], ecx
mov rcx, r8
mov edx, 0x80000000
mov r8d, 3
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x158], rax
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x158], rax
jne 0x14002b18d
lea rcx, [rsp + 0xf8]
lea rdx, [0x14011ddc4]
mov r8d, 0x42
call fcn.14002f4b0
mov rcx, qword [rsp + 0xa8]
lea rdx, [rsp + 0xf8]
call fcn.140023780
lea rcx, [rsp + 0xf8]
mov qword [rsp + 0x68], rax
call fcn.140001770
jmp 0x14002b365
mov dword [rsp + 0x11c], 0
lea rax, [rsp + 0x118]
add rax, 4
mov rcx, qword [rsp + 0x158]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x118], eax
mov rcx, qword [rsp + 0x118]
mov qword [rsp + 0x150], rcx
mov qword [rsp + 0x148], 0
mov rax, qword [rsp + 0x148]
cmp rax, qword [rsp + 0x118]
jae 0x14002b300
mov dword [rsp + 0xf4], 0
mov rax, qword [rsp + 0x118]
sub rax, qword [rsp + 0x148]
mov ecx, 0x2000
cmp ecx, eax
jae 0x14002b226
mov eax, 0x2000
mov dword [rsp + 0x64], eax
jmp 0x14002b23a
mov rax, qword [rsp + 0x118]
sub rax, qword [rsp + 0x148]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
xor ecx, ecx
mov edx, ecx
mov r8, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x158]
mov qword [rsp + 0x58], rdx
mov rdx, r8
mov r8d, eax
lea r9, [rsp + 0xf4]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0
jne 0x14002b282
jmp 0x14002b300
cmp dword [rsp + 0xf4], 0
jne 0x14002b295
jmp 0x14002b300
mov eax, dword [rsp + 0xf4]
mov r8d, eax
mov rdx, qword [rsp + 0x168]
lea rcx, [rsp + 0xd0]
call fcn.140025fc0
mov rcx, qword [rsp + 0xa8]
lea rdx, [rsp + 0xd0]
mov qword [rsp + 0x50], rax
call fcn.140023780
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x48], rax
call fcn.140001770
mov r9d, dword [rsp + 0xf4]
mov eax, r9d
add rax, qword [rsp + 0x148]
mov qword [rsp + 0x148], rax
jmp 0x14002b1da
mov rax, qword [rsp + 0x148]
cmp rax, qword [rsp + 0x118]
je 0x14002b357
lea rcx, [rsp + 0xb0]
lea rdx, [0x14011de07]
mov r8d, 0x43
call fcn.14002f4b0
mov rcx, qword [rsp + 0xa8]
lea rdx, [rsp + 0xb0]
call fcn.140015f40
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
call fcn.140001770
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x170], 0
je 0x14002b385
mov rax, qword [rsp + 0x170]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rsp + 0x168], 0
je 0x14002b3a2
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [rsp + 0x17f], 1
mov dword [rsp + 0x124], 1
test byte [rsp + 0x17f], 1
jne 0x14002b3d0
mov rcx, qword [rsp + 0xa8]
call fcn.140001770
mov rax, qword [rsp + 0xa0]
add rsp, 0x198
ret