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

Disassembly:
sub esp, 0xac
push ebx
mov ebx, dword [esp + 0xb4]
push ebp
push esi
or ebp, 0xffffffff
cmp dword [0x4972a4], 0
push edi
mov dword [esp + 0x14], 0x1f4
mov dword [esp + 0x18], 0x190
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], 0x50000001
mov esi, 0x88c00000
lea edi, [ebp + 9]
je 0x459417
mov eax, dword [0x4972a8]
test eax, eax
je 0x4593e7
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x4972a8], 0
mov eax, dword [0x4972a0]
test eax, eax
je 0x459401
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x4972a0], 0
mov eax, dword [0x4972a4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4972a4], 0
cmp dword [esp + 0xc8], 2
je 0x459642
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [esp + 0xc4], 3
jb 0x459460
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 8]
call fcn.0040c760
cmp eax, 0xffffffff
je 0x459460
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 8]
call fcn.0040c760
mov dword [esp + 0x14], eax
cmp dword [esp + 0xc4], 4
jb 0x459489
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0xc]
call fcn.0040c760
cmp eax, 0xffffffff
je 0x459489
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0xc]
call fcn.0040c760
mov dword [esp + 0x18], eax
cmp dword [esp + 0xc4], 5
jb 0x4594a2
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x10]
call fcn.0040c760
mov dword [esp + 0x10], eax
cmp dword [esp + 0xc4], 6
jb 0x4594b9
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x14]
call fcn.0040c760
mov ebp, eax
cmp dword [esp + 0xc4], 7
jb 0x459529
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x18]
call fcn.0040c760
cmp eax, 0xffffffff
je 0x459529
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
call fcn.0040c760
cmp dword [esp + 0xc8], 1
mov dword [esp + 0x1c], eax
jne 0x459510
test al, 8
je 0x4594f8
mov dword [esp + 0x30], 0x50000002
test al, 4
je 0x459510
movsx ecx, byte [esp + 0x30]
and ecx, 2
or ecx, 0xa0000001
shr ecx, 1
mov dword [esp + 0x30], ecx
test al, 2
je 0x459516
xor edi, edi
test al, 1
je 0x45951f
mov esi, 0x88800000
test al, 0x10
je 0x459529
xor esi, 0x8000000
cmp dword [esp + 0x10], 0xffffffff
jne 0x459541
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x459555
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push edi
push 0
push esi
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov ecx, dword [0x4972c0]
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x24]
push ecx
push ebp
push edx
push esi
push eax
call fcn.00453081
mov ebp, dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
push str.Sordumorg
push edi
call ebp
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [0x4972a4], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
sub esi, dword [esp + 0x20]
sub edi, dword [esp + 0x24]
cmp dword [esp + 0xc8], 0
push 0
push 0
push 0
jne 0x459760
mov edx, dword [0x4972a4]
push edx
push edi
push esi
push 0
push 0
push 0x5000000e
push 0
push str.static
push 0
mov dword [esp + 0x44], 0
call ebp
push 0
push 0
push 3
push 0
mov ebp, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
push 0
push accept
push eax
call fcn.00453081
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x459651
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
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 ecx, [esp + 0x20]
push ecx
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 edx, [esp + 0x18]
push edx
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push 0x482a20
push 0
push 0
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x459642
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [esp + 0x10]
push 0x2000
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x172
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push 0x20
push eax
push ecx
push 0
push 0
push 0
push ebp
mov dword [0x4972a0], edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x4972a4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
ret 0xc
mov ecx, dword [0x4972a4]
mov edx, dword [ebx + 4]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x3c]
push ecx
sub edi, 0x16
push edi
sub esi, 0x16
push esi
push 0xb
push 0xb
push edx
push eax
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x38], 0x190
call fcn.00453081
push eax
push str.static
push 0
call ebp
push 0
push 0
push 0
push str.DISPLAY
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_CreateDCW]
push 0x11
mov ebp, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x38]
push eax
push 0x40
push ebp
call dword [sym.imp.GDI32.dll_GetTextFaceW]
push 0x5a
push ebp
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebp, dword [esp + 0xc4]
cmp ebp, 8
jb 0x459827
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x1c]
push eax
call fcn.00453081
push eax
call fcn.004112d5
add esp, 4
cmp eax, 1
jb 0x459827
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x1c]
push eax
call fcn.00453081
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00411691
add esp, 8
cmp ebp, 9
jb 0x45984b
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x20]
call fcn.0040c760
cmp eax, 6
jl 0x45984b
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x20]
call fcn.0040c760
mov dword [esp + 0x14], eax
cmp ebp, 0xa
jb 0x45987e
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x24]
call fcn.0040c760
test eax, eax
jl 0x45987e
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x24]
call fcn.0040c760
cmp eax, 0x3e8
jg 0x45987e
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x24]
call fcn.0040c760
jmp 0x459882
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
push 0
push 2
push 0
push 4
push 1
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x58]
imul eax, dword [esp + 0x3c]
mov ecx, 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 ebp, dword [esp + 0x18]
push 1
push eax
push 0x30
push ebp
mov dword [0x4972a8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [esp + 0x1c], 0x20
je 0x459949
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x4972a8]
mov ebp, eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 4]
push ecx
push eax
call fcn.00453081
push eax
push ebp
call fcn.0043609c
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [esp + 0x18]
push ebp
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x34]
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 [0x4972a4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
ret 0xc