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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x588]
sub rsp, 0x688
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp + 0x578], rax
mov r13, r9
mov r12, r8
mov rax, rdx
cmp qword [rdx + 0x10], 0
jne 0x1400d88c2
xor edi, edi
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], 7
mov word [rbp - 8], di
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], di
mov ebx, 1
mov edx, ebx
lea rcx, [rbp + 0x40]
call fcn.140029460
nop
nop dword [rax]
nop dword [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], ebx
test eax, eax
je 0x1400d87ed
cmp eax, 1
jne 0x1400d880b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d87d0
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, ebx
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x138], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x138]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x138]
mov dword [rax + 0x10], 0x28
lea rbx, str.CPcFile::ReadFromFile
mov qword [rax + 0x18], rbx
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCSharedPcFile.cpp
mov qword [rax + 0x20], rdx
mov dword [rbp - 0x10], 0x28
mov r8d, 0x57
lea rcx, [rbp - 8]
call fcn.14002b640
mov dword [rbp + 0x38], 4
mov r8d, reloc.WS2_32.dll_setsockopt
mov rdx, rbx
lea rcx, [rbp + 0x18]
call fcn.14002b640
nop
lea rdx, str.Invalid_parameters.
lea rcx, [rsp + 0x70]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14002be60
nop
lea rcx, [rsp + 0x70]
call fcn.14002ce60
nop
lea rcx, [rbp - 0x10]
call fcn.140028cd0
mov eax, 0x57
jmp 0x1400d8ec0
lea rdx, vtable.CAutoHandle.0
mov qword [rsp + 0x40], rdx
lea r15, [rcx + 8]
mov qword [rsp + 0x48], r15
cmp qword [rax + 0x18], 8
jb 0x1400d88e1
mov rax, qword [rax]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r15], rax
cmp rax, 0xffffffffffffffff
jne 0x1400d8956
lea ecx, [rdi + 6]
call fcn.1400de610
test eax, eax
je 0x1400d8ab8
lea rax, str.Error:_File_not_found.
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 0x2f]
lea r8, str.CPcFile::ReadFromFile
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCSharedPcFile.cpp
lea ecx, [rdi + 6]
call fcn.140028a20
mov edi, 2
jmp 0x1400d8e9f
lea rdx, [rbp + 0x530]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400d8ac2
mov qword [rbp + 0x158], rdi
mov qword [rbp + 0x160], 7
mov word [rbp + 0x148], di
mov qword [rbp + 0x178], rdi
mov qword [rbp + 0x180], 7
mov word [rbp + 0x168], di
mov ebx, 1
mov edx, ebx
lea rcx, [rbp + 0x190]
call fcn.140029460
nop
nop dword [rax]
nop dword [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], ebx
test eax, eax
je 0x1400d89dd
cmp eax, 1
jne 0x1400d89fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d89c0
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, ebx
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x288], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x288]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x288]
mov dword [rax + 0x10], reloc.WS2_32.dll_getprotobyname
lea rbx, str.CPcFile::ReadFromFile
mov qword [rax + 0x18], rbx
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCSharedPcFile.cpp
mov qword [rax + 0x20], rdx
mov dword [rbp + 0x140], reloc.WS2_32.dll_getprotobyname
mov r8d, 0x57
lea rcx, [rbp + 0x148]
call fcn.14002b640
mov dword [rbp + 0x188], 4
mov r8d, reloc.WS2_32.dll_setsockopt
mov rdx, rbx
lea rcx, [rbp + 0x168]
call fcn.14002b640
nop
lea rdx, str.Error:_File_size_not_obtained.
lea rcx, [rbp - 0x70]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp + 0x140]
call fcn.14002be60
nop
lea rcx, [rbp - 0x70]
call fcn.14002ce60
nop
lea rcx, [rbp + 0x140]
call fcn.140028cd0
mov edi, 2
jmp 0x1400d8e9f
xorps xmm0, xmm0
movups xmmword [rbp + 0x548], xmm0
mov rcx, qword [rbp + 0x530]
call fcn.1402974ec
mov r14, rax
movzx eax, byte [rbp + 0x538]
mov byte [rbp + 0x538], al
mov qword [rsp + 0x58], r14
lea rax, [rbp + 0x538]
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x68], 1
mov ecx, 0x18
call fcn.140296fc8
mov rsi, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov ebx, 1
mov dword [rax + 8], ebx
mov dword [rax + 0xc], ebx
lea rax, vtable.._AV___Ref_count_resource_PEAEU__default_delete___BY0A_E_std___std__.0
mov qword [rsi], rax
mov qword [rsi + 0x10], r14
mov qword [rbp + 0x548], r14
mov qword [rbp + 0x550], rsi
test r14, r14
jne 0x1400d8c92
mov qword [rbp + 0x2a8], rdi
mov qword [rbp + 0x2b0], 7
mov word [rbp + 0x298], di
mov qword [rbp + 0x2c8], rdi
mov qword [rbp + 0x2d0], 7
mov word [rbp + 0x2b8], di
mov edx, ebx
lea rcx, [rbp + 0x2e0]
call fcn.140029460
nop
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], ebx
test eax, eax
je 0x1400d8bad
cmp eax, 1
jne 0x1400d8bcb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d8b90
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, ebx
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x3d8], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x3d8]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x3d8]
mov dword [rax + 0x10], 0x3b
lea rbx, str.CPcFile::ReadFromFile
mov qword [rax + 0x18], rbx
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCSharedPcFile.cpp
mov qword [rax + 0x20], rdx
mov dword [rbp + 0x290], 0x3b
mov r8d, 0x57
lea rcx, [rbp + 0x298]
call fcn.14002b640
mov dword [rbp + 0x2d8], 4
mov r8d, reloc.WS2_32.dll_setsockopt
mov rdx, rbx
lea rcx, [rbp + 0x2b8]
call fcn.14002b640
nop
lea rdx, str.Error:_not_enough_memory.
lea rcx, [rbp - 0x50]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp + 0x290]
call fcn.14002be60
nop
lea rcx, [rbp - 0x50]
call fcn.14002ce60
nop
lea rcx, [rbp + 0x290]
call fcn.140028cd0
mov edi, 8
jmp 0x1400d8e6f
mov dword [rbp + 0x540], edi
movups xmmword [rbp + 0x558], xmm0
movups xmmword [rbp + 0x568], xmm0
lea rax, [rbp + 0x558]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x540]
mov r8d, dword [rbp + 0x530]
mov rdx, r14
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400d8e1f
mov qword [rbp + 0x3f8], rdi
mov qword [rbp + 0x400], 7
mov word [rbp + 0x3e8], di
mov qword [rbp + 0x418], rdi
mov qword [rbp + 0x420], 7
mov word [rbp + 0x408], di
mov edx, ebx
lea rcx, [rbp + 0x430]
call fcn.140029460
nop
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], ebx
test eax, eax
je 0x1400d8d3d
cmp eax, 1
jne 0x1400d8d5b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d8d20
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, ebx
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x528], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x528]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x528]
mov dword [rax + 0x10], 0x43
lea rbx, str.CPcFile::ReadFromFile
mov qword [rax + 0x18], rbx
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCSharedPcFile.cpp
mov qword [rax + 0x20], rdx
mov dword [rbp + 0x3e0], 0x43
mov r8d, 0x57
lea rcx, [rbp + 0x3e8]
call fcn.14002b640
mov dword [rbp + 0x428], 4
mov r8d, reloc.WS2_32.dll_setsockopt
mov rdx, rbx
lea rcx, [rbp + 0x408]
call fcn.14002b640
nop
lea rdx, str.Error:_Read_fault.
lea rcx, [rbp - 0x30]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp + 0x3e0]
call fcn.14002be60
nop
lea rcx, [rbp - 0x30]
call fcn.14002ce60
nop
lea rcx, [rbp + 0x3e0]
call fcn.140028cd0
mov edi, 0x1e
jmp 0x1400d8e6f
lock inc dword [rsi + 8]
mov qword [r12], r14
mov rbx, qword [r12 + 8]
mov qword [r12 + 8], rsi
test rbx, rbx
je 0x1400d8e65
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400d8e65
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400d8e65
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbp + 0x540]
mov dword [r13], eax
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400d8e9f
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x1400d8e9f
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rbx]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400d8ebe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov eax, edi
mov rcx, qword [rbp + 0x578]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x688
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret