Function at 0x414320
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495798
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x4b7110]
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 [0x4b994c]
mov edi, ecx
mov esi, edx
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
mov dword [ebp - 0x1a4], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], ebx
cmp dword [0x4bac98], ebx
mov edi, 1
mov dword [ebp - 0x1b4], edi
jne 0x4143a5
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x4bac98], edi
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.004136f0
add esp, 4
mov dword [ebp - 4], edi
call dword [section..data]
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp - 0x1a8]
test eax, eax
mov ebx, eax
je 0x414412
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
cmp eax, 0x3fffffff
jg 0x414412
lea edi, [eax + eax]
mov eax, edi
call fcn.00467580
mov esi, esp
test esi, esi
je 0x414412
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 0x414414
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x414524
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
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 0x4a1420
lea edi, [ebp - 0x1ac]
call fcn.004039f0
mov ebx, dword [ebp - 0x1ac]
add esp, 8
test ebx, ebx
jne 0x414473
xor edx, edx
xor eax, eax
jmp 0x4144d2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jg 0x4144b6
lea eax, [edi + edi]
call fcn.00467580
mov esi, esp
test esi, esi
je 0x4144b6
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 0x4144b8
xor eax, eax
mov edx, eax
test edx, edx
je 0x4144d2
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4144c3
sub eax, esi
sar eax, 1
mov esi, dword [ebp - 0x1a4]
mov ebx, eax
push edx
mov eax, esi
call fcn.00401f30
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [esi]
push ecx
push edx
push str.ip:_ws__url:_ws
mov ecx, 0x4ba960
call fcn.0041d5c0
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 0x414524
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 0x41454a
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.0045eec1
mov esp, ebp
pop ebp
ret