Function at 0x415b80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x6ab0d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x128], 0xffffffff
jne 0x415bee
call fcn.004155f0
test al, al
jne 0x415bee
cmp byte [0x6b2b20], al
je 0x415bd8
push str.xunyou_report__socket_send_data_failed__sock_INVALID_SOCKET
push 3
push 0x6b2b20
call fcn.00403570
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jne 0x415c42
mov ecx, esi
call fcn.00415620
test al, al
jne 0x415c42
cmp byte [0x6b2b20], al
je 0x415c2c
movzx eax, word [esi + 0x2a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push str.__d_xunyou_report__socket_send_data_failed__remote_addr_no_value
push 3
push 0x6b2b20
call fcn.00403570
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [esi + 0xa8], 2
lea ebx, [esi + 0xa8]
mov ecx, 0x10
mov eax, 0x1c
cmove eax, ecx
push eax
push ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x128]
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
cmp edi, 0xffffffff
jne 0x415d64
cmp byte [0x6b2b20], 0
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
je 0x415d29
call eax
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.004029b0
mov edi, eax
mov edx, ebx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00415530
mov byte [ebp - 4], 1
cmp dword [edi + 0x14], 8
jb 0x415cbb
mov edi, dword [edi]
cmp dword [eax + 0x14], 0x10
jb 0x415cc3
mov eax, dword [eax]
push edi
push eax
movzx eax, word [esi + 0x2a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push str.xunyou_report__socket___d___s:__s_send_to_failed
push 3
push 0x6b2b20
call fcn.00403570
mov eax, dword [ebp - 0x10]
add esp, 0x18
cmp eax, 0x10
jb 0x415cfd
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00408cd0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
cmp eax, 8
jb 0x415d24
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.00408960
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
cmp eax, 0x2738
je 0x415d4e
mov eax, dword [esi + 0x128]
cmp eax, 0xffffffff
je 0x415d4e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x128], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [0x6b2b20], 0
je 0x415dc0
mov edx, ebx
lea ecx, [ebp - 0x54]
call fcn.0040ee90
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x415d86
mov eax, dword [eax]
push edi
push eax
movzx eax, word [esi + 0x2a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push str.xunyou_report__socket___d___ssend__d
push 1
push 0x6b2b20
call fcn.00403570
mov eax, dword [ebp - 0x40]
add esp, 0x18
cmp eax, 8
jb 0x415dc0
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.00408960
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8