Function at 0x10034ee
Capabilities:
Check mutex on windows
Create thread
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001348
push 0x10045f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x500
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x400
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_RegisterServiceProcess]
mov eax, dword [ebp + 8]
mov dword [0x100a958], eax
push 0x1001330
push edi
push 1
push edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
call esi
mov dword [ebp - 0x24], eax
call fcn.01003d37
test eax, eax
je 0x10036ea
push 0x100131c
push 0x170
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x428], eax
cmp eax, edi
je 0x10036ea
push 0x100130c
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x43c], eax
cmp eax, edi
jne 0x10035ca
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10036ea
push 0x10012fc
push edi
push edi
push edi
call esi
mov ebx, eax
mov dword [ebp - 0x430], ebx
cmp ebx, edi
jne 0x10035f9
push dword [ebp - 0x43c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x428]
jmp 0x10036e8
push 0x10012e8
push edi
push edi
push edi
call esi
mov dword [ebp - 0x42c], eax
cmp eax, edi
jne 0x1003629
push dword [ebp - 0x43c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x428]
call esi
push ebx
jmp 0x10036e8
push 0x10012cc
push edi
push 1
push edi
call esi
mov dword [0x100a92c], eax
cmp eax, edi
jne 0x1003661
push dword [ebp - 0x43c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x428]
call esi
push ebx
call esi
push dword [ebp - 0x42c]
jmp 0x10036e8
push 0x10012b0
push 1
push 1
push edi
call esi
mov dword [0x100a930], eax
cmp eax, edi
jne 0x100369f
push dword [ebp - 0x43c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x428]
call esi
push ebx
call esi
push dword [ebp - 0x42c]
call esi
push dword [0x100a92c]
jmp 0x10036e8
lea eax, [ebp - 0x438]
push eax
push edi
push edi
push 0x10032d3
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0x10036fd
push dword [ebp - 0x42c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x43c]
call esi
push dword [ebp - 0x428]
call esi
push ebx
call esi
push dword [0x100a92c]
call esi
push dword [0x100a930]
call esi
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push 6
pop ecx
xor eax, eax
mov edx, 0x100a940
mov edi, edx
rep stosd dword es:[edi], eax
push edx
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call esi
push 6
pop ecx
xor eax, eax
mov edx, 0x100a980
mov edi, edx
rep stosd dword es:[edi], eax
push edx
call esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetEvent]
and dword [ebp - 0x440], 0
push 0xffffffffffffffff
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1003737
push 0x100a940
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call edi
xor eax, eax
push eax
push eax
push eax
push 0xf001f
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x1c], esi
xor ecx, ecx
cmp esi, ecx
jne 0x100378c
push 0x100a940
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1003737
mov eax, dword [esi]
dec eax
cmp eax, 0x1d
ja case.0x1003798.19
jmp dword [eax*4 + 0x1003c92]
push dword [esi + 4]
push dword [esi + 0xc]
lea eax, [esi + 0x18]
push eax
call fcn.01002cab
add esp, 0xc
jmp case.0x1003798.19
push dword [esi + 4]
call fcn.01002c51
jmp 0x1003c55
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x448], eax
mov eax, dword [esi + 0x164]
mov dword [ebp - 0x44c], eax
push dword [esi + 0x15c]
push 0x1001294
lea eax, [ebp - 0x48c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x48c]
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
mov dword [ebp - 0x444], edi
lea eax, [ebp - 0x438]
push eax
xor eax, eax
push eax
lea ecx, [ebp - 0x44c]
push ecx
push 0x1003141
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x494], eax
test eax, eax
je case.0x1003798.19
push 0xc
call fcn.01003d0a
pop ecx
test eax, eax
je 0x100385e
mov ecx, dword [esi + 0x15c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov ecx, dword [0x100a960]
mov dword [eax], ecx
mov dword [0x100a960], eax
push dword [ebp - 0x494]
jmp 0x1003bf2
xor edx, edx
mov eax, dword [0x100a960]
cmp eax, ecx
je case.0x1003798.19
mov edi, dword [esi + 0x15c]
cmp dword [eax + 4], edi
je 0x1003890
mov edx, eax
mov eax, dword [eax]
cmp eax, ecx
jne 0x100387e
jmp case.0x1003798.19
cmp edx, ecx
mov ecx, dword [eax]
jne 0x100389e
mov dword [0x100a960], ecx
jmp 0x10038a0
mov dword [edx], ecx
mov edi, dword [eax + 8]
push eax
call fcn.01003d1d
pop ecx
mov dword [0x100a4d8], 1
push edi
jmp 0x1003c13
cmp dword [0x100a8cc], ecx
jne case.0x1003798.19
mov dword [0x100a8cc], 1
lea eax, [ebp - 0x438]
push eax
push ecx
push ecx
push 0x1004078
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1003bf1
and dword [0x100a8cc], eax
jmp case.0x1003798.19
push esi
call fcn.010033ac
jmp 0x1003c55
push esi
call fcn.01003488
jmp 0x1003c55
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 8], eax
jmp case.0x1003798.19
push dword [esi + 0x14]
lea eax, [esi + 0x11c]
push eax
lea eax, [esi + 0x18]
push eax
call fcn.01002d71
add esp, 0xc
jmp 0x1003c35
lea eax, [esi + 0x18]
push eax
call fcn.01002e0a
pop ecx
mov dword [ebp - 0x440], eax
jmp case.0x1003798.19
push 0x100a980
call edi
mov edi, dword [0x100a910]
test edi, edi
je 0x100397f
push dword [edi + 4]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x100397b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [edi]
jmp 0x100395a
push 0x100a980
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.0x1003798.19
call fcn.01002f99
mov eax, dword [0x1008020]
cmp eax, 0xffffffff
je 0x10039a1
push eax
call ebx
mov eax, dword [0x1008024]
cmp eax, 0xffffffff
je 0x10039ae
push eax
call ebx
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp - 0x43c]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x428]
call ebx
push dword [ebp - 0x430]
call ebx
push dword [0x100a92c]
call ebx
push dword [0x100a930]
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp case.0x1003798.19
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [ebp - 0x4b4], eax
push 0x20
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
xor eax, eax
push eax
push eax
push eax
push dword [esi + 0x160]
push dword [esi + 0x15c]
push dword [esi + 0x164]
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov dword [esi + 0x16c], eax
push dword [ebp - 0x4b4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
cmp dword [esi + 0x16c], 0
jne case.0x1003798.19
lea eax, [ebp - 0x4bc]
push eax
mov eax, dword [esi + 0x164]
push dword [eax]
call dword [sym.imp.WINMM.dll_waveOutGetVolume]
test eax, eax
jne case.0x1003798.19
push dword [ebp - 0x4bc]
mov eax, dword [esi + 0x164]
push dword [eax]
call dword [sym.imp.WINMM.dll_waveOutSetVolume]
jmp case.0x1003798.19
push dword [esi + 0x15c]
call dword [sym.imp.WINMM.dll_waveOutClose]
jmp 0x1003c35
mov eax, dword [esi + 0x15c]
push 1
push dword [esi + 0x160]
push dword [esi + 0x164]
mov ecx, eax
shr ecx, 1
push ecx
push eax
call dword [sym.imp.WINMM.dll_timeSetEvent]
jmp 0x1003c35
push dword [esi + 0x15c]
call dword [sym.imp.WINMM.dll_timeKillEvent]
jmp 0x1003c35
lea eax, [esi + 0x168]
cmp dword [eax], ecx
jne 0x1003afd
lea edx, [ebp - 0x4c0]
jmp 0x1003afb
lea eax, [esi + 0x168]
cmp dword [eax], ecx
jne 0x1003afd
lea edx, [ebp - 0x4c4]
mov dword [eax], edx
push dword [eax]
push dword [esi + 0x160]
push dword [esi + 0x15c]
push dword [esi + 0x164]
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1003c35
mov dword [ebp - 4], ecx
push dword [esi + 0x168]
call dword [esi + 0x164]
or dword [ebp - 4], 0xffffffff
jmp case.0x1003798.19
call fcn.01002e5b
jmp 0x1003c35
call fcn.01002e88
jmp 0x1003c35
mov eax, dword [esi + 0x15c]
mov dword [0x100a4e4], eax
jmp case.0x1003798.19
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x510], eax
mov eax, dword [esi + 0x164]
mov dword [ebp - 0x514], eax
push dword [esi + 0x15c]
push 0x1001278
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x504]
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
mov dword [ebp - 0x50c], edi
lea eax, [ebp - 0x438]
push eax
xor eax, eax
push eax
lea ecx, [ebp - 0x514]
push ecx
push 0x100319e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je case.0x1003798.19
mov ecx, dword [esi + 0x15c]
mov dword [0x100a924], ecx
mov dword [0x100a928], edi
push eax
call ebx
jmp case.0x1003798.19
mov eax, dword [0x100a924]
cmp eax, dword [esi + 0x15c]
jne case.0x1003798.19
mov dword [0x100a4dc], 1
push dword [0x100a928]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp case.0x1003798.19
push dword [esi + 0x15c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1003c35
push dword [esi + 0x15c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x16c], eax
jmp case.0x1003798.19
push dword [esi + 0x164]
call fcn.01002eb5
jmp 0x1003c55
push dword [esi + 0x164]
call fcn.01002ed6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x100a940
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x440], 0
je 0x1003737
push dword [ebp - 0x440]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1003737