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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
or ebx, 0xffffffff
mov dword [rbp - 0x70], 0x1f4
or dword [rbp + 0x70], ebx
xor r13d, r13d
cmp qword [0x1400ef388], r13
mov eax, r9d
mov r15d, r8d
mov dword [rbp - 0x78], 0x190
lea r12d, [rbx + 9]
mov dword [rbp - 0x80], ebx
mov r14, rdx
mov esi, 0x50000001
mov edi, 0x88c00000
je 0x14009488b
mov rcx, qword [0x1400ef390]
test rcx, rcx
je 0x140094858
call qword [sym.imp.GDI32.dll_DeleteObject]
and qword [0x1400ef390], r13
mov rcx, qword [0x1400ef380]
test rcx, rcx
je 0x140094871
call qword [sym.imp.GDI32.dll_DeleteObject]
and qword [0x1400ef380], r13
mov rcx, qword [0x1400ef388]
call qword [sym.imp.USER32.dll_DestroyWindow]
and qword [0x1400ef388], r13
mov eax, dword [rbp + 0x88]
mov ecx, 2
cmp eax, ecx
je 0x140094f23
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetWindowRect]
cmp r15d, 3
jb 0x1400948d4
mov rax, qword [r14 + 8]
mov rcx, qword [rax + 0x10]
call fcn.14000c4c8
cmp eax, 0xffffffff
je 0x1400948d4
mov rax, qword [r14 + 8]
mov rcx, qword [rax + 0x10]
call fcn.14000c4c8
mov dword [rbp - 0x70], eax
cmp r15d, 4
jb 0x1400948fc
mov rcx, qword [r14 + 8]
mov rcx, qword [rcx + 0x18]
call fcn.14000c4c8
cmp eax, 0xffffffff
je 0x1400948fc
mov rax, qword [r14 + 8]
mov rcx, qword [rax + 0x18]
call fcn.14000c4c8
mov dword [rbp - 0x78], eax
cmp r15d, 5
jb 0x140094914
mov rcx, qword [r14 + 8]
mov rcx, qword [rcx + 0x20]
call fcn.14000c4c8
mov ebx, eax
mov dword [rbp - 0x80], eax
cmp r15d, 6
jb 0x14009492a
mov rcx, qword [r14 + 8]
mov rcx, qword [rcx + 0x28]
call fcn.14000c4c8
mov dword [rbp + 0x70], eax
cmp r15d, 7
jb 0x1400949a2
mov rcx, qword [r14 + 8]
mov rcx, qword [rcx + 0x30]
call fcn.14000c4c8
cmp eax, 0xffffffff
je 0x1400949a2
mov rax, qword [r14 + 8]
mov rcx, qword [rax + 0x30]
call fcn.14000c4c8
cmp dword [rbp + 0x88], 1
mov r13d, eax
jne 0x14009497c
mov ecx, eax
and cl, r12b
neg cl
sbb edx, edx
neg edx
add edx, esi
mov esi, edx
test al, 4
je 0x14009497c
movzx esi, dl
shr esi, 1
and esi, 1
or esi, 0x50000000
mov edi, eax
mov r12d, eax
not edi
shl r12d, 2
and edi, 1
not r12d
sub edi, 0x1de
and r12d, 8
shl edi, 0x16
test al, 0x10
je 0x1400949a2
btc edi, 0x1b
mov ecx, dword [rbp - 0x70]
mov r9d, 2
cmp ebx, 0xffffffff
jne 0x1400949bd
mov eax, dword [rsp + 0x78]
sub eax, ecx
cdq
idiv r9d
mov dword [rbp - 0x80], eax
cmp dword [rbp + 0x70], 0xffffffff
mov r8d, dword [rbp - 0x78]
jne 0x1400949d5
mov eax, dword [rsp + 0x7c]
sub eax, r8d
cdq
idiv r9d
mov dword [rbp + 0x70], eax
mov dword [rsp + 0x20], r8d
mov r9d, ecx
xor r8d, r8d
lea rcx, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.USER32.dll_SetRect]
mov r9d, r12d
lea rcx, [rsp + 0x70]
xor r8d, r8d
mov edx, edi
call qword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov rax, qword [r14 + 8]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.14000bfa8
mov rax, qword [rbx + 8]
mov r9d, edi
mov edx, dword [rsp + 0x78]
xor ebx, ebx
sub edx, dword [rsp + 0x70]
mov ecx, r12d
mov r10d, dword [rsp + 0x7c]
mov r8, qword [rax]
mov rax, qword [0x1400ef3a0]
sub r10d, dword [rsp + 0x74]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x70]
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], edx
lea rdx, [0x1400b54a0]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x80]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov qword [0x1400ef388], rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [rsp + 0x78]
mov r12d, dword [rsp + 0x7c]
sub edi, dword [rsp + 0x70]
sub r12d, dword [rsp + 0x74]
cmp dword [rbp + 0x88], ebx
jne 0x140094c75
mov rax, qword [0x1400ef388]
lea rdx, str.static
xor r13d, r13d
mov r9d, 0x5000000e
mov qword [rsp + 0x58], r13
xor r8d, r8d
mov qword [rsp + 0x50], r13
xor ecx, ecx
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov qword [rbp - 0x80], r13
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, qword [r14 + 8]
mov r15, rax
mov rbx, qword [rcx + 8]
mov rcx, rbx
call fcn.14000bfa8
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov qword [rsp + 0x30], r13
xor r8d, r8d
mov dword [rsp + 0x28], r13d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140094f23
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
lea ecx, [r13 + 2]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r9, [rbp + 0x88]
mov qword [rsp + 0x20], r13
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
test ebx, ebx
jne 0x140094b9f
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140094f23
lea r8, [rbp - 0x78]
mov edx, 1
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rcx, qword [rbp - 0x78]
lea rax, [rbp - 0x80]
lea r9, [0x1400b8940]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140094f23
mov rax, qword [rcx]
lea rdx, [rbp + 0x70]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rbp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x2000
xor edx, edx
call qword [sym.imp.USER32.dll_CopyImage]
mov rcx, qword [rbp - 0x80]
mov qword [rbp + 0x70], rax
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r9, qword [rbp + 0x70]
xor r8d, r8d
mov edx, 0x172
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbp + 0x70]
xor r9d, r9d
mov ecx, dword [rsp + 0x7c]
xor r8d, r8d
sub ecx, dword [rsp + 0x74]
xor edx, edx
mov qword [0x1400ef380], rax
mov eax, dword [rsp + 0x78]
sub eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_RegisterActiveObject
mov dword [rsp + 0x28], ecx
mov rcx, r15
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x140094f11
mov rax, qword [r14 + 8]
sub edi, 0x16
mov dword [rbp + 0x88], edi
sub r12d, 0x16
mov rbx, qword [rax + 8]
mov rcx, rbx
call fcn.14000bfa8
mov rax, qword [rbx + 8]
lea rdx, str.static
mov r9d, esi
xor ecx, ecx
mov r8, qword [rax]
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov rax, qword [0x1400ef388]
mov qword [rsp + 0x40], rax
mov eax, reloc.WSOCK32.dll_inet_ntoa
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
xor r9d, r9d
lea rcx, str.DISPLAY
xor r8d, r8d
mov qword [rbp + 0x70], rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.GDI32.dll_CreateDCW]
mov ecx, reloc.WSOCK32.dll_recvfrom
mov rbx, rax
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
lea r8, [rbp - 0x60]
mov edx, 0x40
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetTextFaceW]
mov edx, 0x5a
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rcx, rbx
mov esi, eax
call qword [sym.imp.GDI32.dll_DeleteDC]
cmp r15d, 8
jb 0x140094d87
mov rcx, qword [r14 + 8]
mov rbx, qword [rcx + 0x38]
mov rcx, rbx
call fcn.14000bfa8
mov rcx, qword [rbx + 8]
mov rcx, qword [rcx]
call fcn.1400272dc
cmp rax, 1
jb 0x140094d87
mov rax, qword [r14 + 8]
mov rbx, qword [rax + 0x38]
mov rcx, rbx
call fcn.14000bfa8
mov rdx, qword [rbx + 8]
lea rcx, [rbp - 0x60]
mov rdx, qword [rdx]
call fcn.140027300
cmp r15d, 9
jb 0x140094db0
mov rax, qword [r14 + 8]
mov rcx, qword [rax + 0x40]
call fcn.14000c4c8
cmp eax, 6
jl 0x140094db0
mov rax, qword [r14 + 8]
mov rcx, qword [rax + 0x40]
call fcn.14000c4c8
mov ebx, eax
jmp 0x140094db5
mov ebx, reloc.WSOCK32.dll_ioctlsocket
cmp r15d, 0xa
jb 0x140094df2
mov rcx, qword [r14 + 8]
mov rcx, qword [rcx + 0x48]
call fcn.14000c4c8
test eax, eax
js 0x140094df2
mov rcx, qword [r14 + 8]
mov rcx, qword [rcx + 0x48]
call fcn.14000c4c8
cmp eax, 0x3e8
jg 0x140094df2
mov rax, qword [r14 + 8]
mov rcx, qword [rax + 0x48]
call fcn.14000c4c8
mov r8d, eax
jmp 0x140094df8
mov r8d, 0x190
mov eax, 0xc71c71c7
imul esi, ebx
xor r9d, r9d
imul esi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x68], rax
mov r10d, edx
xor eax, eax
sar r10d, 4
mov dword [rsp + 0x60], eax
mov ecx, r10d
shr ecx, 0x1f
xor edx, edx
add r10d, ecx
lea ecx, [rax + 2]
mov dword [rsp + 0x58], ecx
lea r15d, [rax + 1]
mov dword [rsp + 0x50], eax
mov ecx, r10d
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
xor r8d, r8d
call qword [sym.imp.GDI32.dll_CreateFontW]
mov r9d, r15d
lea edx, [r15 + 0x2f]
mov r8, rax
mov qword [0x1400ef390], rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
test r13b, 0x20
je 0x140094f11
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDC]
mov rdx, qword [0x1400ef390]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [r14 + 8]
mov rdi, rax
mov rbx, qword [rcx + 8]
mov rcx, rbx
call fcn.14000bfa8
mov rdx, qword [rbx + 8]
lea r8, [rbp - 0x70]
mov rcx, rsi
mov rdx, qword [rdx]
call fcn.14007baa0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rbp + 0x70]
mov rdx, rsi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [rbp - 0x6c]
lea r8d, [r15 + 1]
mov r9d, dword [rbp + 0x88]
sub r12d, ecx
mov eax, r12d
mov dword [rsp + 0x28], r15d
cdq
mov dword [rsp + 0x20], ecx
mov rcx, qword [rbp + 0x70]
idiv r8d
lea edx, [r15 + 0xa]
lea r8d, [rax + 0xb]
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [0x1400ef388]
mov edx, 4
call qword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
mov rbx, qword [rsp + 0x178]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret