Function at 0x10013100
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
cmp dword [0x10068ca8], ebp
push esi
mov ebx, ecx
jg 0x10013174
push ebp
push ebp
push str.RapidDiscovery::discoveryCallback___no_pData
push 0xd3
push str.._src_rapiddiscovery.cpp
push ebp
push 2
lea eax, [esp + 0x28]
push 1
push eax
mov dword [esp + 0x30], ebp
call fcn.1000655c
mov esi, dword [esp + 0x30]
add esp, 0x24
cmp byte [0x10068cb4], 0
je 0x1001314d
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x10068cac]
cmp ecx, ebp
je 0x10013167
mov eax, dword [0x10068cb0]
cmp eax, ebp
je 0x10013167
push eax
push esi
call ecx
add esp, 8
cmp esi, ebp
je 0x10013174
push esi
call fcn.10038f50
add esp, 4
mov esi, dword [esp + 0x18]
cmp esi, ebp
je 0x10013321
cmp dword [ebx + 0x14], ebp
je 0x10013321
call fcn.100394fe
cmp eax, dword [ebx + 8]
jg 0x1001319d
cmp dword [esi + 8], 4
jne 0x10013321
mov ecx, dword [0x10066fbc]
mov edx, dword [ebx + 0x10]
add ecx, eax
push edi
xor edi, edi
mov dword [ebx + 8], ecx
cmp dword [edx], edi
mov byte [esp + 0x1c], 0
je 0x100131fb
xor ecx, ecx
mov eax, edx
jmp 0x100131c0
cmp byte [esp + 0x1c], 0
jne 0x100131e0
mov esi, dword [edx + ecx]
mov esi, dword [esi + 8]
cmp esi, 2
je 0x100131e0
cmp esi, 3
je 0x100131e0
test esi, esi
mov byte [esp + 0x1c], 0
jne 0x100131e5
mov byte [esp + 0x1c], 1
mov ecx, dword [edx + ecx]
add edi, dword [ecx + 0x10]
add ebp, 1
cmp dword [eax + ebp*4], 0
lea ecx, [ebp*4]
jne 0x100131c0
mov eax, edi
xor edx, edx
div ebp
cmp dword [0x10068ca8], 0
mov edi, eax
jg 0x10013275
push 0
push 0
push str.RapidDiscovery::discoveryCallback___waiting_for_mutex
push 0xea
push str.._src_rapiddiscovery.cpp
push 0
push 2
lea edx, [esp + 0x2c]
push 1
push edx
mov dword [esp + 0x34], 0
call fcn.1000655c
mov esi, dword [esp + 0x34]
add esp, 0x24
cmp byte [0x10068cb4], 0
je 0x1001324e
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x10068cac]
test ecx, ecx
je 0x10013268
mov eax, dword [0x10068cb0]
test eax, eax
je 0x10013268
push eax
push esi
call ecx
add esp, 8
test esi, esi
je 0x10013275
push esi
call fcn.10038f50
add esp, 4
mov eax, dword [ebx + 4]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10013320
cmp dword [0x10068ca8], eax
jg 0x100132f6
push eax
push eax
push str.RapidDiscovery::discoveryCallback___got_mutex__invoke_callback
push 0xec
push str.._src_rapiddiscovery.cpp
push eax
push 2
lea ecx, [esp + 0x2c]
push 1
push ecx
mov dword [esp + 0x34], eax
call fcn.1000655c
mov esi, dword [esp + 0x34]
add esp, 0x24
cmp byte [0x10068cb4], 0
je 0x100132cf
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x10068cac]
test ecx, ecx
je 0x100132e9
mov eax, dword [0x10068cb0]
test eax, eax
je 0x100132e9
push eax
push esi
call ecx
add esp, 8
test esi, esi
je 0x100132f6
push esi
call fcn.10038f50
add esp, 4
cmp byte [esp + 0x1c], 0
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
sete dl
push edx
push eax
push edi
call ecx
mov edx, dword [ebx + 4]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
mov dword [esp + 4], edx
jmp dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4