Function at 0x14008c174
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 edi, 0xffffffff
mov rsi, rdx
xor edx, edx
or dword [rbp + 0x70], edi
cmp qword [0x1400e44f8], rdx
lea ebx, [rdi + 9]
mov dword [rbp - 0x70], ebx
mov eax, r9d
mov r15d, r8d
mov dword [rbp - 0x80], 0x1f4
mov dword [rbp - 0x68], 0x190
mov dword [rbp - 0x78], edi
mov r13d, edx
mov r14d, 0x50000001
mov r12d, 0x88c00000
je 0x14008c22b
mov rcx, qword [0x1400e4500]
test rcx, rcx
je 0x14008c1f4
call qword [sym.imp.GDI32.dll_DeleteObject]
xor edx, edx
mov qword [0x1400e4500], rdx
mov rcx, qword [0x1400e44f0]
test rcx, rcx
je 0x14008c20f
call qword [sym.imp.GDI32.dll_DeleteObject]
xor ecx, ecx
mov qword [0x1400e44f0], rcx
mov rcx, qword [0x1400e44f8]
call qword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
mov qword [0x1400e44f8], rax
mov eax, dword [rbp + 0x88]
mov ecx, 2
cmp eax, ecx
je 0x14008c891
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
cmp r15d, 3
jb 0x14008c274
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x10]
call fcn.140006c9c
cmp eax, 0xffffffff
je 0x14008c274
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x10]
call fcn.140006c9c
mov dword [rbp - 0x80], eax
cmp r15d, 4
jb 0x14008c29c
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 0x18]
call fcn.140006c9c
cmp eax, 0xffffffff
je 0x14008c29c
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x18]
call fcn.140006c9c
mov dword [rbp - 0x68], eax
cmp r15d, 5
jb 0x14008c2b4
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 0x20]
call fcn.140006c9c
mov edi, eax
mov dword [rbp - 0x78], eax
cmp r15d, 6
jb 0x14008c2ca
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 0x28]
call fcn.140006c9c
mov dword [rbp + 0x70], eax
cmp r15d, 7
jb 0x14008c34b
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 0x30]
call fcn.140006c9c
cmp eax, 0xffffffff
je 0x14008c34b
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x30]
call fcn.140006c9c
cmp dword [rbp + 0x88], 1
mov r9d, 2
mov r13d, eax
jne 0x14008c323
test bl, al
mov eax, 0x50000002
cmovne r14d, eax
test r13b, 4
je 0x14008c323
movsx r14d, r14b
and r14d, r9d
or r14d, 0xa0000001
shr r14d, 1
test r9b, r13b
mov eax, 0
cmovne ebx, eax
test r13b, 1
mov eax, 0x88800000
cmovne r12d, eax
mov dword [rbp - 0x70], ebx
test r13b, 0x10
je 0x14008c351
btc r12d, 0x1b
jmp 0x14008c351
mov r9d, 2
mov ecx, dword [rbp - 0x80]
cmp edi, 0xffffffff
jne 0x14008c366
mov eax, dword [rsp + 0x78]
sub eax, ecx
cdq
idiv r9d
mov dword [rbp - 0x78], eax
cmp dword [rbp + 0x70], 0xffffffff
mov r8d, dword [rbp - 0x68]
jne 0x14008c37e
mov eax, dword [rsp + 0x7c]
sub eax, r8d
cdq
idiv r9d
mov dword [rbp + 0x70], eax
mov r9d, ecx
mov dword [rsp + 0x20], r8d
lea rcx, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_SetRect]
lea rcx, [rsp + 0x70]
mov r9d, ebx
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov rax, qword [rsi + 8]
mov edi, dword [rsp + 0x7c]
mov ebx, dword [rsp + 0x78]
mov rcx, qword [rax]
sub edi, dword [rsp + 0x74]
sub ebx, dword [rsp + 0x70]
call fcn.140006dd4
mov ecx, dword [rbp - 0x70]
mov r8, rax
xor eax, eax
lea rdx, str.328678_v3
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov rax, qword [0x1400e4510]
mov r9d, r12d
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x70]
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x78]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea rdx, [rsp + 0x70]
mov rcx, rax
mov qword [0x1400e44f8], rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [rsp + 0x78]
mov r12d, dword [rsp + 0x7c]
sub ebx, dword [rsp + 0x70]
sub r12d, dword [rsp + 0x74]
xor edi, edi
cmp dword [rbp + 0x88], edi
jne 0x14008c60c
mov rax, qword [0x1400e44f8]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], ebx
lea rdx, str.static
mov r9d, 0x5000000e
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov qword [rbp - 0x70], rdi
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, qword [rsi + 8]
mov r14, rax
mov rcx, qword [rcx + 8]
call fcn.140006dd4
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14008c891
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [rdi + 2]
mov edx, eax
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]
xor r15d, r15d
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
mov qword [rsp + 0x20], r15
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 0x14008c536
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14008c891
lea r8, [rbp - 0x78]
mov edx, 1
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rcx, qword [rbp - 0x78]
lea rax, [rbp - 0x70]
lea r9, [0x1400ae980]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
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 - 0x70]
test rcx, rcx
je 0x14008c891
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
xor edx, edx
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.USER32.dll_CopyImage]
mov rcx, qword [rbp - 0x70]
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, r14
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbp + 0x70]
mov ecx, dword [rsp + 0x7c]
sub ecx, dword [rsp + 0x74]
mov qword [0x1400e44f0], rax
mov eax, dword [rsp + 0x78]
sub eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_RegisterActiveObject
mov dword [rsp + 0x28], ecx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x14008c87f
mov rax, qword [rsi + 8]
sub ebx, 0x16
sub r12d, 0x16
mov rcx, qword [rax + 8]
mov dword [rbp + 0x88], ebx
call fcn.140006dd4
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov r8, rax
mov rax, qword [0x1400e44f8]
mov qword [rsp + 0x40], rax
mov eax, reloc.WSOCK32.dll_inet_ntoa
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], eax
lea rdx, str.static
mov r9d, r14d
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea rcx, str.DISPLAY
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov r14, 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 rcx, rbx
mov rdx, rax
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 edi, eax
call qword [sym.imp.GDI32.dll_DeleteDC]
cmp r15d, 8
jb 0x14008c703
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 0x38]
call fcn.140006dd4
mov rcx, rax
call fcn.140026c38
cmp rax, 1
jb 0x14008c703
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x38]
call fcn.140006dd4
lea rcx, [rbp - 0x60]
mov rdx, rax
call fcn.140026e28
cmp r15d, 9
jb 0x14008c72c
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x40]
call fcn.140006c9c
cmp eax, 6
jl 0x14008c72c
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x40]
call fcn.140006c9c
mov ebx, eax
jmp 0x14008c731
mov ebx, reloc.WSOCK32.dll_ioctlsocket
cmp r15d, 0xa
jb 0x14008c76e
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 0x48]
call fcn.140006c9c
test eax, eax
js 0x14008c76e
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 0x48]
call fcn.140006c9c
cmp eax, 0x3e8
jg 0x14008c76e
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x48]
call fcn.140006c9c
mov r8d, eax
jmp 0x14008c774
mov r8d, 0x190
imul edi, ebx
mov eax, 0xc71c71c7
xor r9d, r9d
imul edi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x68], rax
xor eax, eax
mov r10d, edx
mov dword [rsp + 0x60], eax
sar r10d, 4
lea r15d, [rax + 2]
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], 4
lea ebx, [rax + 1]
mov ecx, r10d
xor edx, edx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
shr ecx, 0x1f
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
xor r8d, r8d
add ecx, r10d
call qword [sym.imp.GDI32.dll_CreateFontW]
lea edx, [rbx + 0x2f]
mov r9d, ebx
mov r8, rax
mov rcx, r14
mov qword [0x1400e4500], rax
call qword [sym.imp.USER32.dll_SendMessageW]
test r13b, 0x20
je 0x14008c87f
mov rcx, r14
call qword [sym.imp.USER32.dll_GetDC]
mov rdx, qword [0x1400e4500]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 8]
mov rbx, rax
call fcn.140006dd4
lea r8, [rbp - 0x68]
mov rcx, rdi
mov rdx, rax
call fcn.1400747b4
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [rbp - 0x64]
mov r9d, dword [rbp + 0x88]
sub r12d, ecx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ecx
mov eax, r12d
mov rcx, r14
cdq
idiv r15d
lea edx, [r15 + 9]
lea r8d, [rax + 0xb]
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [0x1400e44f8]
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