Function at 0x4913c0
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 0x49171f
mov ebx, dword [ebp + 0xc]
cmp ebx, 2
jne 0x491457
push dword [edi + 0xe8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x491449
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 0x491449
push dword [edi + 0x104]
push 0xfffffffffffffffc
push dword [edi + 0xe8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
je 0x491449
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 0x491703
cmp ebx, 5
jne 0x491579
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 0x4914b8
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 0x4914f2
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 0x49153d
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x49152e
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x491542
test esi, esi
jne 0x49153d
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x491542
cmp esi, 1
je 0x49155b
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 0x49162e
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 0x491703
cmp ebx, 0x24
jne 0x4916a5
cmp dword [edi + 0xd8], 0xffffffff
mov esi, dword [ebp + 0x14]
je 0x49165a
cmp dword [edi + 0xdc], 0xffffffff
je 0x49165a
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 0x491678
push 0x3b
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x3c
mov dword [esi + 0x20], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
jmp 0x491681
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 0x491700
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.0x4916d7
lea eax, [edx - 0xa]
cmp eax, 7
ja case.default.0x4916d7
movzx ecx, byte [eax + 0x491738]
jmp dword [ecx*4 + 0x491734]
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.00491230
test eax, eax
jne 0x49168d
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