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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
or dword [esp + 8], 0xffffffff
or dword [esp + 4], 0xffffffff
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x4754cc], edi
mov ebx, eax
mov dword [esp + 0x24], 0x1f4
mov dword [esp + 0x20], 0x190
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], 0x50000001
mov dword [esp + 0xc], 0x88c00000
mov dword [esp + 0x28], 8
je 0x425824
mov eax, dword [0x4754d0]
cmp eax, edi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x425800
push eax
call esi
mov dword [0x4754d0], edi
mov eax, dword [0x4754c8]
cmp eax, edi
je 0x425812
push eax
call esi
mov dword [0x4754c8], edi
push dword [0x4754cc]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4754cc], edi
cmp dword [ebp + 0xc], 2
je 0x425cfc
lea eax, [esp + 0x30]
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 0x425867
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
call fcn.004120ba
cmp eax, 0xffffffff
je 0x425867
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
call fcn.004120ba
mov dword [esp + 0x24], eax
cmp esi, 4
jb 0x42588b
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.004120ba
cmp eax, 0xffffffff
je 0x42588b
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.004120ba
mov dword [esp + 0x20], eax
cmp esi, 5
jb 0x42589f
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x10]
call fcn.004120ba
mov dword [esp + 0x14], eax
cmp esi, 6
jb 0x4258b3
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x14]
call fcn.004120ba
mov dword [esp + 0x10], eax
cmp esi, 7
jb 0x425921
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
call fcn.004120ba
cmp eax, 0xffffffff
je 0x425921
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
call fcn.004120ba
cmp dword [ebp + 0xc], 1
mov dword [esp + 0x2c], eax
jne 0x425901
test al, 8
je 0x4258e9
mov dword [esp + 0x18], 0x50000002
test al, 4
je 0x425901
movsx ecx, byte [esp + 0x18]
and ecx, 2
or ecx, 0xa0000001
shr ecx, 1
mov dword [esp + 0x18], ecx
test al, 2
je 0x425909
mov dword [esp + 0x28], edi
test al, 1
je 0x425915
mov dword [esp + 0xc], 0x88800000
test al, 0x10
je 0x425921
xor dword [esp + 0xc], 0x8000000
cmp dword [esp + 0x14], 0xffffffff
jne 0x425939
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], 0xffffffff
jne 0x425951
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
push dword [esp + 0x20]
lea eax, [esp + 0x34]
push dword [esp + 0x28]
push edi
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [esp + 0x28]
lea eax, [esp + 0x34]
push edi
push dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push edi
push edi
push edi
push dword [0x4754e8]
mov esi, eax
push ecx
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x44]
push ecx
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x2c]
push ecx
call fcn.00411fc5
mov esi, dword [sym.imp.USER32.dll_CreateWindowExA]
pop ecx
push eax
push str.AutoIt_v3
push dword [esp + 0x54]
call esi
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [0x4754cc], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
cmp dword [ebp + 0xc], edi
push edi
push edi
push edi
push dword [0x4754cc]
mov dword [esp + 0x24], eax
push ecx
push eax
push edi
mov dword [esp + 0x2c], ecx
push edi
jne 0x425b2b
push 0x5000000e
push edi
push str.static
push edi
mov dword [esp + 0x58], edi
call esi
push edi
push edi
push 3
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
push edi
push connect
call fcn.00411fc5
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x425cfc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [esp + 0x34], 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 + 0x24]
push ecx
push dword [esp + 0x34]
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 + 0x24]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [esp + 0x28]
push eax
push 0x4668e4
push edi
push edi
push dword [esp + 0x34]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x425cfc
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 + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esp + 0x14]
push edi
push 0x172
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x14]
mov dword [0x4754c8], eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
push 0x20
push eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
push eax
push edi
push edi
push edi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x425cee
push dword [esp + 0x38]
mov edx, dword [ebx + 4]
mov esi, dword [edx + 4]
push ecx
mov dword [esp + 0x4c], 0xc
mov dword [esp + 0x50], 0x190
call fcn.00411fc5
pop ecx
push eax
push str.static
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push edi
push edi
push edi
push str.DISPLAY
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_CreateDCA]
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_GetTextFaceA]
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp + 8], 8
jb 0x425bd4
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x1c]
call fcn.00411fc5
push eax
call fcn.00451750
cmp eax, 1
pop ecx
jb 0x425bd4
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x1c]
call fcn.00411fc5
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0044f360
pop ecx
pop ecx
cmp dword [ebp + 8], 9
jb 0x425bf9
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x20]
call fcn.004120ba
cmp eax, 6
jl 0x425bf9
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x20]
call fcn.004120ba
mov dword [esp + 0x24], eax
cmp dword [ebp + 8], 0xa
jb 0x425c2f
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x24]
call fcn.004120ba
test eax, eax
jl 0x425c2f
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x24]
call fcn.004120ba
cmp eax, 0x3e8
jg 0x425c2f
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x24]
call fcn.004120ba
mov dword [esp + 0x28], eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x28]
push edi
push 2
push edi
push 4
push 1
push edi
push edi
push edi
push dword [esp + 0x4c]
cdq
push edi
push edi
push edi
push 0xffffffffffffffb8
pop ecx
idiv ecx
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push 1
push eax
push 0x30
push dword [esp + 0x18]
mov dword [0x4754d0], eax
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [esp + 0x2c], 0x20
je 0x425cee
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x4754d0]
mov dword [esp + 0x2c], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
call fcn.00411fc5
push dword [esp + 0x28]
lea esi, [esp + 0x1c]
call fcn.0040f303
pop ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x28]
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x1c]
push 1
push dword [esp + 0x20]
cdq
push dword [esp + 0x1c]
sub eax, edx
sar eax, 1
push eax
push edi
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_MoveWindow]
push 4
push dword [0x4754cc]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8