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

Disassembly:
sub esp, 0x110
push edi
mov edi, ecx
mov eax, dword [edi + 0x170]
test eax, eax
je 0x462ead
push dword [esp + 0x118]
push eax
call fcn.004639d8
jmp 0x4630a6
mov ecx, dword [edi + 0x118]
push ebx
push ebp
mov ebx, ecx
push esi
xor esi, esi
mov ebp, esi
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x462ebf
mov eax, dword [esp + 0x124]
sub ebx, edx
mov dword [esp + 0x18], esi
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4630b0
jmp 0x462f54
mov eax, dword [edi + 0x120]
lea ecx, [esp + 0x14]
push ecx
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
push ecx
push esi
inc eax
mov dword [esp + 0x2c], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x463037
test eax, eax
je 0x462fdf
lea eax, [esp + 0x1c]
push eax
push dword [edi + 0x120]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x462f54
mov eax, dword [edi + 0x118]
push esi
push ebx
add eax, ebp
push eax
push dword [edi + 0x120]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x462f8a
test eax, eax
je 0x462f8a
sub ebx, eax
add ebp, eax
test ebx, ebx
jg 0x462ee4
push dword [edi + 0x118]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4630a3
mov ecx, dword [edi + 0x120]
cmp dword [esp + esi*4 + 0x20], ecx
je 0x463089
inc esi
cmp esi, eax
jb 0x462f76
jmp 0x4630a3
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x462fc8
mov eax, dword [edi + 0x120]
cmp dword [esp + esi*4 + 0x20], eax
je 0x462fa5
inc esi
cmp esi, ecx
jb 0x462f98
jmp 0x462fc8
lea eax, [ecx - 1]
cmp esi, eax
jae 0x462fc3
lea edx, [esp + 0x24]
mov eax, dword [edx + esi*4]
mov dword [esp + esi*4 + 0x20], eax
inc esi
mov ecx, dword [esp + 0x1c]
lea eax, [ecx - 1]
cmp esi, eax
jb 0x462fb0
dec ecx
mov dword [esp + 0x1c], ecx
push 0x66
lea ecx, [esp + 0x14]
call fcn.00460048
push 0x4aedb8
mov eax, ecx
jmp 0x4630c5
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x46301d
mov eax, dword [edi + 0x120]
cmp dword [esp + esi*4 + 0x20], eax
je 0x462ffa
inc esi
cmp esi, ecx
jb 0x462fed
jmp 0x46301d
lea eax, [ecx - 1]
cmp esi, eax
jae 0x463018
lea edx, [esp + 0x24]
mov eax, dword [edx + esi*4]
mov dword [esp + esi*4 + 0x20], eax
inc esi
mov ecx, dword [esp + 0x1c]
lea eax, [ecx - 1]
cmp esi, eax
jb 0x463005
dec ecx
mov dword [esp + 0x1c], ecx
push 0x192
lea ecx, [esp + 0x14]
call fcn.00460048
push 0x4aedb8
mov eax, ecx
jmp 0x4630c5
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x463075
mov eax, dword [edi + 0x120]
cmp dword [esp + esi*4 + 0x20], eax
je 0x463052
inc esi
cmp esi, ecx
jb 0x463045
jmp 0x463075
lea eax, [ecx - 1]
cmp esi, eax
jae 0x463070
lea edx, [esp + 0x24]
mov eax, dword [edx + esi*4]
mov dword [esp + esi*4 + 0x20], eax
inc esi
mov ecx, dword [esp + 0x1c]
lea eax, [ecx - 1]
cmp esi, eax
jb 0x46305d
dec ecx
mov dword [esp + 0x1c], ecx
push 0x6d
lea ecx, [esp + 0x14]
call fcn.00460048
push 0x4aedb8
mov eax, ecx
jmp 0x4630c5
dec eax
cmp esi, eax
jae 0x4630a3
lea ecx, [esp + 0x24]
mov eax, dword [ecx + esi*4]
mov dword [esp + esi*4 + 0x20], eax
inc esi
mov eax, dword [esp + 0x1c]
dec eax
cmp esi, eax
jb 0x463092
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x110
ret 4
push 0x19b
lea ecx, [esp + 0x14]
call fcn.00460048
push 0x4aedb8
mov eax, ecx
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3