Function at 0x416980
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x465574
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x49001c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x49001c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::operator_struct_HWND____void_const]
push 0xfffffffffffffff0
mov esi, ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
push eax
push 0xfffffffffffffff0
mov ecx, esi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 4]
lea edi, [esi + 0x24]
push eax
mov ecx, edi
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMPaintManager::Init_struct_HWND____]
lea ecx, [esp + 0x3c]
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMDialogBuilder::constructor_void_]
push edi
push 0
push 0x46a30c
push 3
push str.CustomFlashWnd
push 0x9a
lea ecx, [esp + 0x54]
mov dword [esp + 0xa0], 0
call dword [sym.imp.K8UIRender.dll_public:_class_GameMgr::GMControl____thiscall_GameMgr::GMDialogBuilder::Create_wchar_t_const___char_const___unsigned_int__wchar_t_const___class_GameMgr::IDialogBuilderCallback___class_GameMgr::GMPaintManager__]
push eax
mov ecx, edi
call dword [sym.imp.K8UIRender.dll_public:_bool___thiscall_GameMgr::GMPaintManager::AttachDialog_class_GameMgr::GMControl__]
lea ecx, [esi + 0x20]
push ecx
mov ecx, edi
call dword [sym.imp.K8UIRender.dll_public:_bool___thiscall_GameMgr::GMPaintManager::AddNotifier_class_GameMgr::INotify__]
mov eax, dword [esi + 0x214]
test eax, eax
je 0x416b3b
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x214]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x250
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x88], 1
je 0x416a9b
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x214]
push eax
push ecx
mov ecx, esi
call ebx
mov edx, dword [esp + 0x2c]
push eax
push edx
call fcn.004157b0
jmp 0x416a9d
xor eax, eax
mov byte [esp + 0x88], 0
mov dword [esi + 0x210], eax
mov edx, dword [eax]
push 1
mov ecx, eax
mov eax, dword [edx + 8]
push 1
call eax
mov ebx, dword [esi + 0x214]
test ebx, ebx
je 0x416aec
push 0xfffffffffffffffc
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push esi
push str.hFlashWndObject
push ebx
mov dword [esi + 0x220], eax
call dword [sym.imp.USER32.dll_SetPropW]
push 0x417d40
push 0xfffffffffffffffc
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 0x218]
test eax, eax
je 0x416b35
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ebx, dword [esi + 0x218]
test ebx, ebx
je 0x416b35
push 0xfffffffffffffffc
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push esi
push str.hFlashWndObject
push ebx
mov dword [esi + 0x224], eax
call dword [sym.imp.USER32.dll_SetPropW]
push 0x417f20
push 0xfffffffffffffffc
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ebx, dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::operator_struct_HWND____void_const]
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call dword [sym.imp.K8UIRender.dll_public:_struct_tagSIZE___thiscall_GameMgr::GMPaintManager::GetMinWindow_void_]
mov edi, dword [eax]
mov ecx, dword [esi + 0x214]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x14]
je 0x416bae
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
sub ecx, dword [esp + 0x14]
lea edx, [edi - 2]
imul eax, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 4
sub edx, edi
add eax, 0x1a
push eax
push edi
sub ecx, eax
push ecx
push edx
push 0
mov ecx, esi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
call dword [sym.imp.K8Common.dll_public:_static_class_GameMgr::GMSoundCtrl____cdecl_GameMgr::GMSoundCtrlSingleton::Instance_void_]
mov ecx, eax
call dword [sym.imp.K8Common.dll_public:_bool___thiscall_GameMgr::GMSoundCtrl::GetMute_void_]
push eax
push esi
call fcn.004181a0
mov ecx, esi
call fcn.004183e0
mov eax, dword [esi + 0x228]
test eax, eax
je 0x416bf3
mov eax, dword [eax + 0x550]
test eax, eax
je 0x416bf3
lea ecx, [eax - 0x210]
test ecx, ecx
je 0x416bf3
call fcn.0040de40
mov byte [esi + 0x250], al
lea ecx, [esp + 0x3c]
mov dword [esp + 0x88], 0xffffffff
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMDialogBuilder::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0045d098
mov esp, ebp
pop ebp
ret 0x10