Function at 0x4019d6
Capabilities:
Check mutex on windows
Create thread

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401010
push 0x4034f0
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x18], esp
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_RegisterServiceProcess]
mov eax, dword [ebp + 8]
push str.__DDHelpStartupEvent__
push esi
mov dword [0x40714c], eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
call fcn.0040215c
test eax, eax
jne 0x401a53
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.__DDHelpShared__
xor edi, edi
push 0x170
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x401a3e
push str.__DDHelpMutex__
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jne 0x401a93
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401a3e
push str.__DDHelpEvent__
xor edi, edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x28], eax
cmp eax, edi
jne 0x401ac1
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401a3e
push str.__DDHelpAckEvent__
xor edi, edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x30], eax
cmp eax, edi
jne 0x401af8
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401a3e
lea eax, [ebp - 0x3c]
xor edi, edi
push eax
push edi
push edi
push 0x401828
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x401b3a
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401a3e
push eax
lea edi, [ebp - 0x70]
mov ebx, 6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, 0x407150
xor eax, eax
mov edi, edx
mov ecx, ebx
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor esi, esi
push 0xffffffffffffffff
push dword [ebp - 0x28]
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x401b74
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push esi
push esi
push 0xf001f
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x401bb7
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x401b74
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
dec eax
cmp eax, 0x13
ja case.default.0x401bc6
jmp dword [eax*4 + 0x402018]
push dword [ebp - 0x1c]
call fcn.004018fb
add esp, 4
jmp case.default.0x401bc6
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
push dword [eax + 0xc]
add eax, 0x18
push eax
call fcn.00402068
add esp, 0xc
jmp case.default.0x401bc6
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call fcn.004015b5
add esp, 4
jmp case.default.0x401bc6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
jmp case.default.0x401bc6
mov esi, dword [ebp - 0x1c]
push dword [esi + 0x14]
lea eax, [esi + 0x11c]
push eax
lea eax, [esi + 0x18]
push eax
call fcn.00401480
add esp, 0xc
mov dword [esi + 0x16c], eax
jmp case.default.0x401bc6
mov eax, dword [ebp - 0x1c]
add eax, 0x18
push eax
call fcn.0040151d
add esp, 4
mov dword [ebp - 0x34], eax
jmp case.default.0x401bc6
call fcn.00401573
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp case.default.0x401bc6
push 0x407150
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x40716c]
test edi, edi
je 0x401cd4
push dword [edi + 4]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x401cce
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [edi]
test edi, edi
jne 0x401cb1
push 0x407150
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x401bc6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push 0x20
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add edi, 0x16c
push ebx
lea esi, [ecx + 0x164]
push ebx
push ebx
push dword [ecx + 0x160]
push dword [ecx + 0x15c]
push dword [esi]
call dword [sym.imp.WINMM.dll_waveOutOpen]
push dword [ebp - 0x44]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
cmp dword [edi], ebx
jne case.default.0x401bc6
lea eax, [ebp - 0x40]
mov ecx, dword [esi]
push eax
push dword [ecx]
call dword [sym.imp.WINMM.dll_waveOutGetVolume]
test eax, eax
jne case.default.0x401bc6
mov ecx, dword [esi]
push dword [ebp - 0x40]
push dword [ecx]
call dword [sym.imp.WINMM.dll_waveOutSetVolume]
jmp case.default.0x401bc6
mov esi, dword [ebp - 0x1c]
push dword [esi + 0x15c]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov dword [esi + 0x16c], eax
jmp case.default.0x401bc6
mov esi, dword [ebp - 0x1c]
push 1
push dword [esi + 0x160]
push dword [esi + 0x164]
mov ecx, dword [esi + 0x15c]
mov eax, ecx
shr eax, 1
push eax
push ecx
call dword [sym.imp.WINMM.dll_timeSetEvent]
mov dword [esi + 0x16c], eax
jmp case.default.0x401bc6
mov esi, dword [ebp - 0x1c]
push dword [esi + 0x15c]
call dword [sym.imp.WINMM.dll_timeKillEvent]
mov dword [esi + 0x16c], eax
jmp case.default.0x401bc6
xor esi, esi
cmp dword [0x40710c], esi
jne case.default.0x401bc6
mov dword [0x40710c], 1
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
push 0x4024a2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x401e0c
mov dword [0x40710c], esi
jmp case.default.0x401bc6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.default.0x401bc6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
lea esi, [eax + 0x15c]
mov dword [ebp - 0x54], ecx
mov edx, dword [eax + 0x164]
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x58], edx
push dword [esi]
push str.__DDHelpModeSetEvent_d__
push eax
xor ebx, ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0xb0]
push ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x50], eax
mov edi, eax
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x58]
push eax
push ebx
push ecx
push 0x401785
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je case.default.0x401bc6
push 0xc
call fcn.0040211a
add esp, 4
test eax, eax
je 0x401ea2
mov ecx, dword [esi]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov edx, dword [0x407168]
mov dword [eax], edx
mov dword [0x407168], eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.default.0x401bc6
xor ecx, ecx
mov edx, dword [0x407168]
cmp edx, ecx
je case.default.0x401bc6
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x15c]
cmp dword [edx + 4], eax
je 0x401edb
mov ecx, edx
mov edx, dword [edx]
test edx, edx
jne 0x401ec9
jmp case.default.0x401bc6
mov eax, dword [edx]
test ecx, ecx
jne 0x401ee8
mov dword [0x407168], eax
jmp 0x401eea
mov dword [ecx], eax
mov esi, dword [edx + 8]
push edx
call fcn.0040212d
add esp, 4
mov dword [0x406f90], 1
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp case.default.0x401bc6
mov eax, dword [ebp - 0x1c]
add eax, 0x168
mov dword [ebp - 0x20], eax
cmp dword [eax], 0
jne 0x401f24
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
xor edi, edi
push dword [eax]
push dword [esi + 0x160]
push dword [esi + 0x15c]
push dword [esi + 0x164]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x16c], eax
jmp case.default.0x401bc6
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0x168
mov dword [ebp - 0x20], eax
push dword [eax]
mov eax, dword [ebp - 0x1c]
call dword [eax + 0x164]
mov dword [ebp - 4], 0xffffffff
jmp case.default.0x401bc6
mov eax, dword [ebp - 0x1c]
add eax, 0x168
mov dword [ebp - 0x20], eax
cmp dword [eax], 0
jne 0x401fa3
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
xor edi, edi
push dword [eax]
push dword [esi + 0x160]
push dword [esi + 0x15c]
push dword [esi + 0x164]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x16c], eax
jmp case.default.0x401bc6
push dword [ebp - 0x1c]
call fcn.0040111d
add esp, 4
jmp case.default.0x401bc6
push dword [ebp - 0x1c]
call fcn.004011ae
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x34], 0
je 0x401b74
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401b74