Function at 0x41fd20
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 0x45bdb1
mov eax, dword fs:[0]
push eax
mov eax, 0x156c
call fcn.0044c170
mov eax, dword [0x4714d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x1550], eax
mov eax, 2
push edx
mov dword [ebp - 0x155c], esi
mov dword [ebp - 0x1554], 1
mov dword [ebp - 0x13c4], 3
mov dword [ebp - 0x13c0], 0
mov word [ebp - 0x13d4], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0x13d0], eax
call dword [sym.imp.WS2_32.dll_htons]
xorps xmm0, xmm0
mov word [ebp - 0x13d2], ax
xor cl, cl
movq qword [ebp - 0x13cc], xmm0
mov dword [ebp - 0x13a0], 0x10
mov byte [ebp - 0x1555], cl
mov dword [ebp - 0x1560], 0
test cl, cl
jne 0x42001b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41fde2
push 0x10
lea eax, [ebp - 0x13d4]
sub ecx, edx
push eax
push 0
push ecx
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
je 0x41fff4
jmp 0x41fe10
lea eax, [ebp - 0x13c4]
push eax
push 0
push 0
lea eax, [ebp - 0x1554]
push eax
mov eax, dword [edi]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x41fe41
call fcn.00443447
cmp dword [eax], 0x2714
je 0x41fe10
test esi, esi
jle 0x41ffee
push 0x1388
lea eax, [ebp - 0x139c]
push 0
push eax
call fcn.00443760
add esp, 0xc
lea eax, [ebp - 0x13a0]
push eax
lea eax, [ebp - 0x13d4]
push eax
push 0
push 0x1388
lea eax, [ebp - 0x139c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x41ffee
cmp eax, 0x1388
jae 0x42003a
cmp dword [edi + 0xa0], 0
mov byte [ebp + eax - 0x139c], 0
jne 0x41ffee
push 0x74
lea eax, [ebp - 0x144c]
push 0
push eax
call fcn.00443760
add esp, 0xc
lea ecx, [ebp - 0x144c]
call fcn.00424760
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movdqu xmmword [ebp - 0x13bc], xmm0
mov dword [ebp - 0x13b0], 0
movq qword [ebp - 0x13ac], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [ebp - 0x13ac], 0
mov dword [ebp - 0x13a8], 0
and eax, 0xfffffe00
mov dword [ebp - 0x13b4], eax
lea eax, [ebp - 0x139c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1578]
call fcn.00402b30
push ecx
lea eax, [ebp - 0x13bc]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1578]
push eax
lea ecx, [ebp - 0x144c]
call fcn.00424890
lea ecx, [ebp - 0x1578]
mov byte [ebp - 0x1556], al
mov byte [ebp - 4], 2
call fcn.00402c00
cmp byte [ebp - 0x1556], 0
je 0x41ffcd
push 0x468b63
push 0x468b60
lea ecx, [ebp - 0x13bc]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x41ffcd
push 0x468b68
push str.code
lea ecx, [ebp - 0x13bc]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x41ffcd
push 0x468b68
push str.code
lea ecx, [ebp - 0x13bc]
call fcn.0042cbd0
mov ecx, eax
call fcn.0042ba20
test eax, eax
jne 0x41ffcd
mov dword [edi + 0xa0], 1
mov byte [ebp - 0x1555], 1
lea ecx, [ebp - 0x13bc]
mov byte [ebp - 4], 0
call fcn.0042b620
lea ecx, [ebp - 0x144c]
mov dword [ebp - 4], 0xffffffff
call fcn.004108d0
mov esi, dword [ebp - 0x155c]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x1560]
inc ecx
mov dword [ebp - 0x1560], ecx
cmp ecx, 3
mov cl, byte [ebp - 0x1555]
jl 0x41fdd5
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 0x14
call fcn.00440b88
int3