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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
or r15d, 0xffffffff
mov rsi, rdx
xor edx, edx
or ebx, r15d
lea edi, [rdx + 8]
mov eax, r9d
mov r12d, r8d
mov dword [rsp + 0x98], 0x1f4
mov dword [rsp + 0x90], 0x190
mov dword [rsp + 0x88], edi
mov dword [rsp + 0x80], ebx
mov r14d, edx
mov ebp, 0x50000001
mov r13d, 0x88c00000
cmp qword [0x1400aa630], rdx
je 0x140036a43
mov rcx, qword [0x1400aa638]
cmp rcx, rdx
je 0x140036a0a
call qword [sym.imp.GDI32.dll_DeleteObject]
xor edx, edx
mov qword [0x1400aa638], rdx
mov rcx, qword [0x1400aa628]
cmp rcx, rdx
je 0x140036a26
call qword [sym.imp.GDI32.dll_DeleteObject]
xor r11d, r11d
mov qword [0x1400aa628], r11
mov rcx, qword [0x1400aa630]
call qword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
mov qword [0x1400aa630], rax
mov eax, dword [rsp + 0x178]
cmp eax, 2
je 0x1400370f7
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
cmp r12d, 3
jb 0x140036a8c
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x10]
call fcn.140017618
cmp eax, 0xffffffff
je 0x140036a8c
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x10]
call fcn.140017618
mov dword [rsp + 0x98], eax
cmp r12d, 4
jb 0x140036ab8
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 0x18]
call fcn.140017618
cmp eax, 0xffffffff
je 0x140036ab8
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x18]
call fcn.140017618
mov dword [rsp + 0x90], eax
cmp r12d, 5
jb 0x140036ace
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 0x20]
call fcn.140017618
mov r15d, eax
cmp r12d, 6
jb 0x140036aea
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 0x28]
call fcn.140017618
mov ebx, eax
mov dword [rsp + 0x80], eax
cmp r12d, 7
jb 0x140036b67
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 0x30]
call fcn.140017618
cmp eax, 0xffffffff
je 0x140036b67
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x30]
call fcn.140017618
cmp dword [rsp + 0x178], 1
mov r14d, eax
jne 0x140036b3c
test dil, al
mov eax, 0x50000002
cmovne ebp, eax
test r14b, 4
je 0x140036b3c
movsx ebp, bpl
and ebp, 2
or ebp, 0xa0000001
shr ebp, 1
test r14b, 2
mov eax, 0
cmovne edi, eax
test r14b, 1
mov eax, 0x88800000
cmovne r13d, eax
mov dword [rsp + 0x88], edi
test r14b, 0x10
je 0x140036b67
btc r13d, 0x1b
mov ecx, dword [rsp + 0x98]
cmp r15d, 0xffffffff
jne 0x140036b82
mov eax, dword [rsp + 0x78]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov r15d, eax
mov r8d, dword [rsp + 0x90]
cmp ebx, 0xffffffff
jne 0x140036ba2
mov eax, dword [rsp + 0x7c]
sub eax, r8d
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x80], 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, edi
xor r8d, r8d
mov edx, r13d
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.1400174a4
mov ecx, dword [rsp + 0x88]
mov r8, rax
xor eax, eax
lea rdx, str.AutoIt_v3
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov rax, qword [0x1400aa668]
mov r9d, r13d
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea rdx, [rsp + 0x70]
mov rcx, rax
mov qword [0x1400aa630], rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [rsp + 0x78]
mov r13d, dword [rsp + 0x7c]
sub ebx, dword [rsp + 0x70]
sub r13d, dword [rsp + 0x74]
xor r15d, r15d
cmp dword [rsp + 0x178], r15d
jne 0x140036e59
mov rax, qword [0x1400aa630]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], ebx
lea rdx, str.static
mov r9d, 0x5000000e
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0x80], r15
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, qword [rsi + 8]
mov rbp, rax
mov rcx, qword [rcx + 8]
call fcn.1400174a4
mov qword [rsp + 0x30], r15
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400370f7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [r15 + 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, [rsp + 0x178]
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x90]
lea edx, [r15 + 1]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rcx, qword [rsp + 0x90]
lea r11, [rsp + 0x80]
lea r9, [0x1400922e0]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r11
call qword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x80]
cmp rcx, r15
je 0x1400370f7
mov rax, qword [rcx]
lea rdx, [rsp + 0x88]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rsp + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.USER32.dll_CopyImage]
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r9, qword [rsp + 0x88]
xor r8d, r8d
mov edx, 0x172
mov rcx, rbp
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [rsp + 0x7c]
mov eax, dword [rsp + 0x78]
sub ecx, dword [rsp + 0x74]
mov r11, qword [rsp + 0x88]
sub eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], SafeArrayDestroyDescriptor
mov dword [rsp + 0x28], ecx
xor r9d, r9d
mov rcx, rbp
xor r8d, r8d
xor edx, edx
mov qword [0x1400aa628], r11
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x1400370e5
mov rax, qword [rsi + 8]
sub ebx, 0x16
sub r13d, 0x16
mov rcx, qword [rax + 8]
mov dword [rsp + 0x178], ebx
mov edi, listen
call fcn.1400174a4
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov r8, rax
mov rax, qword [0x1400aa630]
mov qword [rsp + 0x40], rax
lea eax, [rdi - 1]
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], eax
lea rdx, str.static
mov r9d, ebp
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 rbp, rax
call qword [sym.imp.GDI32.dll_CreateDCW]
lea ecx, [rdi + 5]
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, [rsp + 0xa0]
lea edx, [rdi + 0x34]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetTextFaceW]
lea edx, [rdi + 0x4e]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rcx, rbx
mov r15d, eax
call qword [sym.imp.GDI32.dll_DeleteDC]
cmp r12d, 8
jb 0x140036f57
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 0x38]
call fcn.1400174a4
mov rcx, rax
call fcn.140075704
cmp rax, 1
jb 0x140036f57
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x38]
call fcn.1400174a4
lea rcx, [rsp + 0xa0]
mov rdx, rax
call fcn.140075b0c
cmp r12d, 9
jb 0x140036f7e
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x40]
call fcn.140017618
cmp eax, 6
jl 0x140036f7e
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x40]
call fcn.140017618
mov edi, eax
cmp r12d, 0xa
jb 0x140036fbf
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 0x48]
call fcn.140017618
xor r11d, r11d
cmp eax, r11d
jl 0x140036fbf
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx + 0x48]
call fcn.140017618
cmp eax, 0x3e8
jg 0x140036fbf
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x48]
call fcn.140017618
mov r11d, eax
jmp 0x140036fc5
mov r11d, 0x190
mov eax, 0xc71c71c7
imul r15d, edi
xor r9d, r9d
imul r15d
lea rax, [rsp + 0xa0]
xor r8d, r8d
mov qword [rsp + 0x68], rax
xor eax, eax
mov r10d, edx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], 2
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], eax
sar r10d, 4
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
mov ecx, r10d
xor edx, edx
mov dword [rsp + 0x20], r11d
shr ecx, 0x1f
add ecx, r10d
call qword [sym.imp.GDI32.dll_CreateFontW]
mov r9d, 1
mov rcx, rbp
lea edx, [r9 + 0x2f]
mov r8, rax
mov qword [0x1400aa638], rax
call qword [sym.imp.USER32.dll_SendMessageW]
test r14b, 0x20
je 0x1400370e5
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetDC]
mov rdx, qword [0x1400aa638]
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.1400174a4
lea r8, [rsp + 0x98]
mov rcx, rdi
mov rdx, rax
call fcn.14001328c
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [rsp + 0x9c]
mov r9d, dword [rsp + 0x178]
sub r13d, ecx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ecx
mov eax, r13d
mov rcx, rbp
cdq
sub eax, edx
mov edx, reloc.WSOCK32.dll_inet_ntoa
sar eax, 1
lea r8d, [rax + 0xb]
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [0x1400aa630]
mov edx, 4
call qword [sym.imp.USER32.dll_ShowWindow]
lea r11, [rsp + 0x130]
xor eax, eax
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret