Function at 0x41a060
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b601
mov eax, dword fs:[0]
push eax
mov eax, 0x1568
call fcn.0044c170
mov eax, dword [0x4714d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xe0]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x154c], eax
mov eax, 2
push edx
mov dword [ebp - 0x155c], esi
mov dword [ebp - 0x1550], 1
mov dword [ebp - 0x13c0], 3
mov dword [ebp - 0x13bc], 0
mov word [ebp - 0x13d0], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0x13cc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x13ce], ax
xorps xmm0, xmm0
xor al, al
movq qword [ebp - 0x13c8], xmm0
mov dword [ebp - 0x139c], 0x10
mov byte [ebp - 0x1551], al
mov dword [ebp - 0x1558], 0
lea esp, [esp]
test al, al
jne 0x41a365
mov ecx, esi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a130
push 0x10
lea eax, [ebp - 0x13d0]
sub ecx, edx
push eax
push 0
push ecx
push esi
push dword [edi + 0xe0]
call dword [sym.imp.WS2_32.dll_sendto]
lea eax, [ebp - 0x13c0]
push eax
push 0
push 0
lea eax, [ebp - 0x1550]
push eax
mov eax, dword [edi + 0xe0]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x41a187
call fcn.00443447
cmp dword [eax], 0x2714
je 0x41a152
test esi, esi
jle 0x41a33d
push 0x1388
lea eax, [ebp - 0x1398]
push 0
push eax
call fcn.00443760
add esp, 0xc
lea eax, [ebp - 0x139c]
push eax
lea eax, [ebp - 0x13d0]
push eax
push 0
push 0x1388
lea eax, [ebp - 0x1398]
push eax
push dword [edi + 0xe0]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x41a33d
cmp eax, 0x1388
jae 0x41a360
cmp dword [edi + 0xa8], 0
mov byte [ebp + eax - 0x1398], 0
jne 0x41a33d
push 0x74
lea eax, [ebp - 0x1448]
push 0
push eax
call fcn.00443760
add esp, 0xc
lea ecx, [ebp - 0x1448]
call fcn.00424760
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movdqu xmmword [ebp - 0x13b8], xmm0
mov dword [ebp - 0x13ac], 0
movq qword [ebp - 0x13a8], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [ebp - 0x13a8], 0
mov dword [ebp - 0x13a4], 0
and eax, 0xfffffe00
mov dword [ebp - 0x13b0], eax
lea eax, [ebp - 0x1398]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1574]
call fcn.00402b30
push ecx
lea eax, [ebp - 0x13b8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1574]
push eax
lea ecx, [ebp - 0x1448]
call fcn.00424890
lea ecx, [ebp - 0x1574]
mov byte [ebp - 0x1552], al
mov byte [ebp - 4], 2
call fcn.00402c00
cmp byte [ebp - 0x1552], 0
je 0x41a31c
push 0x468b63
push 0x468b60
lea ecx, [ebp - 0x13b8]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x41a314
push 0x468b68
push str.code
lea ecx, [ebp - 0x13b8]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x41a314
push 0x468b68
push str.code
lea ecx, [ebp - 0x13b8]
call fcn.0042cbd0
mov ecx, eax
call fcn.0042ba20
test eax, eax
jne 0x41a314
mov dword [edi + 0xa8], 1
mov al, 1
jmp 0x41a316
xor al, al
mov byte [ebp - 0x1551], al
lea ecx, [ebp - 0x13b8]
mov byte [ebp - 4], 0
call fcn.0042b620
lea ecx, [ebp - 0x1448]
mov dword [ebp - 4], 0xffffffff
call fcn.004108d0
mov edx, dword [ebp - 0x1558]
mov al, byte [ebp - 0x1551]
inc edx
mov dword [ebp - 0x1558], edx
cmp edx, 3
jge 0x41a365
mov esi, dword [ebp - 0x155c]
jmp 0x41a120
call fcn.00440b88
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 0x10