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

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0xa0
mov qword [rax - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov ebx, 2
call fcn.1400278f0
nop
mov rsi, qword [r15 + 8]
test rsi, rsi
je 0x14002b0a5
xor r14d, r14d
jmp 0x14002b0df
mov ecx, 0x18
call fcn.14005f120
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14002b0d9
mov r9d, 0x14
xor r8d, r8d
lea rdx, [0x140105e08]
mov rcx, rax
call fcn.140027300
mov rsi, rax
xor r14d, r14d
jmp 0x14002b0df
xor r14d, r14d
mov esi, r14d
xor edx, edx
mov rcx, qword [rdi + 0x358]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x14002b3ef
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x358]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x34], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x38]
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x358]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x14002b3e6
cmp dword [rsp + 0x38], 0xc
jne 0x14002b3e6
cmp dword [rsp + 0x54], 0xff231ac2
jne 0x14002b3e6
cmp dword [rsp + 0x58], 0x60000
jne 0x14002b1fd
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x358]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x38]
mov r8d, 0x1d0
lea rdx, [rdi + 0x168]
mov rcx, qword [rdi + 0x358]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002b3e6
cmp dword [rsp + 0x38], 0x1d0
jne 0x14002b3e6
cmp dword [rdi + 0x16c], 0xff231ac2
jne 0x14002b3e6
cmp dword [rdi + 0x170], 0x60000
jne 0x14002b3e6
lea rdx, [rdi + 0x16c]
mov r8d, 0x1cc
or ecx, 0xffffffff
call fcn.14003a4d0
cmp dword [rdi + 0x168], eax
jne 0x14002b3e6
mov dword [rsp + 0x34], 1
jmp 0x14002b236
cmp dword [rdi + 0x38], 0
je 0x14002b3ef
lea r8, [rdi + 0x168]
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x358]
call fcn.140032940
test eax, eax
je 0x14002b3e6
mov dword [rsp + 0x34], 1
mov dword [rdi + 0x34], 1
mov byte [rsp + 0x60], 0
xor eax, eax
mov qword [rsp + 0x61], rax
mov qword [rsp + 0x69], rax
mov word [rsp + 0x71], ax
mov byte [rsp + 0x73], al
mov ebx, dword [r15]
cmp ebx, 3
jle 0x14002b25e
mov ebx, dword [rdi + 0x248]
cmp dword [rdi + 0x248], ebx
jne 0x14002b3d6
xor edx, edx
mov rcx, rsi
call fcn.1400294f0
test rax, rax
jne 0x14002b2a1
mov rcx, rsi
call fcn.140029510
mov rcx, rax
lea rdx, [rsp + 0x78]
call fcn.1400281c0
mov r8d, 0x14
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.14002b490
mov r8d, dword [rdi + 0x248]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140028340
test ebx, ebx
jne 0x14002b2c6
mov rdx, rsi
mov rcx, rdi
call fcn.14002a1f0
jmp 0x14002b30b
mov ecx, dword [rdi + 0x248]
call fcn.140028160
mov qword [rdi + 0x368], rax
test rax, rax
je 0x14002b3c6
mov rcx, rsi
call fcn.140023b40
mov rbx, rax
xor edx, edx
mov rcx, rsi
call fcn.1400294f0
mov rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, qword [rdi + 0x368]
call fcn.140042b30
mov rax, qword [rsp + 0x60]
cmp rax, qword [rdi + 0x224]
jne 0x14002b3b6
mov rax, qword [rsp + 0x68]
cmp rax, qword [rdi + 0x22c]
jne 0x14002b3b6
mov eax, dword [rsp + 0x70]
cmp eax, dword [rdi + 0x234]
jne 0x14002b3b6
mov ebx, r14d
mov dword [rsp + 0x30], ebx
mov eax, dword [rdi + 0x178]
mov dword [rdi + 0x338], eax
mov eax, dword [rdi + 0x238]
mov qword [rdi + 0x340], rax
mov eax, dword [rdi + 0x23c]
mov qword [rdi + 0x348], rax
mov eax, dword [rdi + 0x220]
mov dword [rdi + 0x354], eax
mov rcx, qword [rdi + 0x360]
test rcx, rcx
je 0x14002b391
mov edx, 0x5c
call fcn.14005f164
mov qword [rdi + 0x360], r14
mov rcx, rdi
call fcn.14002a930
mov qword [rdi + 0x360], rax
test rax, rax
je 0x14002b3af
mov rcx, rdi
call fcn.140027820
jmp 0x14002b3ef
mov ebx, 7
jmp 0x14002b3eb
mov ebx, 3
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], r14d
jmp 0x14002b3ef
mov ebx, 9
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], r14d
jmp 0x14002b3ef
mov ebx, 8
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], r14d
jmp 0x14002b3ef
mov ebx, 5
mov dword [rsp + 0x30], ebx
test rsi, rsi
je 0x14002b410
cmp rsi, qword [r15 + 8]
je 0x14002b410
mov rcx, rsi
call fcn.140027500
mov edx, 0x18
mov rcx, rsi
call fcn.14005f164
nop
jmp 0x14002b41b
mov rcx, rdi
call fcn.14002b470
mov eax, ebx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14005f0d0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret