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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x10]
and eax, 0xffff
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
and edx, 0xffff
imul edx, edx, 0xb8
mov eax, dword [0x4477e4]
cmp dword [eax + edx + 0x54], 0
jne 0x403b27
push 0
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
mov edx, dword [ecx + eax + 2]
push edx
call sub.WSOCK32.dll_send
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x403b0a
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
mov dl, byte [ecx + eax + 0x1c]
add dl, 1
mov eax, dword [ebp + 8]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
mov byte [ecx + eax + 0x1c], dl
cmp dword [ebp - 0xc], 0x2733
je 0x403ae6
cmp dword [ebp - 0xc], 0x2734
jne 0x403aef
mov dword [ebp - 0x10], 0
jmp 0x403b0a
mov edx, dword [ebp - 0xc]
push edx
push 0x42b488
mov ax, word [ebp + 8]
push eax
call fcn.00404ce9
add esp, 0xc
jmp 0x403df6
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
and edx, 0xffff
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
jmp 0x403baf
mov ax, word [ebp + 8]
push eax
call fcn.0040359e
add esp, 4
mov ecx, dword [ebp + 8]
and ecx, 0xffff
imul ecx, ecx, 0xb8
mov edx, dword [0x4477e4]
xor eax, eax
mov ax, word [edx + ecx + 0x70]
mov ecx, eax
mov edx, dword [ebp + 8]
and edx, 0xffff
imul edx, edx, 0xb8
mov eax, dword [0x4477e4]
xor esi, esi
mov si, word [eax + edx + 0x52]
mov eax, dword [ebp - 0x18]
cdq
idiv esi
lea ecx, [ecx + eax + 1]
mov edx, dword [ebp + 8]
and edx, 0xffff
imul edx, edx, 0xb8
mov eax, dword [0x4477e4]
xor esi, esi
mov si, word [eax + edx + 0x6a]
cmp ecx, esi
jle 0x403baf
push 0
push 0x42b4a4
mov cx, word [ebp + 8]
push ecx
call fcn.00404ba1
add esp, 0xc
jmp 0x403df6
cmp dword [ebp - 0x18], 0
je 0x403ddd
mov edx, dword [ebp + 8]
and edx, 0xffff
imul edx, edx, 0xb8
mov eax, dword [0x4477e4]
mov ecx, dword [eax + edx + 0x58]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x403c8c
mov edx, dword [ebp - 4]
xor eax, eax
mov ax, word [edx + 4]
mov ecx, dword [ebp + 8]
and ecx, 0xffff
imul ecx, ecx, 0xb8
mov edx, dword [0x4477e4]
xor esi, esi
mov si, word [edx + ecx + 0x52]
cmp eax, esi
jge 0x403c8c
mov eax, dword [ebp + 8]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
xor edx, edx
mov dx, word [ecx + eax + 0x52]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 4]
sub edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jle 0x403c42
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 4]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx + 0xa]
push eax
call fcn.0041ad80
add esp, 0xc
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov cx, word [eax + 4]
add cx, word [ebp - 0x14]
mov edx, dword [ebp - 4]
mov word [edx + 4], cx
jmp 0x403dd8
mov eax, dword [ebp + 8]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
xor edx, edx
mov dx, word [ecx + eax + 0x52]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jle 0x403cb8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
push 0x583
call fcn.00415ca2
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403dd6
mov edx, dword [ebp - 4]
mov dword [edx], 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
call fcn.0041ad80
add esp, 0xc
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov ax, word [ebp - 0x14]
mov word [edx + 4], ax
mov ecx, dword [ebp + 8]
and ecx, 0xffff
imul ecx, ecx, 0xb8
mov edx, dword [0x4477e4]
cmp dword [edx + ecx + 0x54], 0
jne 0x403d63
mov eax, dword [ebp + 8]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
mov edx, dword [ebp - 4]
mov dword [ecx + eax + 0x58], edx
mov eax, dword [ebp + 8]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
mov edx, dword [ebp - 4]
mov dword [ecx + eax + 0x54], edx
jmp 0x403d9c
mov eax, dword [ebp + 8]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
mov edx, dword [ecx + eax + 0x58]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
and ecx, 0xffff
imul ecx, ecx, 0xb8
mov edx, dword [0x4477e4]
mov eax, dword [ebp - 4]
mov dword [edx + ecx + 0x58], eax
mov ecx, dword [ebp + 8]
and ecx, 0xffff
imul ecx, ecx, 0xb8
mov edx, dword [0x4477e4]
mov ax, word [edx + ecx + 0x70]
add ax, 1
mov ecx, dword [ebp + 8]
and ecx, 0xffff
imul ecx, ecx, 0xb8
mov edx, dword [0x4477e4]
mov word [edx + ecx + 0x70], ax
jmp 0x403dd8
jmp 0x403df6
jmp 0x403baf
mov eax, dword [ebp + 8]
and eax, 0xffff
imul eax, eax, 0xb8
mov ecx, dword [0x4477e4]
mov byte [ecx + eax + 0x1c], 0
pop esi
mov esp, ebp
pop ebp
ret