Function at 0x49c040
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x532804]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], ebx
jne 0x49c39f
mov ebx, dword [ebp + 0xc]
cmp ebx, 2
jne 0x49c0d7
push dword [edi + 0xe8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49c0c9
push dword [edi + 0xf8]
call fcn.004afeb7
push 0xfffffffffffffffc
push dword [edi + 0xe8]
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp esi, eax
jne 0x49c0c9
push dword [edi + 0x104]
push 0xfffffffffffffffc
push dword [edi + 0xe8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
je 0x49c0c9
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi + 0x104], eax
mov dword [edi + 0xe8], 0
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
jmp 0x49c383
cmp ebx, 5
jne 0x49c1f9
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [edi + 0x44]
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x1c]
mov esi, dword [eax + 0xec]
mov eax, esp
mov ecx, esi
movups xmmword [eax], xmm0
call dword [0x4da544]
lea ecx, [edi + 0x44]
call esi
push dword [edi + 4]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x49c138
push 0
push 0
push 0xb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [edi + 0x44]
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x1c]
mov eax, esp
push dword [ebp - 8]
mov esi, dword [esi + 0xf0]
mov ecx, esi
movups xmmword [eax], xmm0
call dword [0x4da544]
lea ecx, [edi + 0x44]
call esi
cmp dword [ebp - 0x24], 0
je 0x49c172
push 0
push 1
push 0xb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [ebp - 0x20]
lea eax, [edi + 0xc4]
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test eax, eax
mov dword [ebx], 0
cmove edi, ecx
cmp byte [eax + 0x1c], cl
je 0x49c1bd
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x49c1ae
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x49c1c2
test esi, esi
jne 0x49c1bd
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x49c1c2
cmp esi, 1
je 0x49c1db
mov ecx, dword [ebp + 0x14]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [edi + 0xc4]
push eax
call fcn.004906d0
mov dword [ebx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aeb30
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 0x2e0
jne 0x49c2ae
push dword [edi + 4]
call fcn.0041d760
mov ecx, dword [edi + 0x44]
add esp, 4
mov ebx, eax
mov dword [edi + 0xd8], 0xffffffff
mov dword [edi + 0xdc], 0xffffffff
mov esi, dword [ecx + 0x4c]
mov ecx, esi
push ebx
call dword [0x4da544]
lea ecx, [edi + 0x44]
call esi
mov eax, dword [edi + 0x44]
lea ecx, [ebp - 0xc]
push 1
push ecx
mov esi, dword [eax + 0xdc]
mov ecx, esi
call dword [0x4da544]
lea ecx, [edi + 0x44]
call esi
mov eax, dword [ebp - 0xc]
mov dword [edi + 0xd8], eax
mov eax, dword [ebp - 8]
push ebx
push 0x15
mov dword [edi + 0xdc], eax
call dword [0x4da528]
mov esi, eax
push ebx
push 3
neg esi
call dword [0x4da528]
add esp, 0x10
neg eax
mov ecx, eax
neg ecx
push 1
push ecx
mov ecx, esi
neg ecx
push ecx
push eax
push esi
push dword [edi + 0xe8]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x49c383
cmp ebx, 0x24
jne 0x49c325
cmp dword [edi + 0xd8], 0xffffffff
mov esi, dword [ebp + 0x14]
je 0x49c2da
cmp dword [edi + 0xdc], 0xffffffff
je 0x49c2da
mov eax, dword [edi + 0xd8]
mov ecx, dword [edi + 0xdc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
cmp byte [edi + 0x109], 0
je 0x49c2f8
push 0x3b
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x3c
mov dword [esi + 0x20], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
jmp 0x49c301
mov eax, dword [esi + 0x18]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aeb30
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 0x84
jne 0x49c380
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
cmp byte [edi + 0x109], 0
mov edx, eax
jne case.default.0x49c357
lea eax, [edx - 0xa]
cmp eax, 7
ja case.default.0x49c357
movzx ecx, byte [eax + 0x49c3b8]
jmp dword [ecx*4 + 0x49c3b4]
mov edx, 0x12
mov eax, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aeb30
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp - 0x20]
push 0
push eax
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.0049beb0
test eax, eax
jne 0x49c30d
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aeb30
mov esp, ebp
pop ebp
ret 0x18