Function at 0x4601db
Capabilities:
Get file size
Hide graphical window
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
or eax, 0xffffffff
cmp dword [0x4a85e4], 0
push esi
push edi
mov dword [ebp - 4], 0x1f4
mov dword [ebp - 0x24], 0x190
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 8], 0x50000001
mov esi, 0x88c00000
lea edi, [eax + 9]
je 0x460265
mov eax, dword [0x4a85e8]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x460239
push eax
call ebx
mov dword [0x4a85e8], 0
mov eax, dword [0x4a85e0]
test eax, eax
je 0x46024f
push eax
call ebx
mov dword [0x4a85e0], 0
mov eax, dword [0x4a85e4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4a85e4], 0
cmp dword [ebp + 0x10], 2
je 0x46045f
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0xc], 3
mov ebx, dword [ebp + 8]
jb 0x4602a7
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 8]
call fcn.0040ca20
cmp eax, 0xffffffff
je 0x4602a7
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 8]
call fcn.0040ca20
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 4
jb 0x4602cb
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0xc]
call fcn.0040ca20
cmp eax, 0xffffffff
je 0x4602cb
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0xc]
call fcn.0040ca20
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0xc], 5
jb 0x4602df
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x10]
call fcn.0040ca20
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], 6
jb 0x4602f3
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x14]
call fcn.0040ca20
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 7
jb 0x460357
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x18]
call fcn.0040ca20
cmp eax, 0xffffffff
je 0x460357
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
call fcn.0040ca20
cmp dword [ebp + 0x10], 1
mov dword [ebp - 0x2c], eax
jne 0x46033e
test al, 8
je 0x460328
mov dword [ebp - 8], 0x50000002
test al, 4
je 0x46033e
movsx ecx, byte [ebp - 8]
and ecx, 2
or ecx, 0xa0000001
shr ecx, 1
mov dword [ebp - 8], ecx
test al, 2
je 0x460344
xor edi, edi
test al, 1
je 0x46034d
mov esi, 0x88800000
test al, 0x10
je 0x460357
xor esi, 0x8000000
or ecx, 0xffffffff
cmp dword [ebp - 0x10], ecx
jne 0x46036d
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], ecx
jne 0x460380
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
push edx
push eax
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push edi
push 0
push esi
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov ecx, dword [0x4a8600]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push 0
push 0
push 0
push ecx
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
push edx
push ecx
push esi
push eax
call fcn.00457f8a
push eax
push 0x4958b0
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea edx, [ebp - 0x20]
push edx
push eax
mov dword [0x4a85e4], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
sub esi, dword [ebp - 0x20]
sub edi, dword [ebp - 0x1c]
cmp dword [ebp + 0x10], 0
push 0
push 0
push 0
jne 0x460568
mov eax, dword [0x4a85e4]
push eax
push edi
push esi
push 0
push 0
push 0x5000000e
push 0
push str.static
push 0
mov dword [ebp + 0xc], 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebx + 4]
push 0
push 0
push 3
push 0
push 0
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 4]
push accept
push eax
call fcn.00457f8a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46046a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea edx, [ebp - 0x2c]
push edx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edx, dword [ebp - 4]
lea ecx, [ebp + 0xc]
push ecx
push 0x487960
push 0
push 0
push edx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46045f
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [ebp + 8]
push 0x2000
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push ecx
push 0
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
push 0x20
push eax
push ecx
push 0
push 0
push 0
push esi
mov dword [0x4a85e0], edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x4a85e4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x4a85e4]
mov edx, dword [ebx + 4]
mov eax, dword [edx + 4]
mov edx, dword [ebp - 8]
push ecx
sub edi, 0x16
push edi
sub esi, 0x16
push esi
push 0xb
push 0xb
push edx
push eax
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x24], 0x190
call fcn.00457f8a
push eax
push str.static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 0
push 0
push str.DISPLAY
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateDCW]
push 0x11
mov ebx, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0xb0]
push eax
push 0x40
push ebx
call dword [sym.imp.GDI32.dll_GetTextFaceW]
push 0x5a
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, dword [ebp + 0xc]
cmp ebx, 8
jb 0x460634
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x1c]
push eax
call fcn.00457f8a
push eax
call fcn.00412941
add esp, 4
cmp eax, 1
jb 0x460634
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x1c]
push eax
call fcn.00457f8a
push eax
lea edx, [ebp - 0xb0]
push edx
call fcn.00412998
add esp, 8
cmp ebx, 9
jb 0x46065d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
call fcn.0040ca20
cmp eax, 6
jl 0x46065d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x20]
call fcn.0040ca20
mov dword [ebp - 4], eax
cmp ebx, 0xa
jb 0x460693
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x24]
call fcn.0040ca20
test eax, eax
js 0x460693
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x24]
call fcn.0040ca20
cmp eax, 0x3e8
jg 0x460693
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x24]
call fcn.0040ca20
jmp 0x460696
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, dword [ebp - 8]
imul ecx, dword [ebp - 4]
push 0
push 2
push 0
push 4
push 1
push 0
push 0
push 0
push eax
mov eax, 0xc71c71c7
imul ecx
sar edx, 4
push 0
mov eax, edx
push 0
shr eax, 0x1f
push 0
add eax, edx
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
mov ebx, dword [ebp + 0x10]
push 1
push eax
push 0x30
push ebx
mov dword [0x4a85e8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [ebp - 0x2c], 0x20
je 0x460757
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x4a85e8]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.00457f8a
push eax
push ebx
call fcn.00447bdd
mov edx, dword [ebp + 0xc]
add esp, 0xc
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0x24]
mov eax, edi
sub eax, ecx
cdq
push 1
push ecx
sub eax, edx
push esi
sar eax, 1
add eax, 0xb
push eax
push 0xb
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [0x4a85e4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc