Function at 0x414020
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6398
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x4e02dc]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1b4], ebx
mov eax, dword [0x4e3844]
mov edi, ecx
mov esi, edx
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
mov dword [ebp - 0x1a4], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], ebx
cmp dword [0x4e4cfc], ebx
mov edi, 1
mov dword [ebp - 0x1b4], edi
jne 0x4140a5
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x4e4cfc], edi
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.00413690
add esp, 4
mov dword [ebp - 4], edi
call dword [0x4e0024]
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp - 0x1a8]
test eax, eax
mov ebx, eax
je 0x414112
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
cmp eax, 0x3fffffff
jg 0x414112
lea edi, [eax + eax]
mov eax, edi
call fcn.004a4af0
mov esi, esp
test esi, esi
je 0x414112
mov edx, dword [ebp - 0x1b0]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push edx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x414114
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x414224
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x4c2014
lea edi, [ebp - 0x1ac]
call fcn.0040c0c0
mov ebx, dword [ebp - 0x1ac]
add esp, 8
test ebx, ebx
jne 0x414173
xor edx, edx
xor eax, eax
jmp 0x4141d2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jg 0x4141b6
lea eax, [edi + edi]
call fcn.004a4af0
mov esi, esp
test esi, esi
je 0x4141b6
mov eax, dword [ebp - 0x1b0]
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push eax
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x4141b8
xor eax, eax
mov edx, eax
test edx, edx
je 0x4141d2
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4141c3
sub eax, esi
sar eax, 1
mov esi, dword [ebp - 0x1a4]
mov ebx, eax
push edx
mov eax, esi
call fcn.00401750
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [esi]
push ecx
push edx
push str.ip:_ws__url:_ws
mov ecx, 0x4e49b4
call fcn.00419ab0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1ac]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414224
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1a8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41424a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1a4]
lea esp, [ebp - 0x1c8]
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.004935b6
mov esp, ebp
pop ebp
ret