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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xe0
mov qword [rbp - 9], 0xfffffffffffffffe
mov rax, qword [0x180067008]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rbp + 0x7f]
xor r12d, r12d
mov qword [rbp + 7], r12
mov qword [rbp + 0xf], r12
call fcn.18000f420
mov qword [rbp + 7], rax
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.180032070
nop
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.1800320c0
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.18000c550
nop
lea rcx, [rbp - 0x79]
call fcn.180001e50
lea rcx, [rbp + 7]
call fcn.18000cb50
mov ebx, eax
test eax, eax
jne 0x18003256c
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
cmp rcx, rax
je 0x180032400
sub rax, rcx
mov dword [rbp - 0x19], eax
mov qword [rbp - 0x41], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x49], r12
mov byte [rbp - 0x59], bl
lea r8d, [r12 + 1]
lea rdx, [0x180059f18]
lea rcx, [rbp - 0x59]
call fcn.1800020b0
nop
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.180031670
mov rbx, rax
mov rdx, r15
lea rcx, [rbp - 0x39]
call fcn.180031670
nop
lea rcx, [rbp - 0x19]
mov qword [rsp + 0x20], rcx
mov r9, qword [rdi]
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.18000d8c0
mov ebx, eax
mov rax, qword [rbp - 0x21]
cmp rax, 0x10
jb 0x180032329
inc rax
mov rcx, qword [rbp - 0x39]
cmp rax, 0x1000
jb 0x180032324
test cl, 0x1f
je 0x1800322f7
call fcn.18003835c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180032306
call fcn.18003835c
int3
sub rcx, rax
cmp rcx, 8
jae 0x180032315
call fcn.18003835c
int3
cmp rcx, 0x27
jbe 0x180032321
call fcn.18003835c
int3
mov rcx, rax
call fcn.180033ed0
mov qword [rbp - 0x21], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x29], r12
mov byte [rbp - 0x39], 0
mov rax, qword [rbp - 0x69]
cmp rax, 0x10
jb 0x180032390
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x18003238b
test cl, 0x1f
je 0x18003235e
call fcn.18003835c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18003236d
call fcn.18003835c
int3
sub rcx, rax
cmp rcx, 8
jae 0x18003237c
call fcn.18003835c
int3
cmp rcx, 0x27
jbe 0x180032388
call fcn.18003835c
int3
mov rcx, rax
call fcn.180033ed0
mov qword [rbp - 0x69], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x71], r12
mov byte [rsp + 0x40], 0
mov rax, qword [rbp - 0x41]
cmp rax, 0x10
jb 0x18003256c
inc rax
mov rcx, qword [rbp - 0x59]
cmp rax, 0x1000
jb 0x1800323f6
test cl, 0x1f
je 0x1800323c9
call fcn.18003835c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800323d8
call fcn.18003835c
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800323e7
call fcn.18003835c
int3
cmp rcx, 0x27
jbe 0x1800323f3
call fcn.18003835c
int3
mov rcx, rax
call fcn.180033ed0
jmp 0x18003256c
cmp qword [rsi + 0x18], 8
jb 0x18003240c
mov rcx, qword [rsi]
jmp 0x18003240f
mov rcx, rsi
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180032449
mov ebx, 0xfffffffe
jmp 0x18003256c
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp - 1], eax
mov rdi, r12
cmp eax, 0x200000
ja 0x180032484
mov ecx, eax
call fcn.180033ee0
mov rdi, rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 1]
mov r8d, dword [rbp - 1]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x69], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x71], r12
mov byte [rsp + 0x40], 0
mov r8d, 1
lea rdx, [0x180059f18]
lea rcx, [rsp + 0x40]
call fcn.1800020b0
test rdi, rdi
je 0x18003251c
mov rdx, r14
lea rcx, [rbp - 0x59]
call fcn.180031670
mov rbx, rax
mov rdx, r15
lea rcx, [rbp - 0x39]
call fcn.180031670
nop
lea rcx, [rbp - 1]
mov qword [rsp + 0x20], rcx
mov r9, rdi
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.18000d8c0
mov ebx, eax
lea rcx, [rbp - 0x39]
call fcn.180001e50
nop
lea rcx, [rbp - 0x59]
call fcn.180001e50
nop
lea rcx, [rsp + 0x40]
call fcn.180001e50
mov rcx, rdi
call fcn.180033ed8
jmp 0x18003256c
mov rdx, r14
lea rcx, [rbp - 0x59]
call fcn.180031670
mov rbx, rax
mov rdx, r15
lea rcx, [rbp - 0x39]
call fcn.180031670
nop
mov r9, rsi
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.18000d5c0
mov ebx, eax
lea rcx, [rbp - 0x39]
call fcn.180001e50
nop
lea rcx, [rbp - 0x59]
call fcn.180001e50
nop
lea rcx, [rsp + 0x40]
call fcn.180001e50
nop
mov r8, qword [rbp + 7]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.18000e170
mov rcx, qword [rbp + 7]
call fcn.180033ed0
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.180033e70
add rsp, 0xe0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret