Function at 0x4594e9
Capabilities:
Get file size
Hide graphical window
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
or eax, 0xffffffff
cmp dword [0x4974fc], 0
push esi
push edi
mov dword [ebp - 4], 0x1f4
mov dword [ebp - 0x24], 0x190
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 8], 0x50000001
mov esi, 0x88c00000
lea edi, [eax + 9]
je 0x459573
mov eax, dword [0x497500]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x459547
push eax
call ebx
mov dword [0x497500], 0
mov eax, dword [0x4974f8]
test eax, eax
je 0x45955d
push eax
call ebx
mov dword [0x4974f8], 0
mov eax, dword [0x4974fc]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4974fc], 0
cmp dword [ebp + 0x10], 2
je 0x45976d
lea ecx, [ebp - 0x20]
push ecx
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 0x4595b5
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 8]
call fcn.0040c650
cmp eax, 0xffffffff
je 0x4595b5
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 8]
call fcn.0040c650
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 4
jb 0x4595d9
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0xc]
call fcn.0040c650
cmp eax, 0xffffffff
je 0x4595d9
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0xc]
call fcn.0040c650
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0xc], 5
jb 0x4595ed
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x10]
call fcn.0040c650
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], 6
jb 0x459601
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x14]
call fcn.0040c650
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 7
jb 0x459665
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x18]
call fcn.0040c650
cmp eax, 0xffffffff
je 0x459665
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
call fcn.0040c650
cmp dword [ebp + 0x10], 1
mov dword [ebp - 0x2c], eax
jne 0x45964c
test al, 8
je 0x459636
mov dword [ebp - 8], 0x50000002
test al, 4
je 0x45964c
movsx ecx, byte [ebp - 8]
and ecx, 2
or ecx, 0xa0000001
shr ecx, 1
mov dword [ebp - 8], ecx
test al, 2
je 0x459652
xor edi, edi
test al, 1
je 0x45965b
mov esi, 0x88800000
test al, 0x10
je 0x459665
xor esi, 0x8000000
or ecx, 0xffffffff
cmp dword [ebp - 0x10], ecx
jne 0x45967b
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], ecx
jne 0x45968e
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
push edx
push eax
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push edi
push 0
push esi
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov ecx, dword [0x497518]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push 0
push 0
push 0
push ecx
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
push edx
push ecx
push esi
push eax
call fcn.0045340c
push eax
push str.AutoIt_v3
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea edx, [ebp - 0x20]
push edx
push eax
mov dword [0x4974fc], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
sub esi, dword [ebp - 0x20]
sub edi, dword [ebp - 0x1c]
cmp dword [ebp + 0x10], 0
push 0
push 0
push 0
jne 0x459876
mov eax, dword [0x4974fc]
push eax
push edi
push esi
push 0
push 0
push 0x5000000e
push 0
push str.static
push 0
mov dword [ebp + 0xc], 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebx + 4]
push 0
push 0
push 3
push 0
push 0
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 4]
push SysReAllocString
push eax
call fcn.0045340c
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x459778
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
lea edx, [ebp - 0x2c]
push edx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 4]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edx, dword [ebp - 4]
lea ecx, [ebp + 0xc]
push ecx
push 0x4829f8
push 0
push 0
push edx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45976d
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [ebp + 8]
push 0x2000
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push ecx
push 0
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
push 0x20
push eax
push ecx
push 0
push 0
push 0
push esi
mov dword [0x4974f8], edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x4974fc]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x4974fc]
mov edx, dword [ebx + 4]
mov eax, dword [edx + 4]
mov edx, dword [ebp - 8]
push ecx
sub edi, 0x16
push edi
sub esi, 0x16
push esi
push 0xb
push 0xb
push edx
push eax
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x24], 0x190
call fcn.0045340c
push eax
push str.static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 0
push 0
push str.DISPLAY
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateDCW]
push 0x11
mov ebx, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0xb0]
push eax
push 0x40
push ebx
call dword [sym.imp.GDI32.dll_GetTextFaceW]
push 0x5a
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, dword [ebp + 0xc]
cmp ebx, 8
jb 0x459942
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x1c]
push eax
call fcn.0045340c
push eax
call fcn.004111c1
add esp, 4
cmp eax, 1
jb 0x459942
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x1c]
push eax
call fcn.0045340c
push eax
lea edx, [ebp - 0xb0]
push edx
call fcn.00411567
add esp, 8
cmp ebx, 9
jb 0x45996b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
call fcn.0040c650
cmp eax, 6
jl 0x45996b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x20]
call fcn.0040c650
mov dword [ebp - 4], eax
cmp ebx, 0xa
jb 0x4599a1
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x24]
call fcn.0040c650
test eax, eax
js 0x4599a1
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x24]
call fcn.0040c650
cmp eax, 0x3e8
jg 0x4599a1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x24]
call fcn.0040c650
jmp 0x4599a4
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, dword [ebp - 8]
imul ecx, dword [ebp - 4]
push 0
push 2
push 0
push 4
push 1
push 0
push 0
push 0
push eax
mov eax, 0xc71c71c7
imul ecx
sar edx, 4
push 0
mov eax, edx
push 0
shr eax, 0x1f
push 0
add eax, edx
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
mov ebx, dword [ebp + 0x10]
push 1
push eax
push 0x30
push ebx
mov dword [0x497500], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [ebp - 0x2c], 0x20
je 0x459a65
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x497500]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.0045340c
push eax
push ebx
call fcn.0044389a
mov edx, dword [ebp + 0xc]
add esp, 0xc
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0x24]
mov eax, edi
sub eax, ecx
cdq
push 1
push ecx
sub eax, edx
push esi
sar eax, 1
add eax, 0xb
push eax
push 0xb
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [0x4974fc]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc