Function at 0x4158db
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 ebx
push esi
xor esi, esi
push edi
cmp dword [0x465498], esi
mov dword [ebp - 0x18], 0x1f4
mov dword [ebp - 0x14], 0x190
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 0x50000001
mov dword [ebp - 4], 0x88c00000
mov dword [ebp - 0x1c], 8
je 0x415958
mov eax, dword [0x46549c]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, esi
je 0x415934
push eax
call edi
mov dword [0x46549c], esi
mov eax, dword [0x465494]
cmp eax, esi
je 0x415946
push eax
call edi
mov dword [0x465494], esi
push dword [0x465498]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x465498], esi
cmp dword [ebp + 0x10], 2
je 0x415e4a
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
jb 0x4159a8
mov edi, dword [ebp + 8]
push 2
mov ecx, edi
call fcn.00405163
mov ecx, eax
call fcn.004031f5
cmp eax, 0xffffffff
je 0x4159ab
push 2
mov ecx, edi
call fcn.00405163
mov ecx, eax
call fcn.004031f5
mov dword [ebp - 0x18], eax
jmp 0x4159ab
mov edi, dword [ebp + 8]
cmp ebx, 4
jb 0x4159d8
push 3
mov ecx, edi
call fcn.00405163
mov ecx, eax
call fcn.004031f5
cmp eax, 0xffffffff
je 0x4159d8
push 3
mov ecx, edi
call fcn.00405163
mov ecx, eax
call fcn.004031f5
mov dword [ebp - 0x14], eax
cmp ebx, 5
jb 0x4159f0
push 4
mov ecx, edi
call fcn.00405163
mov ecx, eax
call fcn.004031f5
mov dword [ebp - 0xc], eax
cmp ebx, 6
jb 0x415a08
push 5
mov ecx, edi
call fcn.00405163
mov ecx, eax
call fcn.004031f5
mov dword [ebp - 8], eax
cmp ebx, 7
jb 0x415a79
push 6
mov ecx, edi
call fcn.00405163
mov ecx, eax
call fcn.004031f5
cmp eax, 0xffffffff
je 0x415a79
push 6
mov ecx, edi
call fcn.00405163
mov ecx, eax
call fcn.004031f5
cmp dword [ebp + 0x10], 1
mov dword [ebp - 0x24], eax
jne 0x415a5c
test al, 8
je 0x415a46
mov dword [ebp - 0x10], 0x50000002
test al, 4
je 0x415a5c
movsx ecx, byte [ebp - 0x10]
and ecx, 2
or ecx, 0xa0000001
shr ecx, 1
mov dword [ebp - 0x10], ecx
test al, 2
je 0x415a63
mov dword [ebp - 0x1c], esi
test al, 1
je 0x415a6e
mov dword [ebp - 4], 0x88800000
test al, 0x10
je 0x415a79
xor dword [ebp - 4], 0x8000000
cmp dword [ebp - 0xc], 0xffffffff
jne 0x415a8d
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 0x415aa1
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 esi
push esi
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
push esi
push dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [ebp - 0x28]
push esi
sub eax, dword [ebp - 0x30]
push esi
push esi
mov ecx, edi
push dword [0x4654b4]
push eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
call fcn.00405163
mov ecx, eax
call fcn.0040313f
mov edi, dword [sym.imp.USER32.dll_CreateWindowExA]
push eax
push str.AutoIt_v3
push dword [ebp - 0x1c]
call edi
lea ecx, [ebp - 0x34]
mov dword [0x465498], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
sub ebx, dword [ebp - 0x34]
cmp dword [ebp + 0x10], esi
mov dword [ebp - 0xc], eax
jne 0x415c54
push esi
push esi
push esi
mov dword [ebp - 0x1c], esi
push dword [0x465498]
push eax
push ebx
push esi
push esi
push 0x5000000e
push esi
push str.static
push esi
call edi
mov ecx, dword [ebp + 8]
push esi
push esi
push 3
push esi
push esi
push connect
push 1
mov dword [ebp + 0x10], eax
call fcn.00405163
mov ecx, eax
call fcn.0040313f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x415e4a
push esi
push edi
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]
lea ecx, [ebp - 0x24]
push esi
push ecx
push dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
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 0x450270
push esi
push esi
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x415e4a
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push eax
call dword [ecx + 0xc]
push 0x2000
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp + 0xc]
push esi
push 0x172
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0xc]
push 0x20
mov dword [0x465494], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x415e3c
push esi
push esi
push esi
mov ecx, dword [ebp + 8]
push dword [0x465498]
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x1c], 0x190
push eax
push ebx
push esi
push esi
push dword [ebp - 0x10]
push 1
call fcn.00405163
mov ecx, eax
call fcn.0040313f
push eax
push str.static
push esi
call edi
push esi
push esi
push esi
push str.DISPLAY
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateDCA]
push 0x11
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x78]
push eax
push 0x40
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_GetTextFaceA]
push 0x5a
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp + 0xc], 8
jb 0x415d1a
mov ecx, dword [ebp + 8]
push 7
call fcn.00405163
mov ecx, eax
call fcn.0040313f
push eax
call fcn.004401c0
cmp eax, 1
pop ecx
jb 0x415d1a
mov ecx, dword [ebp + 8]
push 7
call fcn.00405163
mov ecx, eax
call fcn.0040313f
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00440a20
pop ecx
pop ecx
cmp dword [ebp + 0xc], 9
jb 0x415d4a
mov ecx, dword [ebp + 8]
push 8
call fcn.00405163
mov ecx, eax
call fcn.004031f5
cmp eax, 6
jl 0x415d4a
mov ecx, dword [ebp + 8]
push 8
call fcn.00405163
mov ecx, eax
call fcn.004031f5
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0xc], 0xa
jb 0x415d91
mov ecx, dword [ebp + 8]
push 9
call fcn.00405163
mov ecx, eax
call fcn.004031f5
test eax, eax
jl 0x415d91
mov ecx, dword [ebp + 8]
push 9
call fcn.00405163
mov ecx, eax
call fcn.004031f5
cmp eax, 0x3e8
jg 0x415d91
mov ecx, dword [ebp + 8]
push 9
call fcn.00405163
mov ecx, eax
call fcn.004031f5
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
push esi
push 2
push esi
push 4
push 1
push esi
push esi
push esi
push dword [ebp - 0x1c]
cdq
push esi
push esi
push esi
push 0xffffffffffffffb8
pop ecx
idiv ecx
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push 1
push eax
push 0x30
mov dword [0x46549c], eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [ebp - 0x24], 0x20
je 0x415e3c
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x46549c]
mov dword [ebp + 0xc], eax
push eax
call edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push 1
call fcn.00405163
mov ecx, eax
call fcn.0040313f
push eax
push dword [ebp + 0xc]
call fcn.0043e035
add esp, 0xc
push dword [ebp - 0x24]
push dword [ebp + 0xc]
call edi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0xc]
push 1
sub eax, dword [ebp - 0x1c]
push dword [ebp - 0x1c]
cdq
sub eax, edx
push ebx
sar eax, 1
push eax
push esi
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_MoveWindow]
push 4
push dword [0x465498]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc