Function at 0x51e230
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 0xc4]
push edi
push esi
push ecx
mov ecx, esp
push str.m_type
call fcn.00412590
mov ecx, ebx
call fcn.0051e020
lea eax, [ebx + 0xc8]
push eax
push ecx
mov ecx, esp
push str.m_media_auto
call fcn.00412590
mov ecx, ebx
call fcn.0051e020
lea ecx, [ebx + 0xcc]
push ecx
push ecx
mov ecx, esp
push str.m_media_player
call fcn.00412590
mov ecx, ebx
call fcn.0051e020
mov edx, dword [ebx + 4]
push edx
call fcn.004075b0
mov eax, dword [ebx + 4]
add esp, 4
push 0x3ee
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
mov dword [ebx + 0xe8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 4]
push 0xe800
push 0x5600094c
push 0
push 0x12b
push eax
mov dword [ebx + 0xe0], 0
call fcn.00411280
add esp, 0x14
mov ecx, eax
mov dword [ebx + 0xe4], eax
push 0
push 0
push 0x431
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push ecx
mov ecx, esp
push str.m_type
mov ebp, eax
call fcn.00412590
mov ecx, ebx
call fcn.0051e020
mov edx, dword [0x563ab8]
lea eax, [esp + 0x10]
push edx
push str.Filter
push str.Preview
push eax
call fcn.0048ee40
mov edi, eax
mov eax, dword [0x563ab8]
add esp, 0x10
mov esi, dword [edi]
cmp eax, esi
je 0x51e3ba
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x51e34d
mov ecx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x51e354
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x51e39e
mov edi, dword [esi - 8]
mov ecx, 0x563ab8
push edi
mov dword [esp + 0x18], edi
call fcn.00405660
test eax, eax
je 0x51e3ba
lea eax, [edi + edi]
mov edi, dword [0x563ab8]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x563ab8]
mov dword [ecx - 8], edx
mov ecx, dword [0x563ab8]
mov word [eax + ecx], 0
jmp 0x51e3ba
mov ecx, 0x563ab8
call fcn.004124c0
mov edi, dword [edi]
mov dword [0x563ab8], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x51e3e9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x51e3e9
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
push 0
push ecx
mov ecx, esp
push 0x563ab8
call fcn.00405440
call fcn.00520b60
mov eax, dword [0x55b29c]
add esp, 8
cmp eax, 6
jae 0x51e41d
cmp dword [ebx + 0xc4], 2
jl 0x51e41d
mov dword [ebx + 0xc4], 0
mov esi, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0
push 1
push ebp
call esi
push 0xe0
call fcn.0052a1a0
add esp, 4
push eax
push 2
push ebp
call esi
push 0xf620
call fcn.0052a1a0
add esp, 4
push eax
push 3
push ebp
call esi
push 0xf623
call fcn.0052a1a0
add esp, 4
push eax
push 4
push ebp
call esi
push 0xec
call fcn.0052a1a0
add esp, 4
push eax
push 5
push ebp
call esi
mov ecx, dword [ebx + 0xe4]
push ebp
push 0
push 0x430
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, ebx
call fcn.00521570
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x10