Function at 0x1002d680
Capabilities:
Check mutex on windows
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100516f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4e8
mov eax, dword [0x1006099c]
push ebx
push esi
push edi
mov dword [esp + 0x4ec], eax
push 1
lea eax, [esp + 0x38]
push eax
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1002d9c8
xor esi, esi
push esi
push esi
push 1
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1002d9c8
push 6
lea edx, [esp + 0x38]
push 0x100549d8
lea ecx, [esp + 0x50]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], esi
mov byte [esp + 0x54], 0
call fcn.10001f80
push 0xa
push 0x100549cc
lea ecx, [esp + 0x50]
mov dword [esp + 0x504], esi
call fcn.10001d80
push 0xa
push 0x100549c0
lea ecx, [esp + 0x50]
call fcn.10001d80
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
jae 0x1002d74b
lea eax, [esp + 0x4c]
push eax
push esi
push esi
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002d78c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x60], 0x10
jb 0x1002d9c8
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.10036530
add esp, 4
jmp 0x1002d9c8
lea edx, [esp + 0x10]
push edx
push esi
push ebx
push 0x1002b820
push esi
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push esi
push esi
push esi
mov dword [ebx + 0x14], eax
lea eax, [esp + 0x24]
push eax
push 0xc
push esi
push 0x100537f0
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x14]
push ecx
push 0x100549b8
lea edx, [esp + 0x88]
push 0x100549b0
push edx
call fcn.10040b0b
lea eax, [esp + 0x90]
add esp, 0x10
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d7f0
sub eax, edx
mov dword [esp + 0x30], eax
jne 0x1002d82d
push 0x100549a8
push 0x100549a0
push 0x10054998
push 0x10054994
push 0x10054990
lea eax, [esp + 0x94]
push 0x10054984
push eax
call fcn.10040b0b
add esp, 0x1c
lea ecx, [esp + 0x80]
push ecx
push esi
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea ecx, [esp + 0xc]
mov dword [ebx + 0xc], eax
call fcn.10030a03
mov byte [esp + 0xe8], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0xe9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x10054944
mov ecx, 9
mov esi, 0x10054900
lea edi, [esp + 0xec]
push 0x24
lea eax, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x508], 1
call fcn.10030a13
push 0x100549b8
lea ecx, [esp + 0x68]
call fcn.10002290
lea eax, [esp + 0xe8]
mov byte [esp + 0x4fc], 2
lea edx, [eax + 1]
jmp 0x1002d8c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d8c0
sub eax, edx
push eax
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x6c]
call fcn.10001d80
cmp dword [esp + 0x7c], 0x10
mov eax, dword [esp + 0x68]
jae 0x1002d8ea
lea eax, [esp + 0x68]
push eax
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x64
push eax
mov dword [ebx + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebx + 0xc]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x30]
push edx
push 2
mov dword [ebx + 0x10], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
jne 0x1002d95e
mov eax, dword [ebx + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebx + 0xc]
push ecx
call esi
mov edx, dword [ebx + 0x14]
push edx
call esi
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x1002d9a5
push ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1002d9a5
mov ecx, ebx
call fcn.1002d200
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0x10]
push eax
push 0
push ebx
push 0x1002d650
push 0
push 0
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push ebx
push sym.Player.dll_UPAdInfo
push 0
push 0
mov dword [ebx + 4], eax
call esi
mov ecx, ebx
mov dword [ebx + 8], eax
call fcn.1002c7e0
mov ecx, ebx
call fcn.1002b9f0
lea ecx, [esp + 0x64]
call fcn.10001970
lea ecx, [esp + 0xc]
mov byte [esp + 0x4fc], 0
call fcn.10030a0c
lea ecx, [esp + 0x48]
call fcn.10001970
mov ecx, dword [esp + 0x4f4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4ec]
call fcn.1003fd01
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret