Function at 0x4285dd
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 [0x4803dc], esi
je 0x42866a
mov eax, dword [0x4803e0]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, esi
je 0x428646
push eax
call ebx
mov dword [0x4803e0], esi
mov eax, dword [0x4803d8]
cmp eax, esi
je 0x428658
push eax
call ebx
mov dword [0x4803d8], esi
push dword [0x4803dc]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4803dc], esi
cmp dword [ebp + 0xc], 2
je 0x428b56
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 0x4286ad
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
call fcn.00412c92
cmp eax, 0xffffffff
je 0x4286ad
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
call fcn.00412c92
mov dword [esp + 0x20], eax
cmp ebx, 4
jb 0x4286d1
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c92
cmp eax, 0xffffffff
je 0x4286d1
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c92
mov dword [esp + 0x2c], eax
cmp ebx, 5
jb 0x4286e5
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x10]
call fcn.00412c92
mov dword [esp + 0x18], eax
cmp ebx, 6
jb 0x4286f9
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x14]
call fcn.00412c92
mov dword [esp + 0x28], eax
cmp ebx, 7
jb 0x428767
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
call fcn.00412c92
cmp eax, 0xffffffff
je 0x428767
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
call fcn.00412c92
cmp dword [ebp + 0xc], 1
mov dword [esp + 0x24], eax
jne 0x428747
test al, 8
je 0x42872f
mov dword [esp + 0x10], 0x50000002
test al, 4
je 0x428747
movsx ecx, byte [esp + 0x10]
and ecx, 2
or ecx, 0xa0000001
shr ecx, 1
mov dword [esp + 0x10], ecx
test al, 2
je 0x42874f
mov dword [esp + 0x1c], esi
test al, 1
je 0x42875b
mov dword [esp + 0x14], 0x88800000
test al, 0x10
je 0x428767
xor dword [esp + 0x14], 0x8000000
cmp dword [esp + 0x18], 0xffffffff
jne 0x42877f
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 0x428797
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 [0x4803f8]
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.00412bb1
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 [0x4803dc], 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 [0x4803dc]
cmp dword [ebp + 0xc], esi
jne 0x428967
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.00412bb1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x428b56
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 0x46b9f0
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 0x428b56
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 [0x4803d8], 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 0x428b48
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.00412bb1
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 0x428a30
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x1c]
call fcn.00412bb1
push eax
call fcn.00455251
pop ecx
cmp eax, 1
jb 0x428a30
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x1c]
call fcn.00412bb1
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004555f7
pop ecx
pop ecx
cmp dword [ebp + 8], 9
jb 0x428a55
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
call fcn.00412c92
cmp eax, 6
jl 0x428a55
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
call fcn.00412c92
mov dword [esp + 0x20], eax
cmp dword [ebp + 8], 0xa
jb 0x428a8b
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x24]
call fcn.00412c92
test eax, eax
js 0x428a8b
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x24]
call fcn.00412c92
cmp eax, 0x3e8
jg 0x428a8b
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x24]
call fcn.00412c92
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 [0x4803e0], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [esp + 0x24], 0x20
je 0x428b48
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x4803e0]
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.00412bb1
push eax
push dword [esp + 0x14]
lea esi, [esp + 0x48]
call fcn.0040fa26
pop ecx
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 [0x4803dc]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8