Function at 0x425bb1
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 [0x4795dc], edi
mov ebx, eax
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 0x425c3e
mov eax, dword [0x4795e0]
cmp eax, edi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x425c1a
push eax
call esi
mov dword [0x4795e0], edi
mov eax, dword [0x4795d8]
cmp eax, edi
je 0x425c2c
push eax
call esi
mov dword [0x4795d8], edi
push dword [0x4795dc]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4795dc], edi
cmp dword [ebp + 0xc], 2
je 0x426116
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebp + 8]
cmp esi, 3
jb 0x425c81
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
call fcn.00412431
cmp eax, 0xffffffff
je 0x425c81
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
call fcn.00412431
mov dword [esp + 0x18], eax
cmp esi, 4
jb 0x425ca5
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412431
cmp eax, 0xffffffff
je 0x425ca5
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412431
mov dword [esp + 0x1c], eax
cmp esi, 5
jb 0x425cb9
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x10]
call fcn.00412431
mov dword [esp + 0x14], eax
cmp esi, 6
jb 0x425ccd
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x14]
call fcn.00412431
mov dword [esp + 0x24], eax
cmp esi, 7
jb 0x425d3b
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
call fcn.00412431
cmp eax, 0xffffffff
je 0x425d3b
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
call fcn.00412431
cmp dword [ebp + 0xc], 1
mov dword [esp + 0x20], eax
jne 0x425d1b
test al, 8
je 0x425d03
mov dword [esp + 0x38], 0x50000002
test al, 4
je 0x425d1b
movsx ecx, byte [esp + 0x38]
and ecx, 2
or ecx, 0xa0000001
shr ecx, 1
mov dword [esp + 0x38], ecx
test al, 2
je 0x425d23
mov dword [esp + 0xc], edi
test al, 1
je 0x425d2f
mov dword [esp + 0x10], 0x88800000
test al, 0x10
je 0x425d3b
xor dword [esp + 0x10], 0x8000000
cmp dword [esp + 0x14], 0xffffffff
jne 0x425d53
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 0x425d6b
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 ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push edi
push edi
push edi
push dword [0x4795f8]
mov esi, eax
push ecx
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
push ecx
push dword [esp + 0x3c]
push dword [esp + 0x30]
push dword [esp + 0x30]
push ecx
call fcn.00412336
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
pop ecx
push eax
push str.AutoIt_v3
push dword [esp + 0x38]
call esi
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [0x4795dc], 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 + 0xc], edi
push edi
push edi
push edi
push dword [0x4795dc]
mov dword [esp + 0x24], eax
push ecx
push eax
push edi
mov dword [esp + 0x40], ecx
push edi
jne 0x425f45
push 0x5000000e
push edi
push str.static
push edi
mov dword [esp + 0x3c], edi
call esi
push edi
push edi
push 3
push edi
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
push edi
push bind
call fcn.00412336
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x426116
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 0x467904
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 0x426116
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 [0x4795d8], 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 0x426108
push dword [esp + 0x58]
mov edx, dword [ebx + 4]
mov esi, dword [edx + 4]
push ecx
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x34], 0x190
call fcn.00412336
pop ecx
push eax
push str.static
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
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]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
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 + 8], 8
jb 0x425fee
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x1c]
call fcn.00412336
push eax
call fcn.0045177a
cmp eax, 1
pop ecx
jb 0x425fee
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x1c]
call fcn.00412336
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0044f86d
pop ecx
pop ecx
cmp dword [ebp + 8], 9
jb 0x426013
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x20]
call fcn.00412431
cmp eax, 6
jl 0x426013
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x20]
call fcn.00412431
mov dword [esp + 0x18], eax
cmp dword [ebp + 8], 0xa
jb 0x426049
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x24]
call fcn.00412431
test eax, eax
jl 0x426049
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x24]
call fcn.00412431
cmp eax, 0x3e8
jg 0x426049
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x24]
call fcn.00412431
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 [0x4795e0], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [esp + 0x20], 0x20
je 0x426108
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x4795e0]
mov dword [esp + 0x10], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
call fcn.00412336
push dword [esp + 0xc]
lea esi, [esp + 0x3c]
call fcn.0040f568
pop ecx
push dword [esp + 0x20]
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
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 [0x4795dc]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8