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

Disassembly:
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [esp + 4], ebx
mov eax, dword [ebx + 0x51a]
cmp eax, 2
jb 0x40303a
cmp eax, 1
mov dword [esp + 0x14], 1
jbe 0x40303a
push ebp
push esi
push edi
lea eax, [ebx + 0x31a]
lea edi, [ebx + 0x11a]
lea ecx, [ebx + 0x41a]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x403001
lea esi, [ebx + 0x522]
push 0x4000
push esi
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
call fcn.00416250
mov ebp, eax
test ebp, ebp
jle 0x403001
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x18], ebx
jle 0x402f4c
mov eax, dword [edi]
mov ecx, ebp
sub ecx, ebx
push 0
lea edx, [esi + ebx]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x402efb
test eax, eax
jle 0x402f0e
add ebx, eax
cmp ebx, ebp
jge 0x402f48
jmp 0x402ed6
mov dword [esp + 0x18], ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x402f4c
jmp 0x402f12
mov dword [esp + 0x18], ebx
mov ecx, dword [edi]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00403370
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, 4
dec edx
sub ecx, eax
sub edi, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], ecx
jmp 0x402f4c
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x14]
cmp dword [edx], 0
jne 0x402fdd
mov ecx, 4
mov edi, str..RMF
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x402f6e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4030a1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x526]
lea ebx, [eax + 0x522]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, dword [esp + 0x10]
add ebx, eax
lea eax, [edx + 0x522]
add eax, ebp
cmp ebx, eax
jae 0x402fd9
mov ecx, 4
mov edi, str.PROP
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x402fb6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403041
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esp + 0x10]
add ebx, eax
lea edx, [ecx + ebp + 0x522]
cmp ebx, edx
jb 0x402f9f
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov edx, dword [eax + 0x51e]
add edx, ebx
mov dword [eax + 0x51e], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
add ecx, ebx
mov ebx, dword [esp + 0x10]
mov dword [eax], ecx
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, 4
add ebp, ecx
add edi, ecx
add edx, ecx
mov ecx, dword [ebx + 0x51a]
inc eax
mov dword [esp + 0x1c], ebp
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edx
jb 0x402e9b
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x18
ret
mov eax, dword [ebx + 0xe]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push eax
call edi
mov ecx, dword [ebx + 0xa]
mov esi, eax
push ecx
call edi
test esi, esi
jne 0x40306f
mov edx, dword [esp + 0x10]
mov dword [edx + 0xa], 0x7d
mov eax, dword [ebx + 4]
push eax
call edi
jmp 0x402fd9
cmp esi, eax
mov eax, 0x6d60000
cdq
je 0x40308d
idiv esi
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0xa], eax
mov eax, dword [ebx + 4]
push eax
call edi
jmp 0x402fd9
idiv esi
mov edx, dword [esp + 0x10]
mov dword [edx + 0xa], eax
mov eax, dword [ebx + 4]
push eax
call edi
jmp 0x402fd9
mov ecx, dword [esp + 0x10]
push 0x4553d8
lea edi, [ecx + 0x522]
push edi
call fcn.00402bd0
mov edx, dword [esp + 0x18]
add esp, 8
test al, al
je 0x403128
lea esi, [edx + 0x540]
add edi, ebp
cmp esi, edi
jae 0x402fdd
push 0x4553e8
push esi
call fcn.00402bd0
add esp, 8
test al, al
jne 0x4030fc
mov ecx, dword [esi + 0x10]
mov eax, dword [esp + 0x10]
add esi, ecx
lea ecx, [eax + ebp + 0x522]
cmp esi, ecx
jb 0x4030d1
jmp 0x402fdd
mov esi, dword [esi + 0x64]
test esi, esi
jne 0x403113
mov edx, dword [esp + 0x10]
mov dword [edx + 0xa], 0x7d
jmp 0x402fdd
mov eax, 0x7d00000
mov ecx, dword [esp + 0x10]
cdq
idiv esi
dec eax
mov dword [ecx + 0xa], eax
jmp 0x402fdd
mov dword [edx + 0xa], 0x32
jmp 0x402fdd