Function at 0x42dd50
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0xb4c
cmp byte [eax + 0xd], 0
mov ebp, dword [eax + 4]
jne 0x42e140
test cl, cl
jne 0x42e162
mov dword [esp], ebp
call sym._strlen
cmp byte [0x732fa1], 0
lea edx, [eax + 1]
mov dword [esp + 0x28], edx
je 0x42dded
cmp byte [0x745ef7], 0
je 0x42e0c0
cmp eax, 0xb
mov edx, 0x5cbe99
mov eax, 0x5cb5e9
cmovge eax, edx
lea ebx, [esp + 0x140]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], str.API:_send_reply:___d___.10s_s
mov dword [esp + 4], 0xa00
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym._snprintf_2
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 4
call sym.__applog
mov ebx, dword [esp + 0x28]
xor esi, esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0
mov ebp, edi
mov edi, esi
cmp dword [esp + 0x24], 4
jg 0x42df30
test ebx, ebx
jle 0x42df30
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0xc350
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], eax
lea eax, [ebp + 1]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_select]
sub esp, 0x14
test eax, eax
jle 0x42e182
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], 0
add edi, 1
mov dword [esp + 8], ebx
mov dword [esp], ebp
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
cmp eax, 0xffffffff
mov esi, eax
je 0x42e020
cmp edi, 1
je 0x42df40
cmp ebx, eax
je 0x42dfa0
cmp byte [0x732fa1], 0
je 0x42df17
cmp byte [0x745ef7], 0
jne 0x42decc
cmp byte [0x732fa0], 0
jne 0x42decc
cmp dword [0x5bc2e0], 3
jle 0x42df17
lea ecx, [esp + 0x140]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.API:_sent__d_of_remaining__d__sendc_d_
mov dword [esp + 4], 0xa00
mov dword [esp], ecx
mov dword [esp + 0x2c], ecx
call sym._snprintf_2
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], 0
mov dword [esp], 4
mov dword [esp + 4], ecx
call sym.__applog
sub ebx, esi
add dword [esp + 0x20], esi
cmp esi, 1
adc dword [esp + 0x24], 0
cmp dword [esp + 0x24], 4
jle 0x42de0e
add esp, 0xb4c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebx, eax
je 0x42e0e0
cmp byte [0x732fa1], 0
je 0x42df17
cmp byte [0x745ef7], 0
jne 0x42df6c
cmp byte [0x732fa0], 0
jne 0x42df6c
cmp dword [0x5bc2e0], 3
jle 0x42df17
lea ecx, [esp + 0x140]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.API:_sent__d_of__d_first_go
mov dword [esp + 4], 0xa00
mov dword [esp], ecx
mov dword [esp + 0x2c], ecx
call sym._snprintf_2
jmp 0x42defb
cmp byte [0x732fa1], 0
je 0x42e00b
cmp byte [0x745ef7], 0
jne 0x42dfc4
cmp byte [0x732fa0], 0
jne 0x42dfc4
cmp dword [0x5bc2e0], 3
jle 0x42e00b
lea ecx, [esp + 0x140]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.API:_sent_all_of_remaining__d__sendc_d_
mov dword [esp + 4], 0xa00
mov dword [esp], ecx
mov dword [esp + 0x2c], ecx
call sym._snprintf_2
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], 0
mov dword [esp], 4
mov dword [esp + 4], ecx
call sym.__applog
sub ebx, esi
add dword [esp + 0x20], esi
jmp 0x42de03
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x42e0b0
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0xb
je 0x42e0b0
cmp byte [0x745ef7], 0
jne 0x42e052
cmp byte [0x732fa0], 0
je 0x42e1f0
call sym._WSAErrorMsg
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.API:_send___d:_d__failed:__s
mov dword [esp + 4], 0xa00
mov eax, edx
mov dword [esp + 0xc], edx
sub eax, ebx
lea ebx, [esp + 0x140]
mov dword [esp + 0x10], eax
mov dword [esp], ebx
call sym._snprintf_2
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp], 1
call sym.__applog
add esp, 0xb4c
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [esp + 0x24], 1
jmp 0x42de03
cmp byte [0x732fa0], 0
jne 0x42dd96
cmp dword [0x5bc2e0], 3
jle 0x42dded
jmp 0x42dd96
cmp byte [0x732fa1], 0
je 0x42e00b
cmp byte [0x745ef7], 0
jne 0x42e10c
cmp byte [0x732fa0], 0
jne 0x42e10c
cmp dword [0x5bc2e0], 3
jle 0x42e00b
lea ecx, [esp + 0x140]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.API:_sent_all_of__d_first_go
mov dword [esp + 4], 0xa00
mov dword [esp], ecx
mov dword [esp + 0x2c], ecx
call sym._snprintf_2
jmp 0x42dfef
mov dword [esp], ebp
mov dword [esp + 0x20], ecx
call sym._strlen
mov ecx, 0x5d
mov word [ebp + eax], cx
mov ecx, dword [esp + 0x20]
test cl, cl
je 0x42dd71
mov dword [esp], ebp
call sym._strlen
add eax, ebp
mov dword [eax], 0x6469222c
mov dword [eax + 4], 0x7d313a22
mov byte [eax + 8], 0
jmp 0x42dd71
cmp byte [0x745ef7], 0
jne 0x42e1a2
cmp byte [0x732fa0], 0
jne 0x42e1a2
mov edx, dword [0x5bc2e0]
test edx, edx
jle 0x42df30
lea ebx, [esp + 0x140]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.API:_send_select_failed___d_
mov dword [esp + 4], 0xa00
mov dword [esp], ebx
call sym._snprintf_2
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp], 1
call sym.__applog
add esp, 0xb4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x5bc2e0]
test eax, eax
jg 0x42e052
jmp 0x42df30