Function at 0x494650
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3f10
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x51cbc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jne 0x494985
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x4947a9
lea eax, [ebp - 0x24]
push eax
call fcn.0044d190
mov ecx, eax
call fcn.00420ac0
cmp dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
je 0x49475f
mov ecx, dword [ebx + 0x6c]
lea edi, [ebx + 0x6c]
test ecx, ecx
je 0x4946d0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.window_default_s
mov dword [edi], 0
call fcn.004205f0
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x4949a5
mov eax, dword [0x4fae94]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [0x4fae98]
mov dword [edx + 4], eax
mov eax, dword [0x4fae9c]
mov dword [edx + 8], eax
mov eax, dword [0x4faea0]
mov dword [edx + 0xc], eax
mov edx, esp
mov eax, dword [0x4faf10]
mov dword [edx], eax
mov eax, dword [0x4faf14]
mov dword [edx + 4], eax
mov eax, dword [0x4faf18]
mov dword [edx + 8], eax
mov eax, dword [0x4faf1c]
mov dword [edx + 0xc], eax
mov byte [ebp - 4], 0
call fcn.00421db0
test eax, eax
jns 0x49476e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x49475f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or eax, 0xffffffff
mov dword [esi], eax
mov eax, 1
jmp 0x494987
mov ecx, dword [edi]
test ecx, ecx
je 0x4949af
mov eax, dword [ecx]
push 1
push dword [ebx + 0x30]
push ecx
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
js 0x494755
test eax, eax
je 0x49479b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov dword [esi], eax
mov eax, 1
jmp 0x494987
cmp eax, 2
jne 0x4947fa
mov ecx, dword [ebx + 0xf4]
test ecx, ecx
je 0x4947c8
mov dword [ebx + 0xf4], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebx + 0xf8]
test ecx, ecx
je 0x4947e2
mov dword [ebx + 0xf8], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [ebx + 0x64]
call fcn.00457b90
mov dword [esi], 0
mov eax, 1
jmp 0x494987
cmp eax, 0x201
jne 0x494886
push 0
mov dword [ebx + 0xf0], 1
call sub.msvcrt.dll__time64
lea ecx, [ebx + 0xfc]
add esp, 4
cmp dword [ecx + 0x14], 8
jb 0x494827
mov ecx, dword [ecx]
push edx
push eax
push str.tempnoremind
push ecx
push SysReAllocString
call fcn.004231c0
push 0
push str.close_tempnoremind
call fcn.00490e10
add esp, 0x1c
push 0
push dword [ebx + 0x30]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0x30]
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esi], 0
cmp dword [ebx + 0xf0], 0
je 0x49491a
mov eax, 1
jmp 0x494987
cmp eax, 6
jne 0x49491a
xor eax, eax
mov dword [ebx + 0xf0], 1
cmp ax, word [ebp + 0x10]
jne 0x494907
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 0x30]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push dword [ebx + 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push dword [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
cmp eax, 1
je 0x494907
push 0
push dword [ebx + 0x30]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi], 0
cmp dword [ebx + 0xf0], 0
jne 0x49479f
mov esi, dword [ebx + 0x68]
lea ecx, [ebx + 0x64]
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00491e50
mov dword [ebx + 0x68], esi
test eax, eax
jne 0x49479f
cmp dword [ebp + 0xc], 0x104
mov ecx, dword [ebx + 0xec]
jne 0x49497f
cmp dword [ebp + 0x10], 0x73
jne 0x494976
mov eax, dword [ebp - 0x28]
shr eax, 0x1d
test al, 1
je 0x494976
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
mov eax, 1
mov dword [ebx + 0xec], ecx
jmp 0x494987
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
mov dword [ebx + 0xec], ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d55dc
mov esp, ebp
pop ebp
ret 0x18
push 0x80004003
call fcn.00497e80
push 0x80004003
call fcn.00497e80
int3