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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
or dword [esp + 0xc], 0xffffffff
or dword [esp + 0x1c], 0xffffffff
push ebx
push esi
xor esi, esi
push edi
mov edi, eax
mov dword [esp + 0x20], 0x1f4
mov dword [esp + 0x2c], 0x190
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], 0x50000001
mov dword [esp + 0x14], 0x88c00000
mov dword [esp + 0x1c], 8
cmp dword [0x48039c], esi
je 0x428480
mov eax, dword [0x4803a0]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, esi
je 0x42845c
push eax
call ebx
mov dword [0x4803a0], esi
mov eax, dword [0x480398]
cmp eax, esi
je 0x42846e
push eax
call ebx
mov dword [0x480398], esi
push dword [0x48039c]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x48039c], esi
cmp dword [ebp + 0xc], 2
je 0x42896a
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [ebp + 8]
cmp ebx, 3
jb 0x4284c3
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
call fcn.00412c4e
cmp eax, 0xffffffff
je 0x4284c3
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
call fcn.00412c4e
mov dword [esp + 0x20], eax
cmp ebx, 4
jb 0x4284e7
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c4e
cmp eax, 0xffffffff
je 0x4284e7
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c4e
mov dword [esp + 0x2c], eax
cmp ebx, 5
jb 0x4284fb
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x10]
call fcn.00412c4e
mov dword [esp + 0x18], eax
cmp ebx, 6
jb 0x42850f
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x14]
call fcn.00412c4e
mov dword [esp + 0x28], eax
cmp ebx, 7
jb 0x42857d
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
call fcn.00412c4e
cmp eax, 0xffffffff
je 0x42857d
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
call fcn.00412c4e
cmp dword [ebp + 0xc], 1
mov dword [esp + 0x24], eax
jne 0x42855d
test al, 8
je 0x428545
mov dword [esp + 0x10], 0x50000002
test al, 4
je 0x42855d
movsx ecx, byte [esp + 0x10]
and ecx, 2
or ecx, 0xa0000001
shr ecx, 1
mov dword [esp + 0x10], ecx
test al, 2
je 0x428565
mov dword [esp + 0x1c], esi
test al, 1
je 0x428571
mov dword [esp + 0x14], 0x88800000
test al, 0x10
je 0x42857d
xor dword [esp + 0x14], 0x8000000
cmp dword [esp + 0x18], 0xffffffff
jne 0x428595
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
cmp dword [esp + 0x28], 0xffffffff
jne 0x4285ad
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
push dword [esp + 0x2c]
lea eax, [esp + 0x34]
push dword [esp + 0x24]
push esi
push esi
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [esp + 0x1c]
lea eax, [esp + 0x34]
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
mov eax, dword [edi + 4]
push esi
mov eax, dword [eax]
push esi
push esi
push dword [0x4803b8]
push ecx
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x44]
push ecx
push dword [esp + 0x40]
push dword [esp + 0x34]
push dword [esp + 0x34]
push ecx
call fcn.00412b6d
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExW]
pop ecx
push eax
push str.AutoIt_v3
push dword [esp + 0x48]
call ebx
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [0x48039c], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x30]
sub edx, dword [esp + 0x34]
push esi
push esi
push esi
push dword [0x48039c]
cmp dword [ebp + 0xc], esi
jne 0x42877d
push edx
push ecx
push esi
push esi
push 0x5000000e
push esi
push str.static
push esi
mov dword [esp + 0x4c], esi
call ebx
push esi
push esi
push 3
push esi
mov dword [esp + 0x24], eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
push esi
push accept
call fcn.00412b6d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42896a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
lea ecx, [esp + 0x30]
push ecx
push dword [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [esp + 0x1c]
push eax
push 0x46ba00
push esi
push esi
push dword [esp + 0x30]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x42896a
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0xc]
push 0x2000
push esi
push esi
push esi
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esp + 0x18]
push esi
push 0x172
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x18]
mov dword [0x480398], eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
push 0x20
push eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
push eax
push esi
push esi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x42895c
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
sub edx, 0x16
push edx
sub ecx, 0x16
push ecx
push 0xb
push 0xb
push dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
push ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], 0xc
mov dword [esp + 0x44], 0x190
call fcn.00412b6d
pop ecx
push eax
push str.static
push esi
call ebx
push esi
push esi
push esi
push str.DISPLAY
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_CreateDCW]
push 0x11
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [esp + 0x14]
call ebx
lea eax, [esp + 0x48]
push eax
push 0x40
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_GetTextFaceW]
push 0x5a
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push dword [esp + 0x10]
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp + 8], 8
jb 0x428846
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x1c]
call fcn.00412b6d
push eax
call fcn.00455031
pop ecx
cmp eax, 1
jb 0x428846
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x1c]
call fcn.00412b6d
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004553d7
pop ecx
pop ecx
cmp dword [ebp + 8], 9
jb 0x42886b
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
call fcn.00412c4e
cmp eax, 6
jl 0x42886b
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
call fcn.00412c4e
mov dword [esp + 0x20], eax
cmp dword [ebp + 8], 0xa
jb 0x4288a1
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x24]
call fcn.00412c4e
test eax, eax
js 0x4288a1
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x24]
call fcn.00412c4e
cmp eax, 0x3e8
jg 0x4288a1
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x24]
call fcn.00412c4e
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x24]
push esi
push 2
push esi
push 4
push 1
push esi
push esi
push esi
push dword [esp + 0x40]
cdq
push esi
push esi
push esi
push 0xffffffffffffffb8
pop ecx
idiv ecx
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
push 1
push eax
push 0x30
push dword [esp + 0x20]
mov dword [0x4803a0], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [esp + 0x24], 0x20
je 0x42895c
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x4803a0]
mov dword [esp + 0x14], eax
push eax
call ebx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
call fcn.00412b6d
push dword [esp + 0x10]
lea esi, [esp + 0x44]
call fcn.0040fa4e
pop ecx
push dword [esp + 0x24]
push dword [esp + 0x14]
call ebx
push dword [esp + 0x10]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x44]
push 1
push dword [esp + 0x48]
cdq
push dword [esp + 0x20]
sub eax, edx
sar eax, 1
add eax, 0xb
push eax
push 0xb
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_MoveWindow]
push 4
push dword [0x48039c]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8