Function at 0x499cb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1028
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x520404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x80
call fcn.004a7d07
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x499dba
mov dword [edi + 4], 0
lea esi, [edi + 8]
mov dword [edi], vtable.tinyui::tinywin.0
mov dword [ebp - 0x14], esi
push 0x30
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a7d07
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
push 0x1c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a7d07
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x18]
mov byte [ebp - 4], 2
push ebx
mov ecx, esi
mov dword [edi], vtable.MessageWnd.0
mov dword [ebp - 0x14], esi
call fcn.00408500
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x18]
call fcn.00408500
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x30]
call fcn.00408500
lea eax, [ebx + 0x48]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x48]
call fcn.00408500
mov al, byte [ebx + 0x60]
mov byte [esi + 0x60], al
mov eax, dword [ebx + 0x64]
mov dword [esi + 0x64], eax
jmp 0x499dbc
xor edi, edi
push 0
push 0
push 0x86020000
push 0x4e6f6c
push dword [ebx + 0x64]
mov dword [ebp - 4], 0xffffffff
push edi
push str.MessageWnd.xml
push str.MessageWnd
call fcn.004078d0
add esp, 0x20
test eax, eax
jne 0x499e10
test edi, edi
je 0x499edb
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x14]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x60], 0
mov eax, dword [edi + 4]
je 0x499ed2
push 4
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push 1
push dword [edi + 4]
mov ebx, eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [edi + 4]
xor eax, eax
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x499e65
test eax, eax
je 0x499e9a
lea eax, [ebp - 0x30]
push eax
call edi
lea eax, [ebp - 0x30]
push eax
call ebx
cmp dword [ebp - 0x2c], 0x10
jne 0x499e65
cmp dword [ebp - 0x30], esi
jne 0x499e65
mov ebx, dword [ebp - 0x28]
jmp 0x499e9c
xor ebx, ebx
mov esi, dword [ebp - 0x10]
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x2c], 0x12
jne 0x499ebe
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret