Function at 0x478b60
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 0x487db1
mov eax, dword fs:[0]
push eax
mov eax, 0x155c
call fcn.00432c80
mov eax, dword [0x4a3350]
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 + 0x110]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x1540], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x13a4], eax
mov eax, 2
push edx
mov dword [ebp - 0x1550], esi
mov dword [ebp - 0x1544], 1
mov dword [ebp - 0x13a0], 0
mov word [ebp - 0x13b4], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0x13b0], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x13b2], ax
xorps xmm0, xmm0
xor al, al
movq qword [ebp - 0x13ac], xmm0
mov dword [ebp - 0x139c], 0x10
mov byte [ebp - 0x1545], al
mov dword [ebp - 0x154c], 0
test al, al
jne 0x478e31
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x478c25
push 0x10
lea ecx, [ebp - 0x13b4]
sub eax, edx
push ecx
push 0
push eax
push esi
push dword [edi + 0x110]
call dword [sym.imp.WS2_32.dll_sendto]
lea eax, [ebp - 0x13a4]
push eax
push 0
push 0
lea eax, [ebp - 0x1544]
push eax
mov eax, dword [edi + 0x110]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x478c7c
call fcn.00429668
cmp dword [eax], 0x2714
je 0x478c47
test esi, esi
jle 0x478e09
push 0x1388
lea eax, [ebp - 0x1398]
push 0
push eax
call fcn.00424c50
add esp, 0xc
lea eax, [ebp - 0x139c]
push eax
lea eax, [ebp - 0x13b4]
push eax
push 0
push 0x1388
lea eax, [ebp - 0x1398]
push eax
push dword [edi + 0x110]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x478e09
cmp eax, 0x1388
jae 0x478e2c
cmp dword [edi + 0xd8], 0
mov byte [ebp + eax - 0x1398], 0
jne 0x478e09
push 0x74
lea eax, [ebp - 0x1440]
push 0
push eax
call fcn.00424c50
add esp, 0xc
lea ecx, [ebp - 0x1440]
call fcn.00408af0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x13cc]
movq qword [ebp - 0x13bc], xmm0
movdqu xmmword [ebp - 0x13cc], xmm0
call fcn.00402bf0
lea eax, [ebp - 0x1398]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1568]
call fcn.004051a0
push 1
lea eax, [ebp - 0x13cc]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1568]
push eax
lea ecx, [ebp - 0x1440]
call fcn.00408c40
lea ecx, [ebp - 0x1568]
mov byte [ebp - 0x1546], al
mov byte [ebp - 4], 1
call fcn.00405270
cmp byte [ebp - 0x1546], 0
je 0x478de8
push 0x498834
lea ecx, [ebp - 0x13cc]
call fcn.00404870
mov ecx, eax
call fcn.00404c80
test al, al
jne 0x478de0
push str.code
lea ecx, [ebp - 0x13cc]
call fcn.00404870
mov ecx, eax
call fcn.00404c80
test al, al
jne 0x478de0
push str.code
lea ecx, [ebp - 0x13cc]
call fcn.00404870
mov ecx, eax
call fcn.004032b0
test eax, eax
jne 0x478de0
mov dword [edi + 0xd8], 1
mov al, 1
jmp 0x478de2
xor al, al
mov byte [ebp - 0x1545], al
lea ecx, [ebp - 0x13cc]
mov byte [ebp - 4], 0
call fcn.00402ea0
lea ecx, [ebp - 0x1440]
mov dword [ebp - 4], 0xffffffff
call fcn.0041dcf0
mov edx, dword [ebp - 0x154c]
mov al, byte [ebp - 0x1545]
inc edx
mov dword [ebp - 0x154c], edx
cmp edx, 3
jge 0x478e31
mov esi, dword [ebp - 0x1550]
jmp 0x478c18
call fcn.0042de11
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.0042419e
mov esp, ebp
pop ebp
ret 0x10