Function at 0x497870
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e810b
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x523060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xbc], eax
mov dword [edi + 0x10], eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00496ea0
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov ecx, eax
call fcn.00450470
test al, al
je 0x49792b
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
mov esi, 0x90000080
push eax
movups xmmword [ebp - 0x20], xmm0
mov eax, dword [ecx]
mov dword [ebp - 0xa8], esi
mov eax, dword [eax + 0x1c]
call eax
mov ecx, eax
call fcn.00450060
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xb8], eax
add dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb4]
dec eax
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xac]
dec eax
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xac], eax
jmp 0x497936
mov esi, 0x40000080
mov dword [ebp - 0xa8], esi
mov ecx, dword [edi + 0x10]
call fcn.0047e4c0
test al, 1
je 0x497947
or esi, 1
jmp 0x49794e
test al, 2
je 0x497954
or esi, 2
mov dword [ebp - 0xa8], esi
movups xmm0, xmmword [ebp - 0xb8]
mov esi, dword [edi + 0x10]
mov ecx, esi
push 0
sub esp, 0x10
mov eax, esp
push 0
movups xmmword [eax], xmm0
call fcn.00497b60
mov edx, dword [ebp - 0xa8]
mov ecx, esi
or edx, 0x20
test al, al
mov eax, dword [esi]
cmove edx, dword [ebp - 0xa8]
push edx
push 0
mov eax, dword [eax + 0x1c]
call eax
mov ecx, eax
call fcn.00450060
push eax
mov ecx, edi
call fcn.00456100
mov ecx, dword [edi + 0x10]
call fcn.0047e450
cmp eax, 0xffffffff
je 0x4979c1
mov ecx, dword [edi + 0x10]
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov ecx, eax
call fcn.0044f8b0
test eax, eax
jne 0x4979d4
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov ecx, eax
call fcn.0044f680
mov eax, dword [eax]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
push 0
call fcn.004974a0
push eax
push 0xc5
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
call fcn.00497b60
test al, al
je 0x497a1d
mov ecx, dword [edi + 0x10]
push 0
call fcn.004974c0
movzx eax, ax
push eax
push 0xcc
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0xa4]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004e1580
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
call fcn.00456a70
push 0
push 0
push 0xb9
push dword [edi + 4]
call esi
push 0
push 3
push 0xd3
mov ecx, edi
call fcn.00456510
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x100]
call eax
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [edi + 0x10]
push 0
call fcn.00497b70
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push 0xcf
push dword [edi + 4]
call esi
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [ebp - 0xbc]
mov esi, eax
call fcn.00497590
or esi, eax
mov ecx, edi
push esi
push 0xfffffffffffffff0
call fcn.004571f0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [edi + 0x10]
call fcn.00497b50
push dword [edi + 4]
test al, al
je 0x497b13
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
mov ecx, 1
cmove eax, ecx
push eax
push 0
jmp 0x497b1b
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push eax
push eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
push 0xb1
push dword [edi + 4]
call eax
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041141b
mov esp, ebp
pop ebp
ret 4