Function at 0x417eb0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
push ebx
push esi
push edi
lea edi, [ebp - 0x398]
mov ecx, 0xe6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x422048]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x425089
call fcn.0041139d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0
mov eax, 0x202
mov word [ebp - 0x70], ax
mov esi, esp
lea eax, [ebp - 0x208]
push eax
movzx ecx, word [ebp - 0x70]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp esi, esp
call fcn.004113ac
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x417f61
movzx eax, word [ebp - 0x208]
and eax, 0xff
movzx ecx, al
cmp ecx, 2
jne 0x417f61
movzx eax, word [ebp - 0x208]
shr eax, 8
and eax, 0xff
movzx ecx, al
cmp ecx, 2
je 0x417f68
xor eax, eax
jmp 0x4180ca
push 0x20
push 0
lea eax, [ebp - 0x64]
push eax
call fcn.0041117c
add esp, 0xc
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], 6
mov esi, esp
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp esi, esp
call fcn.004113ac
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x417fd2
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp esi, esp
call fcn.004113ac
or eax, 0xffffffff
jmp 0x4180ca
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
jmp 0x417fe3
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
je 0x41809a
mov esi, esp
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.004113ac
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x418044
mov esi, esp
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp esi, esp
call fcn.004113ac
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp esi, esp
call fcn.004113ac
or eax, 0xffffffff
jmp 0x4180ca
mov esi, esp
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp esi, esp
call fcn.004113ac
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x418093
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.004113ac
mov dword [ebp - 0x24], 0xffffffff
jmp 0x417fda
jmp 0x41809a
mov esi, esp
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp esi, esp
call fcn.004113ac
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4180c7
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp esi, esp
call fcn.004113ac
or eax, 0xffffffff
jmp 0x4180ca
mov eax, dword [ebp - 0x24]
push edx
mov ecx, ebp
push eax
lea edx, [0x4180fc]
call fcn.004113e3
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411343
add esp, 0x398
cmp ebp, esp
call fcn.004113ac
mov esp, ebp
pop ebp
ret