Function at 0x1002a2d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b0550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebx + 0xc]
push edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x24], 0
jne 0x1002a32e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x54f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
push ebx
call dword [eax + 0x10]
test eax, eax
jne 0x1002a363
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
mov esi, 0xe
mov dword [ebp + 8], esi
test edi, edi
jne 0x1002a3a2
push 0x100da820
push 0x3b0
call fcn.1009c903
add esp, 8
test eax, eax
je 0x1002a398
push ebx
mov ecx, eax
call fcn.10020260
mov dword [ebx + 8], eax
jmp 0x1002a5d9
xor eax, eax
mov dword [ebx + 8], eax
jmp 0x1002a5d9
cmp edi, 0xffffffff
je 0x1002a50e
push 4
push 0x100b82f8
push edi
call fcn.1009e350
add esp, 0xc
test eax, eax
je 0x1002a50e
push 4
push str.udp:
push edi
call fcn.1009d837
add esp, 0xc
test eax, eax
jne 0x1002a3f8
mov edx, edi
mov ecx, ebx
call fcn.10026530
mov dword [ebx + 8], eax
test eax, eax
jne 0x1002a5d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1002a5d9
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.100038b0
push 0x100da820
push 0x10
call fcn.1009c903
add esp, 8
test eax, eax
je 0x1002a4f5
push dword [ebx + 0x74]
mov ecx, eax
call fcn.10032870
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x1002a4f5
mov eax, dword [ecx + 8]
mov esi, 2
mov edx, dword [ecx + 0xc]
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], edx
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x1002a4b6
mov esi, edx
jmp 0x1002a460
lea eax, [esi + 0x105]
push eax
push edi
call fcn.1009dd84
add esp, 8
test eax, eax
je 0x1002a4d3
mov ecx, esi
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1002a498
test dl, dl
je 0x1002a494
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1002a498
add eax, 2
add ecx, 2
test dl, dl
jne 0x1002a478
xor eax, eax
jmp 0x1002a49d
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002a4d3
mov eax, dword [ebp + 0xc]
add esi, 0x145
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [ebp - 0x20]
jb 0x1002a460
mov esi, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.1002a680
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.100038e0
jmp 0x1002a5d9
imul edx, dword [ebp + 0xc], 0x145
mov ecx, ebx
add edx, dword [ebp - 0x14]
call fcn.10022bf0
mov dword [ebx + 8], eax
test eax, eax
jne 0x1002a4b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1002a4b6
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov esi, 0xe
call fcn.100038e0
jmp 0x1002a5d9
push str.__G65DDCAPI_MUTEX__
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
push 0xffffffffffffffff
push esi
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp edi, 0xffffffff
jne 0x1002a58e
push 0x100da820
push 0x10
call fcn.1009c903
add esp, 8
test eax, eax
je 0x1002a5a7
push dword [ebx + 0x74]
mov ecx, eax
call fcn.10032870
mov edi, eax
test edi, edi
je 0x1002a5a7
cmp dword [edi + 8], 0
jne 0x1002a571
push ecx
mov ecx, edi
call fcn.1002a680
mov dword [ebp + 8], 2
jmp 0x1002a5a7
lea eax, [ebp - 0x168]
push eax
push 0
push edi
call fcn.10032c80
push ecx
mov ecx, edi
call fcn.1002a680
lea edi, [ebp - 0x168]
mov edx, edi
mov ecx, ebx
call fcn.10022bf0
mov dword [ebx + 8], eax
test eax, eax
jne 0x1002a5a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1002a5d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
mov esi, dword [ebp + 8]
jmp 0x1002a5df
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x1002a608
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
call dword [eax + 0x6c]
mov esi, eax
test esi, esi
je 0x1002a652
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x1002a633
mov eax, dword [ecx]
push 1
call dword [eax + 0x70]
push esi
mov dword [ebx + 8], 0
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 8]
mov dword [ebx + 0x28], eax
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call edi
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8