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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [ebp - 0x10], esi
jne 0x4137bf
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4139b3
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esi + 0x258]
test eax, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ebx
je 0x4138c1
cmp dword [eax], 0
je 0x4138c1
cmp dword [0x534510], 0x64
jbe 0x41380a
mov eax, dword [esi + 0x25c]
test eax, eax
je 0x4138c1
add ecx, 0xfffffc18
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x10]
mov ebx, 0xffffffc0
mov edx, dword [ebp - 8]
xor eax, eax
cmp edx, dword [ecx + ebx*4 + 0x46c]
ja 0x413830
add eax, dword [ecx + ebx*4 + 0x36c]
inc ebx
jne 0x413820
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x258]
mov ebx, dword [ecx]
mov ecx, dword [0x534510]
cmp ecx, 0x64
jae 0x413862
mov eax, dword [esi + 0x25c]
test eax, eax
jne 0x413862
imul ecx, ebx
mov eax, 0x51eb851f
mul ecx
shr edx, 5
mov ebx, edx
mov eax, dword [0x53448c]
test eax, eax
je 0x41387a
mov eax, dword [ebp - 4]
cmp eax, ebx
jb 0x413876
xor ebx, ebx
jmp 0x4138be
sub ebx, eax
jmp 0x4138be
mov ecx, dword [ebp - 0xc]
mov edi, dword [esi + 0x470]
mov edx, ecx
sub edx, edi
imul edx, ebx
mov eax, 0x10624dd3
mul edx
mov eax, dword [ebp - 4]
shr edx, 6
cmp eax, ebx
mov dword [ebp - 8], edx
jb 0x4138a7
mov dword [ebp - 4], 0
jmp 0x4138b3
sub ebx, eax
cmp edx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 8]
jb 0x4138b6
lea eax, [ebp - 4]
mov ebx, dword [eax]
mov dword [esi + 0x470], ecx
mov dword [ebp - 4], ebx
test ebx, ebx
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax + 8]
mov dword [ebp - 8], ecx
je 0x413913
jmp 0x4138d6
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x413913
cmp ecx, ebx
lea eax, [ebp - 8]
jb 0x4138e4
lea eax, [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [esi + 0x24]
push 0
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x413910
mov edx, dword [ebp - 8]
sub edx, eax
add edi, eax
cmp ebx, 0xffffffff
mov dword [ebp - 8], edx
je 0x41390c
sub ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x4138d3
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax + 0xc]
sub ebx, ecx
je 0x4139b2
mov ecx, dword [eax + 0xc]
cmp ebx, ecx
ja 0x41393e
sub ecx, ebx
mov dword [eax + 0xc], ecx
mov eax, dword [eax + 8]
push ecx
lea edx, [eax + ebx]
push edx
push eax
call fcn.004ac5c0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov edi, dword [esi + 0x474]
mov eax, ecx
sub eax, edi
cmp eax, 0x64
mov dword [esi + 0x264], ecx
jae 0x413967
mov ecx, dword [esi + 0x46c]
lea eax, [esi + ecx*4 + 0x26c]
add dword [eax], ebx
jmp 0x413991
mov eax, dword [esi + 0x46c]
inc eax
and eax, 0x3f
mov dword [esi + 0x46c], eax
mov dword [esi + eax*4 + 0x36c], ecx
mov edx, dword [esi + 0x46c]
mov dword [esi + edx*4 + 0x26c], ebx
mov dword [esi + 0x474], ecx
add dword [esi + 0x260], ebx
mov ecx, dword [0x5062d0]
mov eax, dword [0x5062d4]
add ecx, ebx
adc eax, 0
mov dword [0x5062d0], ecx
mov dword [0x5062d4], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret