Function at 0x51d750
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.00412740
mov ecx, ebx
call fcn.0051d540
lea eax, [ebx + 0xc8]
push eax
push ecx
mov ecx, esp
push str.m_media_auto
call fcn.00412740
mov ecx, ebx
call fcn.0051d540
lea ecx, [ebx + 0xcc]
push ecx
push ecx
mov ecx, esp
push str.m_media_player
call fcn.00412740
mov ecx, ebx
call fcn.0051d540
mov edx, dword [ebx + 4]
push edx
call fcn.00407630
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.00411430
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.00412740
mov ecx, ebx
call fcn.0051d540
mov edx, dword [0x562a00]
lea eax, [esp + 0x10]
push edx
push str.Filter
push str.Preview
push eax
call fcn.0048def0
mov edi, eax
mov eax, dword [0x562a00]
add esp, 0x10
mov esi, dword [edi]
cmp eax, esi
je 0x51d8da
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x51d86d
mov ecx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x51d874
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x51d8be
mov edi, dword [esi - 8]
mov ecx, 0x562a00
push edi
mov dword [esp + 0x18], edi
call fcn.00405660
test eax, eax
je 0x51d8da
lea eax, [edi + edi]
mov edi, dword [0x562a00]
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 [0x562a00]
mov dword [ecx - 8], edx
mov ecx, dword [0x562a00]
mov word [eax + ecx], 0
jmp 0x51d8da
mov ecx, 0x562a00
call fcn.00412670
mov edi, dword [edi]
mov dword [0x562a00], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x51d909
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x51d909
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
push 0
push ecx
mov ecx, esp
push 0x562a00
call fcn.00405440
call fcn.00520080
mov eax, dword [0x55a1fc]
add esp, 8
cmp eax, 6
jae 0x51d93d
cmp dword [ebx + 0xc4], 2
jl 0x51d93d
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.005296d0
add esp, 4
push eax
push 2
push ebp
call esi
push 0xf620
call fcn.005296d0
add esp, 4
push eax
push 3
push ebp
call esi
push 0xf623
call fcn.005296d0
add esp, 4
push eax
push 4
push ebp
call esi
push 0xec
call fcn.005296d0
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.00520a90
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x10