Function at 0x10008f50
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov eax, 0x2028
call fcn.10037760
mov eax, dword [0x10052084]
xor eax, esp
mov dword [esp + 0x2024], eax
push ebx
push ebp
push esi
push edi
push 0x1000
lea eax, [esp + 0x2040]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.10033a50
mov ebp, dword [esp + 0x3048]
xor edi, edi
add esp, 0xc
lea esi, [esp + 0x30]
lea ecx, [esp + 0x42]
mov dword [esp + 0x18], 0x1388
mov dword [esp + 0x14], edi
call fcn.100088f0
test eax, eax
je 0x10009028
push edi
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x100091ad
mov edx, dword [esp + 0x3044]
push edx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov word [esp + 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
mov eax, dword [esp + 0x3040]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push edi
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], 1
call ebx
cmp eax, 0xffffffff
jne 0x1000902f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x100091ad
push 4
lea edx, [esp + 0x1c]
push edx
push 0x1006
push 0xffff
push esi
call ebx
cmp eax, 0xffffffff
je 0x10009021
push 4
lea eax, [esp + 0x1c]
push eax
push 0x1005
push 0xffff
push esi
call ebx
cmp eax, 0xffffffff
je 0x10009021
push 0x1000
lea ecx, [esp + 0x1034]
push 0
push ecx
call fcn.1002fe50
mov ebx, dword [sym.imp.WS2_32.dll_sendto]
add esp, 0xc
mov edi, edi
mov eax, dword [esp + 0x30]
push 0x10
lea edx, [esp + 0x24]
push edx
push 0
add eax, 0x12
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
call ebx
cmp eax, 0xffffffff
jne 0x100090ae
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 3
jl 0x10009080
cmp edi, 3
je 0x10009021
xor edi, edi
push 0x1000
lea edx, [esp + 0x1034]
push 0
push edx
call fcn.1002fe50
add esp, 0xc
push 0
push 0
push 0
push 0x1000
lea eax, [esp + 0x1040]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
test ebx, ebx
jg 0x10009100
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 3
jl 0x100090b9
cmp ebx, 0x12
jb 0x100091a2
push 0x1000
push 0
push ebp
call fcn.1002fe50
mov ecx, dword [esp + 0x103c]
mov edx, dword [esp + 0x1040]
mov eax, dword [esp + 0x1044]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x1048]
mov dword [ebp + 4], edx
mov dx, word [esp + 0x104c]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
mov word [ebp + 0x10], dx
mov eax, dword [ebp]
add ebx, 0xffffffee
add esp, 0xc
cmp eax, ebx
je 0x10009171
push 0x1000
push 0
push ebp
call fcn.1002fe50
add esp, 0xc
mov dword [esp + 0x14], 0
jmp 0x100091a2
push eax
lea eax, [esp + 0x1046]
push eax
lea edi, [ebp + 0x12]
push edi
call fcn.10033a50
add esp, 0xc
push 0xfee
push edi
mov edi, ebp
call fcn.10008a70
add esp, 8
test eax, eax
je 0x100091a2
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002b34a
add esp, 0x2028
ret