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

Disassembly:
sub esp, 0xac
push ebx
mov ebx, dword [esp + 0xb4]
push ebp
push esi
or ebp, 0xffffffff
cmp dword [0x4962a4], 0
push edi
mov dword [esp + 0x14], 0x1f4
mov dword [esp + 0x18], 0x190
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], 0x50000001
mov esi, 0x88c00000
lea edi, [ebp + 9]
je 0x4595e1
mov eax, dword [0x4962a8]
test eax, eax
je 0x4595b1
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x4962a8], 0
mov eax, dword [0x4962a0]
test eax, eax
je 0x4595cb
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x4962a0], 0
mov eax, dword [0x4962a4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4962a4], 0
cmp dword [esp + 0xc8], 2
je 0x45980c
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [esp + 0xc4], 3
jb 0x45962a
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 8]
call fcn.0040c5a0
cmp eax, 0xffffffff
je 0x45962a
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 8]
call fcn.0040c5a0
mov dword [esp + 0x14], eax
cmp dword [esp + 0xc4], 4
jb 0x459653
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0xc]
call fcn.0040c5a0
cmp eax, 0xffffffff
je 0x459653
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0xc]
call fcn.0040c5a0
mov dword [esp + 0x18], eax
cmp dword [esp + 0xc4], 5
jb 0x45966c
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x10]
call fcn.0040c5a0
mov dword [esp + 0x10], eax
cmp dword [esp + 0xc4], 6
jb 0x459683
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x14]
call fcn.0040c5a0
mov ebp, eax
cmp dword [esp + 0xc4], 7
jb 0x4596f3
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x18]
call fcn.0040c5a0
cmp eax, 0xffffffff
je 0x4596f3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
call fcn.0040c5a0
cmp dword [esp + 0xc8], 1
mov dword [esp + 0x1c], eax
jne 0x4596da
test al, 8
je 0x4596c2
mov dword [esp + 0x30], 0x50000002
test al, 4
je 0x4596da
movsx ecx, byte [esp + 0x30]
and ecx, 2
or ecx, 0xa0000001
shr ecx, 1
mov dword [esp + 0x30], ecx
test al, 2
je 0x4596e0
xor edi, edi
test al, 1
je 0x4596e9
mov esi, 0x88800000
test al, 0x10
je 0x4596f3
xor esi, 0x8000000
cmp dword [esp + 0x10], 0xffffffff
jne 0x45970b
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x45971f
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push edi
push 0
push esi
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov ecx, dword [0x4962c0]
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x24]
push ecx
push ebp
push edx
push esi
push eax
call fcn.004532e8
mov ebp, dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
push str.AutoIt_v3
push edi
call ebp
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [0x4962a4], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
sub esi, dword [esp + 0x20]
sub edi, dword [esp + 0x24]
cmp dword [esp + 0xc8], 0
push 0
push 0
push 0
jne 0x45992a
mov edx, dword [0x4962a4]
push edx
push edi
push esi
push 0
push 0
push 0x5000000e
push 0
push str.static
push 0
mov dword [esp + 0x44], 0
call ebp
push 0
push 0
push 3
push 0
mov ebp, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
push 0
push accept
push eax
call fcn.004532e8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45981b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
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 ecx, [esp + 0x20]
push ecx
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 edx, [esp + 0x18]
push edx
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push 0x481a20
push 0
push 0
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45980c
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [esp + 0x10]
push 0x2000
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x172
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push 0x20
push eax
push ecx
push 0
push 0
push 0
push ebp
mov dword [0x4962a0], edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x4962a4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
ret 0xc
mov ecx, dword [0x4962a4]
mov edx, dword [ebx + 4]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x3c]
push ecx
sub edi, 0x16
push edi
sub esi, 0x16
push esi
push 0xb
push 0xb
push edx
push eax
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x38], 0x190
call fcn.004532e8
push eax
push str.static
push 0
call ebp
push 0
push 0
push 0
push str.DISPLAY
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_CreateDCW]
push 0x11
mov ebp, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x38]
push eax
push 0x40
push ebp
call dword [sym.imp.GDI32.dll_GetTextFaceW]
push 0x5a
push ebp
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebp, dword [esp + 0xc4]
cmp ebp, 8
jb 0x4599f1
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x1c]
push eax
call fcn.004532e8
push eax
call fcn.00411085
add esp, 4
cmp eax, 1
jb 0x4599f1
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x1c]
push eax
call fcn.004532e8
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00411441
add esp, 8
cmp ebp, 9
jb 0x459a15
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x20]
call fcn.0040c5a0
cmp eax, 6
jl 0x459a15
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x20]
call fcn.0040c5a0
mov dword [esp + 0x14], eax
cmp ebp, 0xa
jb 0x459a48
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x24]
call fcn.0040c5a0
test eax, eax
jl 0x459a48
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x24]
call fcn.0040c5a0
cmp eax, 0x3e8
jg 0x459a48
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x24]
call fcn.0040c5a0
jmp 0x459a4c
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
push 0
push 2
push 0
push 4
push 1
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x58]
imul eax, dword [esp + 0x3c]
mov ecx, 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 ebp, dword [esp + 0x18]
push 1
push eax
push 0x30
push ebp
mov dword [0x4962a8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [esp + 0x1c], 0x20
je 0x459b13
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x4962a8]
mov ebp, eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 4]
push ecx
push eax
call fcn.004532e8
push eax
push ebp
call fcn.0043593b
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [esp + 0x18]
push ebp
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x34]
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 [0x4962a4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
ret 0xc