Function at 0x410b4c
Capabilities:
Initialize winsock library
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push 0x6e8
mov eax, 0x5a14f5
call fcn.0058141a
mov dword [ebp - 0x6ec], edx
mov edi, ecx
lea eax, [ebp - 0x6c8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, str.Machines
mov dword [ebp - 0x6f4], 1
push ebx
mov esi, 0xff
lea eax, [ebp - 0x124]
push esi
push eax
push str.30569
mov edx, str.VideoPort
mov ecx, edi
call fcn.00434d68
lea eax, [ebp - 0x124]
push eax
call fcn.0058afab
pop ecx
movzx eax, ax
mov edx, str.Address
push ebx
mov dword [ebp - 0x6e8], eax
mov ecx, edi
push esi
lea eax, [ebp - 0x124]
push eax
push 0x5e66b6
call fcn.00434d68
and dword [ebp - 0x6cc], 0
or ebx, 0xffffffff
cmp dword [ebp + 8], 0
jne 0x410bf0
cmp byte [ebp - 0x124], 0
jne 0x410d28
xor esi, esi
push edi
mov dword [ebp - 0x6e4], esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
mov dword [ebp - 0x6f0], ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [ebp - 0x6cc]
xor eax, eax
test ebx, ebx
je 0x410c25
mov ecx, dword [ebx + 0xc]
mov esi, dword [eax + ecx]
mov dword [ebp - 0x6e4], esi
test esi, esi
je 0x411000
movzx ebx, byte [esi + 1]
add eax, 4
movzx edi, byte [esi + 2]
mov dword [ebp - 0x6dc], eax
movzx eax, byte [esi]
movzx esi, byte [esi + 3]
mov dword [ebp - 0x6d0], eax
call fcn.0044a3d6
push eax
lea ecx, [ebp - 0x6e0]
call fcn.00403f59
and dword [ebp - 4], 0
lea eax, [ebp - 0x6e0]
push esi
push edi
push ebx
push dword [ebp - 0x6d0]
push 0x5ebea0
push eax
call fcn.00404273
mov esi, dword [ebp - 0x6e0]
add esp, 0x14
mov edi, esp
mov dword [ebp - 0x6d0], edi
lea ebx, [esi - 0x10]
push ebx
call fcn.00403e98
pop ecx
add eax, 0x10
lea ecx, [ebp - 0x124]
mov dword [edi], eax
call fcn.004047a2
push ecx
mov ecx, esp
push dword [ebp - 0x6ec]
call fcn.00403e54
lea ecx, [ebp - 0x428]
call fcn.0042b29b
lea eax, [ebp - 0x6cc]
push eax
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp - 0x6e8]
lea ecx, [ebp - 0x124]
movzx edx, ax
call fcn.00404f0b
test eax, eax
jne 0x410d1a
cmp dword [ebp - 0x6cc], eax
je 0x410d1a
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.00404048
mov esi, dword [ebp - 0x6e4]
xor edx, edx
cmp dword [ebp - 0x6cc], 1
mov ebx, dword [ebp - 0x6f0]
mov eax, dword [ebp - 0x6dc]
sete dl
jmp 0x410c15
or ebx, 0xffffffff
lea ecx, [esi - 0x10]
mov dword [ebp - 4], ebx
call fcn.00404048
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x6d8]
call fcn.00403e54
lea eax, [ebp - 0x124]
xor esi, esi
push eax
lea eax, [ebp - 0x528]
inc esi
push eax
mov dword [ebp - 4], esi
call fcn.00589e60
pop ecx
pop ecx
push 6
push esi
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
test esi, esi
je 0x410d9e
push 4
lea eax, [ebp - 0x6f4]
push eax
push 1
push 6
push esi
call edi
cmp eax, ebx
jne 0x410d9e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x6d8]
lea ecx, [ecx - 0x10]
call fcn.00404048
mov eax, ebx
jmp 0x411008
mov dword [ebp - 0x6d4], 0x3e8000
test esi, esi
je 0x410dc6
push 4
lea eax, [ebp - 0x6d4]
push eax
push 0x1001
push 0xffff
push esi
call edi
cmp eax, ebx
je 0x410d82
mov dword [ebp - 0x6d4], 0x64000
test esi, esi
je 0x410dfa
push 4
lea eax, [ebp - 0x6d4]
push eax
push 0x1002
push 0xffff
push esi
call edi
cmp eax, ebx
jne 0x410dfa
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x410ff2
push 0x10
xor ebx, ebx
lea eax, [ebp - 0x538]
push ebx
push eax
call fcn.005838b0
add esp, 0xc
lea eax, [ebp - 0x528]
push 2
pop edi
push eax
mov word [ebp - 0x538], di
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp - 0x6e8]
mov dword [ebp - 0x534], eax
call dword [sym.imp.WS2_32.dll_htons]
push ecx
push ecx
lea edx, [ebp - 0x538]
mov word [ebp - 0x536], ax
mov ecx, esi
call fcn.0040451b
test eax, eax
jns 0x410e6b
push 0x32
call dword [sym.imp.KERNEL32.DLL_Sleep]
test esi, esi
je 0x410e64
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, edi
jmp 0x410ff2
push 0xc
lea edx, [ebp - 0x228]
mov ecx, esi
call fcn.004045bc
lea eax, [ebp - 0x228]
mov byte [ebp - 0x21c], bl
push 0x5e6adc
push eax
call fcn.0058afe0
pop ecx
pop ecx
test eax, eax
jne 0x410fe4
push 1
lea edx, [ebp - 0x328]
mov byte [ebp - 0x328], bl
mov ecx, esi
call fcn.004045bc
mov al, byte [ebp - 0x328]
mov edi, dword [sym.imp.WS2_32.dll_send]
cmp al, 0x43
jne 0x410f4a
push 6
lea edx, [ebp - 0x24]
mov ecx, esi
call fcn.004045bc
push dword [ebp - 0x6ec]
lea eax, [ebp - 0x228]
mov byte [ebp - 0x1e], bl
push eax
mov byte [ebp - 0x228], bl
call fcn.00589e60
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00589e70
add esp, 0x10
lea ecx, [ebp - 0x228]
call fcn.004047ea
push 0xa
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x6dc], eax
push ecx
push eax
call fcn.0058b78d
add esp, 0xc
lea eax, [ebp - 0x6dc]
push ebx
push 4
push eax
push esi
call edi
push 1
lea edx, [ebp - 0x328]
mov byte [ebp - 0x328], 0x61
mov ecx, esi
call fcn.004045bc
mov al, byte [ebp - 0x328]
cmp al, 0x50
je 0x410f5c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push 4
jmp 0x410ff1
push ebx
push 1
mov ebx, 0x5e6ad0
push ebx
push esi
call edi
push 0
push 1
push ebx
push esi
call edi
mov ecx, esi
call fcn.004044f1
test eax, eax
js 0x410fd5
push esi
call fcn.0040fbf0
push ecx
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], 0
push eax
push esi
call fcn.0040fa99
cmp byte [ebp - 0x1c], 0x41
mov edx, 0x5ec32c
push ecx
push ecx
mov byte [ebp - 0x1b], 0
mov ecx, esi
je 0x410fb7
call fcn.004101bd
test esi, esi
je 0x410fb3
mov ecx, esi
call fcn.00410168
push 5
jmp 0x410ff1
call fcn.004101bd
push ecx
push ecx
mov edx, 0x5e6ad4
mov ecx, esi
call fcn.004101bd
mov ecx, esi
call fcn.00410168
push 6
jmp 0x410ff1
test esi, esi
je 0x410fe0
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push 7
jmp 0x410ff1
test esi, esi
je 0x410fef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push 3
pop ebx
mov ecx, dword [ebp - 0x6d8]
add ecx, 0xfffffff0
jmp 0x410d92
xor eax, eax
test edx, edx
sete al
inc eax
call fcn.005813c4
ret 4