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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x433c90]
push ebx
push esi
push edi
xor esi, esi
or edi, 0xffffffff
cmp eax, esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], 0x1f4
mov dword [ebp - 0x14], 0x190
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], 0x50000001
mov dword [ebp - 4], 0x88c00000
mov dword [ebp - 0x1c], 8
je 0x408ac7
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x433c90], esi
cmp dword [ebp + 0x10], 2
je 0x408f57
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0xc], 3
mov ebx, dword [ebp + 8]
jb 0x408b12
push 2
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
cmp eax, edi
je 0x408b12
push 2
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0xc], 4
jb 0x408b3f
push 3
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
cmp eax, edi
je 0x408b3f
push 3
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], 5
jb 0x408b58
push 4
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
mov dword [ebp - 0xc], eax
push 6
pop edi
cmp dword [ebp + 0xc], edi
jb 0x408b73
push 5
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 7
jb 0x408c23
push edi
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
cmp eax, 0xffffffff
je 0x408c23
cmp dword [ebp + 0x10], 1
jne 0x408bd9
push edi
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
test al, 8
je 0x408bb5
mov dword [ebp - 0x10], 0x50000002
push edi
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
test al, 4
je 0x408bd9
movsx eax, byte [ebp - 0x10]
and eax, 2
or eax, 0xa0000001
shr eax, 1
mov dword [ebp - 0x10], eax
push edi
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
test al, 2
je 0x408bef
mov dword [ebp - 0x1c], esi
push edi
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
test al, 1
je 0x408c09
mov dword [ebp - 4], 0x88800000
push edi
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
test al, 0x10
je 0x408c23
xor dword [ebp - 4], 0x8000000
cmp dword [ebp - 0xc], 0xffffffff
jne 0x408c37
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x18]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x408c4b
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push dword [ebp - 0x18]
push esi
push esi
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push esi
push dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [ebp - 0x24]
push esi
sub eax, dword [ebp - 0x2c]
push esi
push esi
mov ecx, ebx
push dword [0x433c98]
push eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
call fcn.00402301
mov ecx, eax
call fcn.004018ad
mov edi, dword [sym.imp.USER32.dll_CreateWindowExA]
push eax
push str.AutoIt_v3
push dword [ebp - 0x1c]
call edi
lea ecx, [ebp - 0x30]
mov dword [0x433c90], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebp + 0x10], esi
jne 0x408ddd
mov eax, dword [ebp - 0x24]
push esi
sub eax, dword [ebp - 0x2c]
push esi
push esi
mov dword [ebp + 8], esi
push dword [0x433c90]
push eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push eax
push esi
push esi
push 0x5000000e
push esi
push str.static
push esi
call edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push 1
mov ecx, ebx
mov dword [ebp + 0x10], eax
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408d89
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 2
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
lea ecx, [ebp - 0x14]
push esi
push ecx
push dword [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp + 0xc]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp + 8]
push eax
push 0x4224a8
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
cmp eax, esi
jne 0x408da0
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push 0x93
call fcn.004027ec
push 1
pop eax
jmp 0x408f59
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0xc]
push dword [ebp - 0x18]
push esi
push 0x172
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x24]
push 0x20
sub eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x408f49
mov eax, dword [ebp - 0x24]
push esi
sub eax, dword [ebp - 0x2c]
push esi
push esi
mov ecx, ebx
push dword [0x433c90]
mov dword [ebp - 0x20], 0xc
mov dword [ebp + 8], 0x190
push eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push eax
push esi
push esi
push dword [ebp - 0x10]
push 1
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
push str.static
push esi
call edi
push esi
push esi
push esi
push str.DISPLAY
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateDCA]
push 0x11
mov edi, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x74]
push eax
push 0x40
push edi
call dword [sym.imp.GDI32.dll_GetTextFaceA]
push 0x5a
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp + 0xc], 8
jb 0x408ea1
push 7
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
call fcn.00417850
cmp eax, 1
pop ecx
jb 0x408ea1
push 7
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00417750
pop ecx
pop ecx
push 9
pop edi
cmp dword [ebp + 0xc], edi
jb 0x408ed1
push 8
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
cmp eax, 6
jl 0x408ed1
push 8
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0xc], 0xa
jb 0x408f12
push edi
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
test eax, eax
jl 0x408f12
push edi
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
cmp eax, 0x3e8
jg 0x408f12
push edi
mov ecx, ebx
call fcn.00402301
mov ecx, eax
call fcn.004018d3
mov dword [ebp + 8], eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
push esi
push 2
push esi
push 4
push 1
push esi
push esi
push esi
push dword [ebp + 8]
cdq
push esi
push esi
push esi
push 0xffffffffffffffb8
pop ecx
idiv ecx
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push 1
push eax
push 0x30
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
push 4
push dword [0x433c90]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc