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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x403c
call fcn.0056e450
mov eax, dword [ebp + 8]
sub eax, 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x45861e
dec eax
je 0x4584a2
dec eax
jne 0x45862e
lea eax, [ebx + 0x28]
push eax
mov esi, ebx
call fcn.00458640
test al, al
je 0x45846f
mov ecx, dword [ebx + 0x20]
test ecx, ecx
mov dword [ebx + 0x22c], 2
je 0x458468
mov edx, dword [ebx + 0x1c]
push 0
push edx
push 0x64
call fcn.0054ba20
push 0x23
jmp 0x458620
mov eax, dword [ebx + 0x20]
test eax, eax
mov dword [ebx + 0x22c], 0
je 0x45862e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
push eax
push edx
push 0x65
call fcn.0054ba20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x24]
lea eax, [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x45862e
test byte [esp + 0x14], 1
je 0x4584f8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4584d3
push eax
mov eax, dword [ebx + 0x1c]
push eax
jmp 0x4584e7
call fcn.00458240
test al, al
jne 0x4584f8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebx + 0x1c]
push eax
push ecx
mov ecx, dword [ebx + 0x20]
push 0x65
call fcn.0054ba20
mov esi, ebx
call fcn.004586b0
test byte [esp + 0x14], 0x20
je 0x458552
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x45850e
mov edx, dword [ebx + 0x1c]
push eax
push edx
jmp 0x458541
mov ecx, dword [ebx + 0x27a3c]
xor eax, eax
mov word [esp + 0xd], ax
mov byte [esp + 0xf], al
mov byte [esp + 0xc], 0xff
mov edx, dword [esp + 0xc]
mov dword [ecx + ebx + 0x230], edx
call fcn.00458240
test al, al
jne 0x458552
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x1c]
push eax
push ecx
mov ecx, dword [ebx + 0x20]
push 0x65
call fcn.0054ba20
mov esi, ebx
call fcn.004586b0
test byte [esp + 0x14], 2
je 0x45862e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x458584
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
push eax
push edx
push 0x65
call fcn.0054ba20
mov esi, ebx
call fcn.004586b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [ebx + 0x28254]
mov ecx, esi
mov dword [esp + 0x10], esi
call fcn.0054c230
mov eax, dword [ebx + 0x28244]
test eax, eax
je 0x45860e
lea ecx, [ebx + 0x28240]
xor eax, eax
mov dword [esp + 0xc], ecx
call fcn.00458900
mov esi, eax
lea edi, [esp + 0x40]
mov ecx, 0x1001
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x4040]
test eax, eax
jle 0x4585fa
mov ecx, dword [ebx + 0x24]
push 0
push eax
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x4585fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
push eax
push edx
push 0x65
call fcn.0054ba20
mov esi, ebx
call fcn.004586b0
mov edi, dword [esp + 0xc]
mov ebx, 1
xor eax, eax
call fcn.00458970
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.0054c240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x24]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4