Function at 0x4027f0
Capabilities:
Check mutex on windows
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xea0
push ebx
push ebp
push esi
push edi
push str.PDVDSERV
push 1
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x40e900], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402840
mov eax, dword [0x40e900]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40e900], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
call fcn.00402cb0
add esp, 4
call fcn.00402780
mov ecx, dword [str.PDVDSERV_Dummy_Window]
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x80880000
push ebp
push ecx
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
push ebp
mov dword [0x40e904], eax
mov dword [esp + 0x14], ebp
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x10]
push edx
push 0x40b25c
push 1
push ebp
push 0x40b26c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4028b7
mov ecx, dword [0x40e904]
cmp ecx, ebp
je 0x4028b7
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push ebp
push ecx
push eax
call dword [edx + 0xc]
push str.hodll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebp
je 0x4028d4
push str.installhook
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
xor eax, eax
mov word [esp + 0x690], bp
mov ecx, 0x207
lea edi, [esp + 0x692]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x488], bp
mov ecx, 0x81
lea edi, [esp + 0x48a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x30], bp
mov ecx, 0x81
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x34]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str..IMP
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x490]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
mov ecx, 0x94
lea edi, [esp + 0x238]
lea edx, [esp + 0x238]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x48c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4029ec
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [esp + 0x264]
push ecx
call edi
push eax
call fcn.00403da9
add esp, 4
cmp eax, 4
jne 0x4029d6
lea edx, [esp + 0x264]
push edx
lea eax, [esp + 0x694]
push eax
call fcn.00403d05
lea ecx, [esp + 0x698]
push 0x40ba18
push ecx
call fcn.00403d05
add esp, 0x10
lea edx, [esp + 0x238]
push edx
push esi
call ebx
test eax, eax
jne 0x402994
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.00403670
lea eax, [esp + 0x690]
push eax
call fcn.004032e0
lea ecx, [esp + 0x694]
push ecx
call fcn.00401b80
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 8
push ebp
push ebp
push ebp
lea edx, [esp + 0x20]
push edx
mov dword [0x40eb10], eax
call esi
test eax, eax
je 0x402a4f
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x14]
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
call ebx
push ebp
push ebp
push ebp
lea edx, [esp + 0x20]
push edx
call esi
test eax, eax
jne 0x402a33
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x402a6b
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x10], ebp
call fcn.00403270
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x40e900]
cmp eax, ebp
je 0x402a86
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10