Function at 0x1003fda0
Capabilities:
Check mutex on windows
Get local ipv4 addresses
Get socket information
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x160
mov eax, dword [0x10080180]
xor eax, esp
mov dword [esp + 0x15c], eax
push ebp
push edi
mov edi, dword [esp + 0x16c]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x10], edi
push eax
push 0x1004fd9c
push dword [edi]
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
or ebp, 0xffffffff
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 2
mov dword [esp + 0x58], 0x11
mov dword [esp + 0x4c], 9
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1003fe4d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.getaddrinfo_for_binding_address_failed__errno_d
push 0x3b
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcudp.c
push 4
call fcn.10034290
add esp, 0x14
or eax, 0xffffffff
pop edi
pop ebp
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.10044f75
add esp, 0x160
ret
push ebx
mov dword [esp + 0x30], 0x17
xor ebx, ebx
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], str.IPv6
mov dword [esp + 0x3c], str.IPv4
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1003fec7
mov eax, dword [esp + ebx + 0x34]
nop dword [eax]
cmp dword [esi + 4], eax
je 0x1003fe8c
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1003fe80
test esi, esi
je 0x1003fec7
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x1003fefb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esp + ebx + 0x40]
push str.UDP_socket_creation_for__s_family_failed__errno_d
push 0x4a
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcudp.c
push 3
call fcn.10034290
add esp, 0x18
add ebx, 4
cmp ebx, 8
jl 0x1003fe71
cmp ebp, 0xffffffff
jne 0x1003fefb
push str.UDP_socket_creation_failed:_no_suitable_address_family
push 0x52
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcudp.c
push 4
call fcn.10034290
add esp, 0x10
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or eax, ebp
jmp 0x100402e3
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [esp + 0x28], 0
cmp dword [esi + 4], 0x17
jne 0x1003ff1d
push 4
lea eax, [esp + 0x2c]
push eax
push 0x1b
push 0x29
push ebp
call ebx
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push 0xe
push 0
push ebp
call ebx
cmp dword [esi + 4], 0x17
jne 0x1003ff47
push 4
lea eax, [esp + 0x1c]
push eax
push 0xe
push 0x29
push ebp
call ebx
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x100000
push eax
push 0x1002
push 0xffff
push ebp
call ebx
push 4
lea eax, [esp + 0x20]
push eax
push 0x1001
push 0xffff
push ebp
call ebx
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push eax
push 0x8004667e
push ebp
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x1003ffb6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Setting_non_blocking_mode_on_UDP_socket_failed__errno_d
push 0x78
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcudp.c
push 4
call fcn.10034290
add esp, 0x14
jmp 0x10040293
mov ebx, edi
movzx edi, word [ebx + 4]
test di, di
jne 0x10040092
cmp word [ebx + 6], di
jne 0x10040092
push dword [esi + 0x10]
push dword [esi + 0x18]
push ebp
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1004006d
mov eax, dword [ebx]
mov esi, 0x1005b308
test eax, eax
mov dword [esp + 0xe4], 0x80
cmovne esi, eax
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0x68]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10040049
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.getsockname_failed__errno_d
push 0x136
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcudp.c
push 3
call fcn.10034290
add esp, 0x14
xor eax, eax
movzx eax, ax
push eax
push esi
push str.UDP_socket_bound_to__s:_hu
push 0x80
jmp 0x100402c8
lea eax, [esp + 0x64]
push eax
call fcn.10034780
add esp, 4
movzx eax, ax
movzx eax, ax
push eax
push esi
push str.UDP_socket_bound_to__s:_hu
push 0x80
jmp 0x100402c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UDP_socket_binding_failed__errno_d
push 0x85
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcudp.c
push 4
call fcn.10034290
add esp, 0x14
jmp 0x10040293
mov edx, dword [esi + 0x10]
movzx eax, word [ebx + 6]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x20], edx
push edx
push ecx
cmp di, ax
jne 0x10040118
lea eax, [esp + 0x6c]
mov esi, edi
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esp + 0x70]
push esi
push eax
call fcn.10034d70
add esp, 0x14
lea eax, [esp + 0x64]
push dword [esp + 0x20]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x100400f2
mov eax, dword [ebx]
mov ecx, 0x1005b308
test eax, eax
push esi
cmovne ecx, eax
push ecx
push str.UDP_socket_bound_to__s:_hu
push 0x90
jmp 0x100402c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push str.UDP_socket_binding_failed_on_port__hu__errno_d
push 0x95
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcudp.c
push 4
call fcn.10034290
add esp, 0x18
jmp 0x10040293
lea eax, [esp + 0xf4]
push eax
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, word [ebx + 6]
add esp, 0xc
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub ecx, edi
mov dword [esp + 0x24], ecx
mov edx, 0xffff
mov ecx, 0x400
mov eax, dword [esp + 0x14]
movzx esi, word [eax + 4]
movzx edi, word [eax + 6]
test si, si
cmove esi, ecx
test di, di
mov dword [esp + 0x30], esi
cmove edi, edx
cmp si, di
jne 0x1004016b
movzx esi, si
jmp 0x10040205
cmp dword [0x1008156c], 0
jne 0x1004017e
call fcn.1003b6e0
mov dword [0x1008156c], eax
cmp dword [0x10081570], 0
jne 0x100401b5
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
test edx, edx
je 0x100401c8
mov ecx, edx
xor eax, eax
mov esi, 0x10081570
lock cmpxchg dword [esi], ecx
mov esi, dword [esp + 0x30]
test eax, eax
je 0x100401b5
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x10081570]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x100401ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp di, si
jbe 0x100401dd
movzx eax, si
movzx ecx, di
sub ecx, eax
jmp 0x100401df
xor ecx, ecx
mov eax, dword [0x1008156c]
xor edx, edx
inc ecx
div ecx
mov eax, dword [0x1008156c]
push dword [0x10081570]
add edx, esi
inc eax
movzx esi, dx
mov dword [0x1008156c], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [esp + 0xec]
push esi
push eax
call fcn.10034d70
add esp, 8
lea eax, [esp + 0xec]
push dword [esp + 0x20]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x100402a9
call ebx
cmp eax, 0x2740
je 0x1004023f
call ebx
cmp eax, 0x271d
jne 0x1004025c
mov ecx, dword [esp + 0x24]
mov edx, 0xffff
mov eax, ecx
dec ecx
mov dword [esp + 0x24], ecx
mov ecx, 0x400
test eax, eax
jg 0x10040142
mov edi, dword [esp + 0x14]
mov esi, 0x1005b308
mov eax, dword [edi]
test eax, eax
cmovne esi, eax
call ebx
push eax
movzx eax, word [edi + 6]
push eax
movzx eax, word [edi + 4]
push eax
push esi
push str.UDP_socket_binding_failed_on_port_range__s:__hu__hu___errno_d
push 0xaa
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcudp.c
push 4
call fcn.10034290
add esp, 0x20
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x100402e3
mov edi, dword [esp + 0x14]
mov ecx, 0x1005b308
mov eax, dword [edi]
test eax, eax
cmovne ecx, eax
movzx eax, si
push eax
push ecx
push str.UDP_socket_bound_to__s:_hu
push 0xa2
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_srcudp.c
push 1
call fcn.10034290
add esp, 0x18
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, ebp
mov ecx, dword [esp + 0x16c]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.10044f75
add esp, 0x160
ret