Function at 0x4048a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xcc
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x58]
mov dword [esp], 0x20
mov dword [ebp - 0x9c], eax
call sym._GetSystemMetrics_4
sub esp, 4
add eax, eax
mov dword [esp], 0x21
mov dword [ebp - 0xa0], eax
call sym._GetSystemMetrics_4
sub esp, 4
mov esi, eax
mov dword [esp], 4
call sym._GetSystemMetrics_4
lea edi, [esi + eax*2]
mov eax, dword [0x5655c8]
sub esp, 4
test eax, eax
je 0x40492f
mov dword [esp + 4], 0xfffffff0
mov dword [esp], eax
call sym._GetWindowLongW_8
sub esp, 8
or eax, 0x42000000
mov dword [esp + 8], eax
mov eax, dword [0x5655c8]
mov dword [esp + 4], 0xfffffff0
mov dword [esp], eax
call sym._SetWindowLongW_12
sub esp, 0xc
cmp byte [0x55d041], 0
mov edx, dword [0x55d0a0]
je 0x404bf8
mov eax, dword [ebp - 0x9c]
add edi, dword [0x55d060]
mov dword [esp + 8], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov eax, dword [0x5655c8]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0xa0]
add eax, dword [0x55d05c]
mov dword [esp + 4], 0x502104
mov dword [esp + 0x18], eax
mov eax, dword [0x4fc004]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], eax
mov eax, dword [0x4fc008]
mov dword [esp + 0x10], eax
mov eax, dword [0x4fc00c]
and eax, 0xefffffff
mov dword [esp + 0xc], eax
mov eax, dword [0x5655d0]
mov dword [esp], eax
call sym._CreateWindowExW_48
mov dword [0x55d09c], eax
sub esp, 0x30
test eax, eax
je 0x404cb7
mov edx, dword [0x5655c8]
test edx, edx
je 0x404a28
lea esi, [ebp - 0x98]
mov dword [esp + 8], edx
mov dword [esp + 4], str.ege__X
mov dword [esp], esi
call sym._swprintf
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateEventW_16
sub esp, 0x10
test eax, eax
je 0x404a23
call sym._GetLastError_0
cmp eax, 0xb7
je 0x404d48
mov eax, dword [0x55d09c]
mov dword [esp + 8], 0x55d040
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call sym._SetWindowLongW_12
mov eax, dword [0x55d09c]
mov dword [0x55d0c0], 0
sub esp, 0xc
mov dword [esp + 4], 5
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
test byte [0x5655d0], 8
jne 0x404cd0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x404d1b
mov eax, dword [0x5655cc]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0xc0], 0
and eax, 0x10
sete byte [ebx + 0x89]
jne 0x404d30
mov byte [ebx + 0x88], 1
mov byte [ebx + 0x8c], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x32
mov dword [esp + 4], 0x394
mov eax, dword [ebx + 0x5c]
mov dword [esp], eax
call sym._SetTimer_16
mov byte [ebx], 1
sub esp, 0x10
cmp byte [ebx + 1], 0
je 0x404b50
mov eax, dword [ebx + 0x80]
test eax, eax
jne 0x404b3b
lea esi, [ebp - 0x98]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._GetMessageW_16
sub esp, 0x10
test eax, eax
je 0x404bd0
mov dword [esp], esi
call sym._TranslateMessage_4
sub esp, 4
mov dword [esp], esi
call sym._DispatchMessageW_4
mov edi, dword [ebx + 0x80]
sub esp, 4
test edi, edi
je 0x404af0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebx + 0x80]
lea esi, [ebp - 0x98]
test eax, eax
jne 0x404b3b
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._GetMessageA_16
sub esp, 0x10
test eax, eax
je 0x404bb0
mov dword [esp], esi
call sym._TranslateMessage_4
sub esp, 4
mov dword [esp], esi
call sym._DispatchMessageA_4
mov edx, dword [ebx + 0x80]
sub esp, 4
test edx, edx
je 0x404b60
jmp 0x404b3b
mov dword [esp], 1
call sym._Sleep_4
mov eax, dword [ebx + 0x80]
sub esp, 4
test eax, eax
je 0x404b60
jmp 0x404b3b
mov dword [esp], 1
call sym._Sleep_4
mov ecx, dword [ebx + 0x80]
sub esp, 4
test ecx, ecx
je 0x404af0
jmp 0x404b3b
lea esi, [ebp - 0x98]
mov dword [esp + 4], edx
mov dword [esp], esi
call method.ege.w2mb_abi:cxx11__wchar_t_const_
mov eax, dword [ebp - 0x9c]
add edi, dword [0x55d060]
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], eax
mov eax, dword [0x5655c8]
mov dword [esp + 4], str.Easy_Graphics_Engine
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0xa0]
add eax, dword [0x55d05c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], eax
mov eax, dword [0x4fc004]
mov dword [esp + 0x14], eax
mov eax, dword [0x4fc008]
mov dword [esp + 0x10], eax
mov eax, dword [0x4fc00c]
and eax, 0xefffffff
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x98]
mov dword [esp + 8], eax
mov eax, dword [0x5655d0]
mov dword [esp], eax
call sym._CreateWindowExA_48
mov edx, dword [ebp - 0x98]
lea ecx, [ebp - 0x90]
mov dword [0x55d09c], eax
sub esp, 0x30
cmp edx, ecx
je 0x4049c0
mov dword [esp], edx
call sym.operator_delete_void_
mov eax, dword [0x55d09c]
test eax, eax
jne 0x4049c8
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [0x55d09c]
mov dword [esp + 0x18], 3
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._SetWindowPos_28
mov eax, dword [ebx + 0x18]
sub esp, 0x1c
test eax, eax
jne 0x404a7d
mov dword [esp], ebx
call method.ege.graph_init_ege::_graph_setting_
jmp 0x404a7d
mov dword [esp], method.ege.DefCloseHandler__
call method.ege.SetCloseHandler_void______
jmp 0x404aa3
mov eax, dword [0x55d09c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], eax
call sym._PostMessageA_16
sub esp, 0x10
jmp 0x404a23