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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
or dword [ebp - 0x18], 0xffffffff
or dword [ebp - 0x1c], 0xffffffff
push ebx
push esi
xor ebx, ebx
push edi
mov edi, 0x50000001
mov dword [ebp - 0xc], 0x1f4
mov dword [ebp - 4], 0x190
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], 0x88c00000
mov dword [ebp - 0x10], 8
cmp dword [0x4c30dc], ebx
je 0x45ccbe
mov eax, dword [0x4c30e0]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x45cc9a
push eax
call esi
mov dword [0x4c30e0], ebx
mov eax, dword [0x4c30d8]
test eax, eax
je 0x45ccac
push eax
call esi
mov dword [0x4c30d8], ebx
push dword [0x4c30dc]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4c30dc], ebx
cmp dword [ebp + 0x10], 2
je 0x45d1b7
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp esi, 3
jb 0x45cd02
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 8]
call fcn.004056be
cmp eax, 0xffffffff
je 0x45cd02
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 8]
call fcn.004056be
mov dword [ebp - 0xc], eax
cmp esi, 4
jb 0x45cd25
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0xc]
call fcn.004056be
cmp eax, 0xffffffff
je 0x45cd25
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc]
call fcn.004056be
mov dword [ebp - 4], eax
cmp esi, 5
jb 0x45cd38
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x10]
call fcn.004056be
mov dword [ebp - 0x18], eax
cmp esi, 6
jb 0x45cd4b
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x14]
call fcn.004056be
mov dword [ebp - 0x1c], eax
cmp esi, 7
jb 0x45cddb
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x18]
call fcn.004056be
cmp eax, 0xffffffff
je 0x45cddb
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
call fcn.004056be
cmp dword [ebp + 0x10], 1
mov ecx, eax
mov dword [ebp - 0x30], ecx
jne 0x45cda3
test cl, 8
je 0x45cd89
mov eax, 0x50000002
mov dword [ebp - 0x14], eax
jmp 0x45cd8b
mov eax, edi
test cl, 4
je 0x45cda0
movsx eax, al
and eax, 2
or eax, 0xa0000001
shr eax, 1
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x14]
mov al, cl
and al, 2
movsx eax, al
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x10], esi
test cl, 1
je 0x45cdc7
mov eax, 0x88800000
mov dword [ebp - 8], eax
jmp 0x45cdcc
mov eax, 0x88c00000
test cl, 0x10
je 0x45cdde
xor eax, 0x8000000
mov dword [ebp - 8], eax
jmp 0x45cdde
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0x18], 0xffffffff
mov ecx, dword [ebp - 0xc]
jne 0x45cdf4
mov eax, dword [ebp - 0x24]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x45ce08
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
push esi
push 0
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [ebx + 4]
mov esi, dword [eax]
mov ecx, esi
call fcn.004121ab
mov eax, dword [esi + 8]
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [eax]
xor eax, eax
push eax
push eax
push eax
push dword [0x4c30e8]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 8]
push ecx
push 0x49fab8
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov dword [0x4c30dc], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x28]
cmp dword [ebp + 0x10], 0
jne 0x45cfcf
xor edi, edi
push edi
push edi
push edi
push dword [0x4c30dc]
mov dword [ebp + 0x10], edi
push eax
push ecx
push edi
push edi
push 0x5000000e
push edi
push 0x4b3a28
push edi
call esi
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x30], eax
mov esi, dword [ecx + 4]
mov ecx, esi
call fcn.004121ab
mov ecx, dword [esi + 8]
push edi
push edi
push 3
push edi
push edi
push SysReAllocString
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45d1b7
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push esi
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, [ebp - 4]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
jne 0x45cf30
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp 0x45d1b7
lea eax, [ebp + 8]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp + 0x10]
push eax
push 0x48f9bc
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45d1b7
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
push 0x2000
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp + 0xc]
mov esi, dword [ebp - 0x30]
push ebx
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0xc]
mov dword [0x4c30d8], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push 0x20
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x45d1a9
sub eax, 0x16
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
sub ecx, 0x16
mov esi, dword [eax + 4]
mov dword [ebp + 0x10], ecx
mov ecx, esi
call fcn.004121ab
mov eax, dword [esi + 8]
xor esi, esi
push esi
push esi
push esi
push dword [0x4c30dc]
push dword [ebp - 4]
push dword [ebp + 0x10]
push 0xb
push 0xb
push edi
push dword [eax]
push 0x4b3a28
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push esi
push esi
push esi
mov edi, eax
push str.DISPLAY
mov dword [ebp - 8], edi
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, [ebp - 0xb8]
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 [ebp - 0xc], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp + 0xc], 8
jb 0x45d09a
mov ecx, dword [ebx + 4]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call fcn.004121ab
mov eax, dword [esi + 8]
push dword [eax]
call fcn.0042481b
pop ecx
cmp eax, 1
jb 0x45d09a
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call fcn.004121ab
mov eax, dword [esi + 8]
push dword [eax]
lea eax, [ebp - 0xb8]
push eax
call fcn.00424863
pop ecx
pop ecx
cmp dword [ebp + 0xc], 9
jb 0x45d0bf
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
call fcn.004056be
cmp eax, 6
jl 0x45d0bf
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
call fcn.004056be
mov esi, eax
jmp 0x45d0c2
push 0xc
pop esi
cmp dword [ebp + 0xc], 0xa
jb 0x45d0f6
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x24]
call fcn.004056be
test eax, eax
js 0x45d0f6
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x24]
call fcn.004056be
cmp eax, 0x3e8
jg 0x45d0f6
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x24]
call fcn.004056be
jmp 0x45d0fb
mov eax, 0x190
lea ecx, [ebp - 0xb8]
push ecx
xor ecx, ecx
push ecx
push 2
push ecx
push 4
push 1
push ecx
push ecx
push ecx
push eax
mov eax, dword [ebp - 0xc]
imul eax, esi
push ecx
push ecx
push ecx
push 0xffffffffffffffb8
cdq
pop ecx
idiv ecx
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
push 1
push eax
push 0x30
push edi
mov dword [0x4c30e0], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [ebp - 0x30], 0x20
je 0x45d1a9
push edi
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x4c30e0]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 8]
mov edi, eax
mov ecx, dword [ecx + 4]
mov esi, dword [ecx + 4]
mov ecx, esi
call fcn.004121ab
mov edx, dword [esi + 8]
lea eax, [ebp - 0x34]
mov edx, dword [edx]
push eax
mov ecx, ebx
call fcn.0044a9ce
pop ecx
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [ebp - 8]
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x30]
push 1
push dword [ebp - 0x30]
cdq
push dword [ebp + 0x10]
sub eax, edx
sar eax, 1
add eax, 0xb
push eax
push 0xb
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
push 4
push dword [0x4c30dc]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc