Function at 0x10042980
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x10a4
call fcn.10045a50
mov eax, dword [0x10080180]
xor eax, esp
mov dword [esp + 0x10a0], eax
push ebx
push ebp
mov ebp, dword [esp + 0x10b0]
mov eax, 0x300
push esi
mov esi, dword [esp + 0x10b8]
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], ebp
mov esi, dword [esi]
test word [esi + 6], ax
je 0x100429da
nop
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esi]
call fcn.10040690
add esp, 0x10
test eax, eax
jns 0x100429c0
cmp dword [ebp + 4], 0
lea ebx, [ebp + 4]
mov dword [esp + 0x20], ebx
jne 0x10042a0c
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
test edx, edx
je 0x10042a1c
mov ecx, edx
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x10042a0c
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x10042a22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x1c]
mov ecx, 1
mov dword [esp + 0x18], ecx
cmp dword [edx + 4], ecx
jbe 0x10042c69
push edi
nop dword [eax]
mov eax, dword [edx]
lea edx, [eax + ecx*8]
mov ecx, dword [edx]
cmp ecx, 0xffffffff
je 0x10042c4e
mov eax, dword [ebp + 8]
mov ebp, dword [esp + 0x1c]
mov ebp, dword [eax + ebp*4 - 4]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x10042c4a
mov ebx, dword [ebp + 0xad18]
test ebx, ebx
je 0x10042c4a
cmp dword [ebx + 8], ecx
jne 0x10042c4a
cmp dword [ebx + 4], 1
jne 0x10042c4a
movzx eax, word [edx + 6]
test al, 5
jne 0x10042c24
test eax, 0x300
je 0x10042be8
mov ebp, 0x3e8
mov edi, dword [ebx + 8]
dec ebp
push str.Receiving_datagram
push 0xbf
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcconn_poll.c
push 0
call fcn.10034290
add esp, 0x10
lea eax, [esp + 0x28]
push eax
push 0x1000
lea eax, [esp + 0xb8]
push eax
push edi
call fcn.10040690
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10042ac1
js 0x10042b48
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10034dc0
mov edi, dword [esp + 0x1c]
add esp, 8
test esi, esi
jle 0x10042ba0
lea eax, [esp + 0x28]
push eax
push esi
lea eax, [esp + 0xb8]
push eax
push edi
call fcn.10037390
add esp, 0x10
test eax, eax
jne 0x10042b26
test ebp, ebp
jne 0x10042aa4
jmp 0x10042ba0
push str.Agent_receive_failed
push 0x100
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcconn_poll.c
push 3
call fcn.10034290
add esp, 0x10
mov dword [ebx + 4], 2
jmp 0x10042ba0
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebp
cmp eax, 0x2733
je 0x10042b81
call ebp
cmp eax, 0x2733
je 0x10042b81
call ebp
push eax
push str.recvfrom_failed__errno_d
push 0xca
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcconn_poll.c
push 4
call fcn.10034290
add esp, 0x14
or esi, 0xffffffff
jmp 0x10042b9c
push str.No_more_datagrams_to_receive
push 0xc7
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcconn_poll.c
push 0
call fcn.10034290
add esp, 0x10
xor esi, esi
mov edi, dword [esp + 0x14]
cmp dword [ebx + 4], 2
je 0x10042c4a
test esi, esi
jns 0x10042bbc
push edi
call fcn.10037330
add esp, 4
jmp 0x10042c43
lea eax, [ebx + 0x18]
push eax
push edi
call fcn.100373b0
add esp, 8
test eax, eax
je 0x10042c4a
push str.Agent_update_failed
push 0x10f
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcconn_poll.c
push 3
call fcn.10034290
add esp, 0x10
jmp 0x10042c43
lea esi, [ebx + 0x18]
call fcn.1003b8f0
cmp dword [esi + 4], edx
jg 0x10042c4a
jl 0x10042bfb
cmp dword [esi], eax
ja 0x10042c4a
push esi
push ebp
call fcn.100373b0
add esp, 8
test eax, eax
je 0x10042c4a
push str.Agent_update_failed
push 0x116
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcconn_poll.c
push 3
call fcn.10034290
add esp, 0x10
jmp 0x10042c43
push str.Error_when_polling_socket
push 0xf2
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcconn_poll.c
push 3
call fcn.10034290
push ebp
call fcn.10037330
add esp, 0x14
mov dword [ebx + 4], 2
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [edx + 4]
jb 0x10042a40
mov ebx, dword [esp + 0x24]
pop edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x10ac]
xor eax, eax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10044f75
add esp, 0x10a4
ret