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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 8], 0xffffffff
push esi
push edi
xor edi, edi
cmp dword [0x45ca34], edi
mov dword [ebp - 0x18], 0x1f4
mov dword [ebp - 0x14], 0x190
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], 0x50000001
mov dword [ebp - 4], 0x88c00000
mov dword [ebp - 0x1c], 8
je 0x427fc8
mov eax, dword [0x45ca38]
cmp eax, edi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x427fa4
push eax
call esi
mov dword [0x45ca38], edi
mov eax, dword [0x45ca30]
cmp eax, edi
je 0x427fb6
push eax
call esi
mov dword [0x45ca30], edi
push dword [0x45ca34]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x45ca34], edi
cmp dword [ebp + 0x10], 2
je 0x42849a
push ebx
lea eax, [ebp - 0x34]
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 0x428015
push 2
pop ecx
mov eax, esi
call fcn.004179f6
call fcn.00415ad5
cmp eax, 0xffffffff
je 0x428015
push 2
pop ecx
mov eax, esi
call fcn.004179f6
call fcn.00415ad5
mov dword [ebp - 0x18], eax
cmp ebx, 4
jb 0x428040
push 3
pop ecx
mov eax, esi
call fcn.004179f6
call fcn.00415ad5
cmp eax, 0xffffffff
je 0x428040
push 3
pop ecx
mov eax, esi
call fcn.004179f6
call fcn.00415ad5
mov dword [ebp - 0x14], eax
cmp ebx, 5
jb 0x428057
push 4
pop ecx
mov eax, esi
call fcn.004179f6
call fcn.00415ad5
mov dword [ebp - 0xc], eax
cmp ebx, 6
jb 0x42806e
push 5
pop ecx
mov eax, esi
call fcn.004179f6
call fcn.00415ad5
mov dword [ebp - 8], eax
cmp ebx, 7
jb 0x4280dd
push 6
pop ecx
mov eax, esi
call fcn.004179f6
call fcn.00415ad5
cmp eax, 0xffffffff
je 0x4280dd
push 6
pop ecx
mov eax, esi
call fcn.004179f6
call fcn.00415ad5
cmp dword [ebp + 0x10], 1
mov dword [ebp - 0x24], eax
jne 0x4280c0
test al, 8
je 0x4280aa
mov dword [ebp - 0x10], 0x50000002
test al, 4
je 0x4280c0
movsx ecx, byte [ebp - 0x10]
and ecx, 2
or ecx, 0xa0000001
shr ecx, 1
mov dword [ebp - 0x10], ecx
test al, 2
je 0x4280c7
mov dword [ebp - 0x1c], edi
test al, 1
je 0x4280d2
mov dword [ebp - 4], 0x88800000
test al, 0x10
je 0x4280dd
xor dword [ebp - 4], 0x8000000
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4280f1
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x18]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x428105
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push dword [ebp - 0x18]
push edi
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
push edi
push dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push edi
push edi
push edi
push dword [0x45ca50]
xor ecx, ecx
push eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
push eax
push dword [ebp - 8]
mov eax, esi
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.004179f6
mov esi, eax
call fcn.00415a00
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExA]
push eax
push str.AutoIt_v3
push dword [ebp - 0x1c]
call ebx
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [0x45ca34], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
cmp dword [ebp + 0x10], edi
push edi
push edi
push edi
push dword [0x45ca34]
mov dword [ebp - 0xc], eax
push ecx
push eax
push edi
mov dword [ebp - 8], ecx
push edi
jne 0x4282bd
push 0x5000000e
push edi
push str.static
push edi
mov dword [ebp - 0x1c], edi
call ebx
push edi
push edi
push 3
push edi
push edi
xor ecx, ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
push connect
inc ecx
call fcn.004179f6
mov esi, eax
call fcn.00415a00
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x428499
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp + 8]
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, [ebp - 0x18]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0x1c]
push eax
push 0x4506f0
push edi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x428499
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push eax
call dword [ecx + 0xc]
push 0x2000
push edi
push edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 0xc]
push edi
push 0x172
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0xc]
mov dword [0x45ca30], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push 0x20
push eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
push eax
push edi
push edi
push edi
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x42848b
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x1c], 0x190
call fcn.004179f6
mov esi, eax
call fcn.00415a00
push eax
push str.static
push edi
call ebx
push edi
push edi
push edi
push str.DISPLAY
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateDCA]
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, [ebp - 0x78]
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 [ebp - 0x14], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp + 0xc], 8
jb 0x428370
mov eax, dword [ebp + 8]
push 7
pop ecx
call fcn.004179f6
mov esi, eax
call fcn.00415a00
push eax
call fcn.0043f830
cmp eax, 1
pop ecx
jb 0x428370
mov eax, dword [ebp + 8]
push 7
pop ecx
call fcn.004179f6
mov esi, eax
call fcn.00415a00
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0043f3b0
pop ecx
pop ecx
push 9
pop esi
cmp dword [ebp + 0xc], esi
jb 0x4283a0
mov eax, dword [ebp + 8]
push 8
pop ecx
call fcn.004179f6
call fcn.00415ad5
cmp eax, 6
jl 0x4283a0
mov eax, dword [ebp + 8]
push 8
pop ecx
call fcn.004179f6
call fcn.00415ad5
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0xc], 0xa
jb 0x4283e1
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.004179f6
call fcn.00415ad5
test eax, eax
jl 0x4283e1
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.004179f6
call fcn.00415ad5
cmp eax, 0x3e8
jg 0x4283e1
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.004179f6
call fcn.00415ad5
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
push edi
push 2
push edi
push 4
push 1
push edi
push edi
push edi
push dword [ebp - 0x1c]
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 [ebp + 0x10]
mov dword [0x45ca38], eax
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [ebp - 0x24], 0x20
je 0x42848b
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x45ca38]
mov dword [ebp + 0xc], eax
push eax
call ebx
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
inc ecx
call fcn.004179f6
mov esi, eax
call fcn.00415a00
push dword [ebp + 0xc]
lea esi, [ebp - 0x20]
call fcn.004138cc
pop ecx
push dword [ebp - 0x24]
push dword [ebp + 0xc]
call ebx
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x1c]
push 1
push dword [ebp - 0x1c]
cdq
push dword [ebp - 0xc]
sub eax, edx
sar eax, 1
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_MoveWindow]
push 4
push dword [0x45ca34]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop edi
xor eax, eax
pop esi
leave
ret 0xc