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

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ecx, edx
push ebp
shl ecx, 5
sub ecx, edx
push esi
shl ecx, 4
add ecx, edx
xor eax, eax
push edi
lea esi, [ecx + ecx*8]
mov ecx, dword [0x529a64]
shl esi, 3
mov edx, dword [esi + ecx + 0x2b4c]
cmp edx, 1
jl 0x404d0b
cmp dword [esi + ecx + 0x2b50], edx
jl 0x404e56
mov edi, dword [esi + ecx + 0x8b94]
lea edx, [esi + ecx + 0x8b94]
cmp edi, 1
jne 0x404d45
mov dword [edx], 2
mov ecx, dword [0x4289a0]
mov edx, dword [0x41b954]
sub ecx, edx
mov edx, dword [0x529a64]
mov dword [esi + edx + 0xb38], ecx
mov ecx, dword [0x529a64]
mov edi, dword [0x4289a0]
mov ebp, dword [esi + ecx + 0xb38]
mov edx, edi
sub edx, ebp
cmp edx, 0xff000
jle 0x404d86
add edi, 0xffff0001
mov dword [esi + ecx + 0xb38], edi
mov ecx, dword [0x529a64]
mov edi, dword [esi + ecx + 0x8b9c]
inc edi
mov dword [esi + ecx + 0x8b9c], edi
mov ecx, dword [0x529a64]
mov edi, dword [esi + ecx + 0xb38]
and edi, 0xfffff
cmp edx, 0x2000
jle 0x404da0
mov edx, 0x2000
mov ebx, dword [esi + ecx + 0x7b84]
test ebx, ebx
je 0x404dee
mov ebp, dword [esi + ecx + 0x8b98]
mov ebx, dword [0x41b904]
cmp ebp, ebx
mov dword [esp + 0x14], ebp
jne 0x404de2
mov dword [esi + ecx + 0x6b60], 1
mov eax, dword [0x529a64]
pop edi
mov dword [esi + eax + 0x8b98], 0
pop esi
pop ebp
xor eax, eax
pop ebx
ret
add ebp, edx
cmp ebp, ebx
jle 0x404dee
sub ebx, dword [esp + 0x14]
mov edx, ebx
lea ebx, [edi + edx]
cmp ebx, 0x100000
jg 0x404e08
lea edi, [edi + 0x428e20]
mov dword [esi + ecx + 0xb48], edi
jmp 0x404e1c
lea edx, [edi + 0x428e20]
mov dword [esi + ecx + 0xb48], edx
mov edx, 0x100000
sub edx, edi
mov ecx, dword [0x529a64]
mov edi, dword [esi + ecx + 0xb38]
add edi, edx
mov dword [esi + ecx + 0xb38], edi
mov ecx, dword [0x529a64]
mov dword [esi + ecx + 0x2b4c], edx
mov edx, dword [0x529a64]
mov dword [esi + edx + 0x2b50], 0
mov ecx, dword [0x529a64]
mov edi, dword [esi + ecx + 0x2b50]
mov edx, dword [esi + ecx + 0x2b4c]
cmp edi, edx
jge 0x404f70
mov eax, dword [esi + ecx + 0xb48]
mov ecx, dword [esi + ecx + 0xc]
sub edx, edi
push 0
add eax, edi
push edx
push eax
push ecx
call sub.WSOCK32.dll_send
test eax, eax
jge 0x404eb8
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
call fcn.0040dea0
cmp edi, 0x2733
jne 0x404ea4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [0x529a64]
pop edi
xor eax, eax
mov dword [esi + edx], 0xb
pop esi
pop ebp
pop ebx
ret
jle 0x404f70
mov ecx, dword [0x529a64]
mov edi, dword [esi + ecx + 0x2b50]
add edi, eax
mov dword [esi + ecx + 0x2b50], edi
mov ecx, dword [0x529a64]
mov edx, dword [esi + ecx + 0x7b78]
add edx, eax
mov dword [esi + ecx + 0x7b78], edx
mov ecx, dword [0x529a64]
mov ebp, dword [esi + ecx + 0x8bbc]
add ebp, eax
mov dword [esi + ecx + 0x8bbc], ebp
mov ecx, dword [0x529a64]
mov ebx, dword [esi + ecx + 0x7b80]
add ebx, eax
mov dword [esi + ecx + 0x7b80], ebx
mov edx, dword [0x529a64]
mov ecx, dword [esi + edx + 0x7b80]
cmp ecx, 0x3b9aca00
jbe 0x404f53
add ecx, 0xc4653600
mov dword [esi + edx + 0x7b80], ecx
mov ecx, dword [0x529a64]
mov edx, dword [esi + ecx + 0x7b7c]
inc edx
mov dword [esi + ecx + 0x7b7c], edx
mov edx, dword [0x529a64]
mov ecx, dword [esi + edx + 0x8b94]
test ecx, ecx
je 0x404f70
lea ecx, [esi + edx + 0x8b98]
mov edx, dword [esi + edx + 0x8b98]
add edx, eax
mov dword [ecx], edx
pop edi
pop esi
pop ebp
pop ebx
ret