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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
or dword [esp + 8], 0xffffffff
or dword [esp + 0x18], 0xffffffff
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x4785dc], edi
mov dword [esp + 0x18], 0x1f4
mov dword [esp + 0x1c], 0x190
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], 0x50000001
mov dword [esp + 0x10], 0x88c00000
mov dword [esp + 0xc], 8
je 0x42454e
mov eax, dword [0x4785e0]
cmp eax, edi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x42452a
push eax
call esi
mov dword [0x4785e0], edi
mov eax, dword [0x4785d8]
cmp eax, edi
je 0x42453c
push eax
call esi
mov dword [0x4785d8], edi
push dword [0x4785dc]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4785dc], edi
cmp dword [ebp + 0x10], 2
je 0x424a7e
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [ebp + 0xc]
cmp ebx, 3
mov esi, dword [ebp + 8]
jb 0x42459c
push 2
pop eax
mov ecx, esi
call fcn.004059bd
call fcn.0040fcf2
cmp eax, 0xffffffff
je 0x42459c
push 2
pop eax
mov ecx, esi
call fcn.004059bd
call fcn.0040fcf2
mov dword [esp + 0x18], eax
cmp ebx, 4
jb 0x4245c8
push 3
pop eax
mov ecx, esi
call fcn.004059bd
call fcn.0040fcf2
cmp eax, 0xffffffff
je 0x4245c8
push 3
pop eax
mov ecx, esi
call fcn.004059bd
call fcn.0040fcf2
mov dword [esp + 0x1c], eax
cmp ebx, 5
jb 0x4245e0
push 4
pop eax
mov ecx, esi
call fcn.004059bd
call fcn.0040fcf2
mov dword [esp + 0x14], eax
cmp ebx, 6
jb 0x4245f8
push 5
pop eax
mov ecx, esi
call fcn.004059bd
call fcn.0040fcf2
mov dword [esp + 0x24], eax
cmp ebx, 7
jb 0x42466e
push 6
pop eax
mov ecx, esi
call fcn.004059bd
call fcn.0040fcf2
cmp eax, 0xffffffff
je 0x42466e
push 6
pop eax
mov ecx, esi
call fcn.004059bd
call fcn.0040fcf2
cmp dword [ebp + 0x10], 1
mov dword [esp + 0x20], eax
jne 0x42464e
test al, 8
je 0x424636
mov dword [esp + 0x38], 0x50000002
test al, 4
je 0x42464e
movsx ecx, byte [esp + 0x38]
and ecx, 2
or ecx, 0xa0000001
shr ecx, 1
mov dword [esp + 0x38], ecx
test al, 2
je 0x424656
mov dword [esp + 0xc], edi
test al, 1
je 0x424662
mov dword [esp + 0x10], 0x88800000
test al, 0x10
je 0x42466e
xor dword [esp + 0x10], 0x8000000
cmp dword [esp + 0x14], 0xffffffff
jne 0x424686
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
cmp dword [esp + 0x24], 0xffffffff
jne 0x42469e
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
push dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push dword [esp + 0x1c]
push edi
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [esp + 0xc]
lea eax, [esp + 0x2c]
push edi
push dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
push edi
push edi
push edi
push dword [0x4785f8]
push eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
push eax
push dword [esp + 0x3c]
xor eax, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ecx
mov ecx, esi
call fcn.004059bd
mov esi, eax
call fcn.0040fc1a
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExW]
pop ecx
push eax
push str.AutoIt_v3
push dword [esp + 0x38]
call ebx
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [0x4785dc], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
cmp dword [ebp + 0x10], edi
push edi
push edi
push edi
push dword [0x4785dc]
mov dword [esp + 0x24], eax
push ecx
push eax
push edi
mov dword [esp + 0x40], ecx
push edi
jne 0x424883
push 0x5000000e
push edi
push str.static
push edi
mov dword [esp + 0x3c], edi
call ebx
mov ecx, dword [ebp + 8]
push edi
push edi
push 3
push edi
mov dword [esp + 0x20], eax
push edi
xor eax, eax
push SysReAllocString
inc eax
call fcn.004059bd
mov esi, eax
call fcn.0040fc1a
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x424a7e
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 2
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push edi
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esp + 0x18]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [esp + 0xc]
push eax
push 0x466900
push edi
push edi
push dword [esp + 0x28]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x424a7e
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0xc]
push 0x2000
push edi
push edi
push edi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esp + 0x14]
push edi
push 0x172
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x14]
mov dword [0x4785d8], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
push 0x20
push eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push eax
push edi
push edi
push edi
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x424a70
push dword [esp + 0x58]
xor eax, eax
push ecx
mov ecx, dword [ebp + 8]
inc eax
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x34], 0x190
call fcn.004059bd
mov esi, eax
call fcn.0040fc1a
pop ecx
push eax
push str.static
push edi
call ebx
push edi
push edi
push edi
push str.DISPLAY
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateDCW]
push 0x11
mov esi, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebx
lea eax, [esp + 0x40]
push eax
push 0x40
push esi
call dword [sym.imp.GDI32.dll_GetTextFaceW]
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp + 0xc], 8
jb 0x42493f
mov ecx, dword [ebp + 8]
push 7
pop eax
call fcn.004059bd
mov esi, eax
call fcn.0040fc1a
push eax
call fcn.0044e874
cmp eax, 1
pop ecx
jb 0x42493f
mov ecx, dword [ebp + 8]
push 7
pop eax
call fcn.004059bd
mov esi, eax
call fcn.0040fc1a
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0044e262
pop ecx
pop ecx
push 9
pop esi
cmp dword [ebp + 0xc], esi
jb 0x424970
mov ecx, dword [ebp + 8]
push 8
pop eax
call fcn.004059bd
call fcn.0040fcf2
cmp eax, 6
jl 0x424970
mov ecx, dword [ebp + 8]
push 8
pop eax
call fcn.004059bd
call fcn.0040fcf2
mov dword [esp + 0x18], eax
cmp dword [ebp + 0xc], 0xa
jb 0x4249b2
mov ecx, dword [ebp + 8]
mov eax, esi
call fcn.004059bd
call fcn.0040fcf2
test eax, eax
jl 0x4249b2
mov ecx, dword [ebp + 8]
mov eax, esi
call fcn.004059bd
call fcn.0040fcf2
cmp eax, 0x3e8
jg 0x4249b2
mov ecx, dword [ebp + 8]
mov eax, esi
call fcn.004059bd
call fcn.0040fcf2
mov dword [esp + 0xc], eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x1c]
push edi
push 2
push edi
push 4
push 1
push edi
push edi
push edi
push dword [esp + 0x30]
cdq
push edi
push edi
push edi
push 0xffffffffffffffb8
pop ecx
idiv ecx
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
push 1
push eax
push 0x30
push dword [esp + 0x1c]
mov dword [0x4785e0], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [esp + 0x20], 0x20
je 0x424a70
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x4785e0]
mov dword [esp + 0x10], eax
push eax
call ebx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x20], eax
xor eax, eax
inc eax
call fcn.004059bd
mov esi, eax
call fcn.0040fc1a
push dword [esp + 0xc]
lea esi, [esp + 0x3c]
call fcn.0040d87f
pop ecx
push dword [esp + 0x20]
push dword [esp + 0x10]
call ebx
push dword [esp + 0xc]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x3c]
push 1
push dword [esp + 0x40]
cdq
push dword [esp + 0x1c]
sub eax, edx
sar eax, 1
push eax
push edi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_MoveWindow]
push 4
push dword [0x4785dc]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc