Function at 0x402d90
Capabilities:
Get socket status
Print debug messages
Send data
Send data on socket

Disassembly:
sub esp, 0x110
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x190]
xor ebx, ebx
cmp eax, ebx
je 0x402dc1
mov ecx, dword [esp + 0x11c]
push ecx
push eax
mov ecx, esi
call fcn.004025b0
pop esi
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [esi + 0x124]
mov eax, ecx
push edi
lea edi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x402dd0
mov edx, dword [esp + 0x120]
sub eax, edi
cmp ecx, ebx
mov edi, eax
mov eax, dword [edx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
jne 0x402e0a
push 0x4add68
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x19b
call fcn.0041125d
cmp edi, ebx
push ebp
jle 0x402e9e
mov ebp, dword [sym.imp.WS2_32.dll_select]
lea esp, [esp]
mov eax, dword [esi + 0x12c]
lea edx, [esp + 0x14]
push edx
push 0
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x2c], eax
push 0
add eax, 1
push eax
mov dword [esp + 0x30], 1
call ebp
cmp eax, 0xffffffff
je 0x402ede
test eax, eax
je 0x402f44
mov eax, dword [esi + 0x12c]
lea edx, [esp + 0x1c]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x402e9a
mov ecx, dword [esi + 0x124]
mov edx, dword [esi + 0x12c]
push 0
push edi
add ecx, ebx
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x402fa4
test eax, eax
je 0x402fa4
sub edi, eax
add ebx, eax
test edi, edi
jg 0x402e20
mov ecx, dword [esi + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
jbe 0x403026
mov esi, dword [esi + 0x12c]
nop
cmp dword [esp + eax*4 + 0x20], esi
je 0x403004
add eax, 1
cmp eax, ecx
jb 0x402ec0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
jbe 0x402f2d
mov esi, dword [esi + 0x12c]
mov edi, edi
cmp dword [esp + eax*4 + 0x20], esi
je 0x402eff
add eax, 1
cmp eax, ecx
jb 0x402ef0
jmp 0x402f2d
lea edx, [ecx - 1]
cmp eax, edx
jae 0x402f26
jmp 0x402f10
mov ecx, dword [esp + eax*4 + 0x24]
mov dword [esp + eax*4 + 0x20], ecx
mov ecx, dword [esp + 0x1c]
add eax, 1
lea edx, [ecx - 1]
cmp eax, edx
jb 0x402f10
sub ecx, 1
mov dword [esp + 0x1c], ecx
push 0x4add68
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x6d
call fcn.0041125d
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
jbe 0x402f8d
mov esi, dword [esi + 0x12c]
cmp dword [esp + eax*4 + 0x20], esi
je 0x402f63
add eax, 1
cmp eax, ecx
jb 0x402f54
jmp 0x402f8d
lea edx, [ecx - 1]
cmp eax, edx
jae 0x402f86
lea ebx, [ebx]
mov ecx, dword [esp + eax*4 + 0x24]
mov dword [esp + eax*4 + 0x20], ecx
mov ecx, dword [esp + 0x1c]
add eax, 1
lea edx, [ecx - 1]
cmp eax, edx
jb 0x402f70
sub ecx, 1
mov dword [esp + 0x1c], ecx
push 0x4add68
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x192
call fcn.0041125d
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
jbe 0x402fed
mov esi, dword [esi + 0x12c]
cmp dword [esp + eax*4 + 0x20], esi
je 0x402fc3
add eax, 1
cmp eax, ecx
jb 0x402fb4
jmp 0x402fed
lea edx, [ecx - 1]
cmp eax, edx
jae 0x402fe6
lea ebx, [ebx]
mov ecx, dword [esp + eax*4 + 0x24]
mov dword [esp + eax*4 + 0x20], ecx
mov ecx, dword [esp + 0x1c]
add eax, 1
lea edx, [ecx - 1]
cmp eax, edx
jb 0x402fd0
sub ecx, 1
mov dword [esp + 0x1c], ecx
push 0x4add68
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x66
call fcn.0041125d
add ecx, 0xffffffff
cmp eax, ecx
jae 0x403026
jmp 0x403010
mov edx, dword [esp + eax*4 + 0x24]
mov dword [esp + eax*4 + 0x20], edx
mov ecx, dword [esp + 0x1c]
add eax, 1
add ecx, 0xffffffff
cmp eax, ecx
jb 0x403010
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4