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

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x40547b
cmp dword [esi + 0xc], 0xffffffff
je 0x40547b
cmp byte [esi + 0x24], bl
je 0x40547b
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x7c], ebx
jne 0x40536a
cmp dword [esi + 0x80], ebx
jne 0x40536a
mov edi, dword [esi + 0x20]
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 8], ebx
jg 0x4052ba
add edi, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov eax, dword [ecx]
mov eax, dword [eax + 8]
mov ecx, dword [ecx + 4]
xor edx, edx
cmp eax, ecx
je 0x4052d4
cmp edx, ebx
jle 0x4052d4
mov eax, dword [eax + 8]
dec edx
cmp eax, ecx
jne 0x4052c8
cmp eax, ebx
jne 0x4052da
xor eax, eax
mov ebp, dword [eax]
cmp ebp, ebx
je 0x4052a5
mov dword [esi + 0x80], ebx
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 4]
mov dword [esi + 0x7c], edx
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ebp]
mov eax, dword [esi + 0x78]
push ecx
push edx
push eax
call fcn.00480600
mov ecx, dword [esi + 0x20]
mov edi, dword [ecx + 0xc]
add esp, 0xc
cmp dword [edi + 8], ebx
jle 0x40534e
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ebx, dword [edi + 4]
xor ecx, ecx
cmp eax, ebx
je 0x40532c
nop
test ecx, ecx
jge 0x40532c
mov eax, dword [eax + 8]
inc ecx
cmp eax, ebx
jne 0x405320
cmp eax, edx
je 0x40534c
cmp eax, ebx
je 0x40534c
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
push eax
mov dword [edx + 4], ecx
call fcn.0042d6df
add esp, 4
dec dword [edi + 8]
xor ebx, ebx
mov eax, dword [ebp]
cmp eax, ebx
je 0x405361
push eax
call fcn.0042d6df
add esp, 4
mov dword [ebp], ebx
push ebp
call fcn.0042d6df
add esp, 4
mov eax, dword [esi + 0x7c]
cmp eax, ebx
je 0x405453
mov ecx, dword [esi + 0x80]
cmp eax, ecx
je 0x405453
jb 0x405453
sub eax, ecx
mov edi, 0x5000
cmp eax, 0x5000
ja 0x405399
mov edi, eax
mov edx, dword [esi + 0x20]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x1c]
push 0x5000
push ebx
push ecx
call fcn.00480970
mov edx, dword [esi + 0x78]
add edx, dword [esi + 0x80]
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 8]
push edi
push edx
mov edx, dword [ecx + 0x1c]
push edx
call fcn.00480600
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 8]
mov dword [ecx + 0x14], edi
mov edx, dword [esi + 0x20]
mov ecx, dword [edx + 8]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 8]
add esp, 0x18
mov dword [ecx + 0x10], ebx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
push 0x404a90
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 1
add ecx, 0x14
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40543b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40543b
mov ecx, dword [esi + 0x20]
add ecx, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esi + 0x20]
add edx, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x78]
push 0x32000
push ebx
push eax
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
call fcn.00480970
mov ecx, dword [esi + 0x20]
add esp, 0xc
add ecx, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret