Function at 0x10003d30
Capabilities:
Check mutex on windows
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005788c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc8
mov eax, dword [0x1007200c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc8]
mov eax, dword [0x100770ec]
mov dword [ebp - 0xd4], eax
call fcn.10004a90
mov dword [ebp - 0xc8], 0x10069164
mov dword [ebp - 0xc4], 0x10069128
mov dword [ebp - 0xc0], 0x100690f8
mov dword [ebp - 0xa8], 0x100690c4
mov byte [ebp - 4], 1
mov eax, dword [ebx + 8]
mov dword [ebp - 0x3c], 0xd3fc98f2
mov dword [ebp - 0x38], 0x46d58c
mov dword [ebp - 0x34], 0x2285904d
mov dword [ebp - 0x30], 0x6120d205
mov dword [ebp - 0x2c], 0xcd7eb0b5
mov dword [ebp - 0x28], 0x4245764b
mov dword [ebp - 0x24], 0xe494712a
mov dword [ebp - 0x20], 0x7aec549e
mov dword [ebp - 0x1c], 0x1c0aea05
mov dword [ebp - 0x18], 0xc0aeae60
mov eax, dword [eax - 0xc]
lea esi, [eax + eax]
lea edi, [esi + 4]
push edi
call fcn.10007f5b
add esp, 4
mov dword [ebp - 0xcc], eax
push esi
call fcn.10007f5b
mov ecx, dword [ebx + 8]
add esp, 4
mov dword [ebp - 0xd0], eax
cmp dword [ecx - 4], 1
jle 0x10003e47
push dword [ecx - 0xc]
lea ecx, [ebx + 8]
call fcn.10001860
mov ecx, dword [ebx + 8]
mov eax, dword [ebp - 0xd0]
push esi
push ecx
mov edx, esi
mov ecx, eax
call fcn.10001a00
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
add esp, 8
mov eax, dword [eax + 0x20]
call eax
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x20
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xc8]
call fcn.1000af80
push esi
push dword [ebp - 0xd0]
lea ecx, [ebp - 0xc4]
push dword [ebp - 0xcc]
call fcn.1000c330
mov eax, dword [ebp - 0xcc]
push 0xffffffffffffffff
mov dword [eax + esi], 0xa0d0a0d
push dword [0x100770fc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x10068954
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
mov dword [0x100770fc], eax
lea eax, [ebp - 0xd8]
push eax
push edi
mov edi, dword [ebp - 0xcc]
push edi
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [0x100770fc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 1
push edi
call fcn.10007f15
push 1
push dword [ebp - 0xd0]
call fcn.10007f15
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xc8], 0x1006907c
neg eax
mov dword [ebp - 0xc4], 0x10069040
and eax, 0xf
mov dword [ebp - 0xc0], 0x10069010
lea edi, [ebp - 0xa0]
mov dword [ebp - 0xa8], 0x10068fdc
add eax, edi
add esp, 0x10
mov edi, dword [ebp - 0x4c]
cmp edi, eax
jne 0x10003f53
mov ecx, dword [ebp - 0x50]
xor eax, eax
mov byte [ebp - 0x57], 0
rep stosd dword es:[edi], eax
mov byte [ebp - 4], 2
xor al, al
mov edx, dword [ebp - 0xb4]
mov edi, edx
mov ecx, dword [ebp - 0xb8]
rep stosb byte es:[edi], al
push edx
call fcn.1000c810
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebx + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10003f94
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10007975
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret