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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b431d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e0138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
xor bl, bl
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov edi, dword [ebp + 8]
lea esi, [eax + 0x4c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 4
nop dword [eax]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41bdd1
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [esi]
mov ecx, dword [esi - 0x10]
lea edx, [eax + edx*8]
mov eax, dword [edx]
cmp eax, ecx
je 0x41bdd4
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
cmp eax, edx
je 0x41bdd1
cmp dword [eax + 8], edi
je 0x41bdee
mov ecx, dword [eax]
mov eax, ecx
cmp ecx, edx
jne 0x41bdc4
mov ecx, dword [esi - 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
push ecx
lea ecx, [esi - 0x14]
call fcn.004201e0
test al, al
jne 0x41bdf2
test bl, bl
jne 0x41bdf2
jmp 0x41bdf4
mov ecx, eax
jmp 0x41bdd4
mov bl, 1
add esi, 0x1c
sub dword [ebp - 0x24], 1
jne 0x41bda0
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x11], bl
mov ebx, edi
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x20], ecx
test ebx, ebx
je 0x41beb9
mov edx, dword [ebp - 0x18]
mov esi, ebx
mov dword [ebp - 0x2c], ebx
mov eax, ebx
mov dword [ebp - 0x24], edx
test esi, esi
je 0x41be3c
mov edi, dword [edi + 0x14]
xor esi, esi
test edi, edi
mov eax, edi
cmove edx, esi
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x14], esi
push ebx
push 0
push 0
mov dword [ebx + 0x1c], 1
mov esi, eax
push dword [ecx + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x41be6a
mov dword [ebp - 0x2c], esi
mov eax, esi
mov ebx, esi
test esi, esi
je 0x41beb6
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
jmp 0x41be23
mov esi, dword [ebp - 0x20]
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebx + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x41be8a
mov dword [eax + 0x14], ebx
jmp 0x41be8d
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
test edi, edi
je 0x41bea2
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x14], edi
xor edi, edi
mov dword [esi + 0x58], eax
mov dword [ebp - 0x18], edi
mov ecx, 1
lea eax, [esi + 0x34]
xchg dword [eax], ecx
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x28]
cmp byte [ebp - 0x11], 0
je 0x41bf8f
push 0
push 0
lea ecx, [ebp - 0x11]
mov byte [ebp - 0x11], 0
push 0
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x20]
push ecx
push 1
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push ecx
push dword [eax + 0x34]
mov dword [ebp - 0x20], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x4e33a4]
cmp eax, dword [esi + 4]
jle 0x41bf39
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41bf39
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], 0x4e0be8
cmp eax, 0x40
je 0x41bf52
cmp eax, 0x4d2
jne 0x41bf8f
mov eax, dword [0x4e33a4]
cmp eax, dword [esi + 4]
jle 0x41bf8f
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41bf8f
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov ecx, edi
mov dword [ebp - 4], 1
test ecx, ecx
je 0x41bfd3
mov esi, ecx
nop
mov eax, dword [edi + 0x14]
mov edi, eax
mov dword [esi + 0x14], 0
mov esi, eax
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ecx + 0x18]
push ecx
push 0
mov dword [ebp - 0x18], 0x4e0bf0
call eax
add esp, 0x10
mov ecx, esi
test esi, esi
jne 0x41bfa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048824f
mov esp, ebp
pop ebp
ret 8