Function at 0x404806
Capabilities:
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
push 0x5d4
mov eax, 0x5a0b36
call fcn.0058141a
mov eax, edx
mov dword [ebp - 0x5cc], eax
mov dword [ebp - 0x5d4], ecx
xor edi, edi
xor ebx, ebx
inc edi
mov dword [ebp - 4], edi
mov dword [eax], ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x5d8], edi
push eax
call fcn.00403e98
mov esi, eax
pop ecx
mov dword [ebp - 0x5c8], esi
lea eax, [esi + 0x10]
mov dword [ebp - 0x5e0], eax
push 2
pop eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x5c4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
je 0x4048a0
push 4
lea eax, [ebp - 0x5d8]
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4048a0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, esi
jmp 0x404b8a
mov dword [ebp - 0x5dc], 0x400
test edi, edi
je 0x4048cd
push 4
lea eax, [ebp - 0x5dc]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x404892
push ecx
mov esi, esp
mov dword [ebp - 0x5d0], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x5d0], eax
call fcn.00403e98
pop ecx
add eax, 0x10
lea ecx, [ebp - 0x424]
mov dword [esi], eax
call fcn.004047a2
push 0x10
lea eax, [ebp - 0x434]
push ebx
push eax
call fcn.005838b0
add esp, 0xc
push 2
pop eax
mov word [ebp - 0x434], ax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp - 0x5d4]
mov dword [ebp - 0x430], eax
call dword [sym.imp.WS2_32.dll_htons]
push ecx
push ecx
lea edx, [ebp - 0x434]
mov word [ebp - 0x432], ax
mov ecx, edi
call fcn.0040451b
test eax, eax
jns 0x40498b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp - 0x5cc]
push edi
mov dword [edx], eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x5c8]
call fcn.00404048
mov ecx, dword [ebp - 0x5d0]
call fcn.00404048
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00404048
mov eax, ebx
jmp 0x404ba7
push 0xc
lea edx, [ebp - 0x224]
mov ecx, edi
call fcn.004045bc
lea eax, [ebp - 0x224]
mov byte [ebp - 0x218], bl
push str.MULTIPLICIT5
push eax
call fcn.0058afe0
pop ecx
pop ecx
test eax, eax
jne 0x404b7d
xor esi, esi
mov byte [ebp - 0x124], bl
inc esi
lea edx, [ebp - 0x124]
push esi
mov ecx, edi
call fcn.004045bc
mov al, byte [ebp - 0x124]
cmp al, 0x41
jne 0x404a19
mov edx, dword [ebp - 0x5cc]
push 2
pop eax
mov dword [edx], eax
test edi, edi
je 0x4049f2
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x5c8]
call fcn.00404048
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404048
cmp dword [ebp + 0x10], 0
je 0x404979
mov ebx, esi
jmp 0x404979
cmp al, 0x42
jne 0x404a2b
mov edx, dword [ebp - 0x5cc]
mov dword [edx], 3
jmp 0x4049e7
cmp al, 0x44
jne 0x404a3d
mov edx, dword [ebp - 0x5cc]
mov dword [edx], 4
jmp 0x4049e7
cmp al, 0x43
jne 0x404acc
push 6
lea edx, [ebp - 0x24]
mov ecx, edi
call fcn.004045bc
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov byte [ebp - 0x1e], bl
mov esi, esp
push eax
mov dword [ebp - 0x5d4], esi
call fcn.00403e98
pop ecx
add eax, 0x10
lea ecx, [ebp - 0x324]
mov dword [esi], eax
call fcn.004047a2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.00589e70
pop ecx
pop ecx
lea ecx, [ebp - 0x324]
call fcn.004047ea
push ebx
mov dword [ebp - 0x5d0], eax
lea eax, [ebp - 0x5d0]
push 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
xor esi, esi
mov byte [ebp - 0x124], 0x61
inc esi
lea edx, [ebp - 0x124]
push esi
mov ecx, edi
call fcn.004045bc
mov al, byte [ebp - 0x124]
cmp al, 0x50
je 0x404ae1
mov edx, dword [ebp - 0x5cc]
mov dword [edx], 5
jmp 0x4049e7
push ebx
push esi
push 0x5e6ad0
push edi
call dword [sym.imp.WS2_32.dll_send]
push ebx
push esi
push 0x5e6ad4
push edi
call dword [sym.imp.WS2_32.dll_send]
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x404b0f
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, edi
call fcn.004044f1
cmp eax, 0xffffffff
jne 0x404b4c
test edi, edi
je 0x404b26
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x5c8]
call fcn.00404048
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
test esi, esi
je 0x404974
call fcn.00404048
xor ebx, ebx
inc ebx
jmp 0x404979
test edi, edi
je 0x404b57
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x5c8]
call fcn.00404048
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00404048
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00404048
xor eax, eax
inc eax
jmp 0x404ba7
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x5c8]
call fcn.00404048
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404048
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00404048
xor eax, eax
call fcn.005813c4
ret 0xc