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

Disassembly:
push 0xffffffffffffffff
push 0x5cfe7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x630
mov eax, dword [0x64aa84]
push ebx
mov dword [esp + 0x630], eax
mov eax, dword [esp + 0x64c]
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x14], ebx
mov edx, dword [esi + 0x24]
lea ecx, [esp + 0x14]
push ecx
push 0x4004667f
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esp + 0x14], ebx
jbe 0x49fd14
lea eax, [esp + 0x30]
push eax
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x50]
push ecx
push ebx
push 0x5dc
lea edx, [esp + 0x6c]
push edx
push eax
mov word [esp + 0x64], 2
mov dword [esp + 0x68], ebx
mov word [esp + 0x66], bx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esp + 0x14], ebx
ja 0x49fcc5
mov edx, dword [esi + 0x20]
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0x38]
push ecx
push 4
push ebx
push edx
call ebp
cmp eax, 0xffffffff
jne 0x49fd76
mov byte [esp + 0x18], bl
mov dword [esp + 0x20], 0x453b8000
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x64c]
mov esi, dword [esp + 0x18]
mov edx, ecx
mov dword [edx], esi
mov esi, dword [esp + 0x1c]
mov dword [edx + 4], esi
mov esi, dword [esp + 0x20]
mov dword [edx + 8], esi
mov esi, dword [esp + 0x24]
mov dword [edx + 0xc], esi
mov esi, dword [esp + 0x28]
mov dword [edx + 0x10], esi
mov dword [edx + 0x14], eax
mov eax, ecx
jmp 0x49ff6e
mov eax, dword [esp + 0x650]
push edi
push 0x829a
mov word [esp + 0x54], 2
mov dword [esp + 0x58], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [esp + 0x54]
push ecx
push ebx
push 4
lea edx, [esp + 0x48]
mov word [esp + 0x62], ax
mov eax, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.004cf210
mov dword [esp + 0x648], ebx
lea ecx, [esp + 0x3c]
call fcn.004cf280
fstp st(0)
cmp edi, 0xffffffff
jne 0x49fddf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x49ff25
mov ecx, dword [esi + 0x24]
push 4
lea eax, [esp + 0x50]
push eax
push 0x1006
push 0xffff
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x60], 0xbb8
mov byte [esp + 0x27], bl
call ebp
cmp eax, 0xffffffff
jne 0x49fe10
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x3c]
call fcn.004cf280
fst dword [esp + 0x14]
fcomp dword [0x5f1f5c]
fnstsw ax
test ah, 5
jp 0x49ff18
mov edi, edi
cmp byte [esp + 0x13], bl
je 0x49fe65
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x18]
push edx
push 0x4004667f
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, ebx
jne 0x49ff94
cmp dword [esp + 0x18], ebx
ja 0x49fe65
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x49fef6
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esi + 0x24]
lea edx, [esp + 0x54]
push edx
push ebx
push 0x5dc
lea eax, [esp + 0x70]
push eax
push ecx
mov word [esp + 0x68], 2
mov dword [esp + 0x6c], ebx
mov word [esp + 0x6a], bx
call dword [sym.imp.WS2_32.dll_recvfrom]
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.004cf280
fadd dword [esp + 0x14]
cmp edi, 0xffffffff
fstp dword [esp + 0x14]
je 0x49ff94
mov dl, byte [esp + 0x60]
mov ebp, dword [esp + 0x6c]
and dl, 0xf
movzx ax, dl
shl eax, 2
movzx edi, ax
mov al, byte [esp + edi + 0x60]
cmp al, 0xb
lea edi, [esp + edi + 0x60]
je 0x49fed5
cmp al, 3
jne 0x49fef6
push 0x829a
call dword [sym.imp.WS2_32.dll_htons]
cmp word [edi + 0x1e], ax
jne 0x49fef6
mov eax, dword [esp + 0x654]
cmp dword [edi + 0x18], eax
je 0x49ff9c
lea ecx, [esp + 0x3c]
call fcn.004cf280
fadd dword [esp + 0x14]
fst dword [esp + 0x14]
fcomp dword [0x5f1f5c]
fnstsw ax
test ah, 5
jnp 0x49fe30
mov eax, 0x2b02
mov dword [esp + 0x24], 0x453b8000
mov esi, dword [esp + 0x650]
mov byte [esp + 0x1c], bl
mov edx, dword [esp + 0x1c]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [esp + 0x20]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
mov dword [esp + 0x648], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.0046abf0
mov eax, esi
pop edi
mov ecx, dword [esp + 0x63c]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x630]
pop ebx
call fcn.0057981f
add esp, 0x63c
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x49ff1d
cmp byte [edi], 0xb
mov esi, ebp
mov byte [esp + 0x1c], 1
jne 0x49ffbe
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x658]
mov ecx, 0x2b05
jmp 0x49ffdb
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
xor edx, edx
mov dl, byte [esp + 0x68]
mov eax, 0x40
mov ecx, 0x2afb
and edx, 0x3f
sub eax, edx
mov edi, dword [esp + 0x650]
mov ebx, dword [esp + 0x1c]
mov edx, edi
mov dword [edx], ebx
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], esi
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 0x14], eax
mov dword [esp + 0x648], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.0046abf0
mov eax, edi
jmp 0x49ff6d