Function at 0x4d2500
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52003e
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x567570]
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
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1c0], esi
mov dword [ebp - 0x1b8], ebx
lea eax, [ebp + 0xc]
push 0x537290
push eax
mov dword [ebp - 4], ebx
call fcn.00411f45
add esp, 8
test al, al
je 0x4d2568
push 0x537290
mov ecx, esi
call fcn.00401f01
jmp 0x4d273e
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jl 0x4d260f
push str.http:__
push ecx
call fcn.004e9aa6
add esp, 8
cmp eax, ebx
je 0x4d260f
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x4d260f
push 0x537290
push str.http:__
lea ecx, [ebp + 0xc]
call fcn.0040476b
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jl 0x4d260f
push 0x537294
push eax
call fcn.004e9aa6
add esp, 8
cmp eax, ebx
je 0x4d260f
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x4d260f
push eax
push ebx
lea ecx, [ebp - 0x1b8]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004049ae
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00404918
mov eax, dword [ebp - 0x1b8]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d260f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
lea ecx, [ebp - 0x1b4]
push ecx
push 2
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
je 0x4d266b
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x537290
mov ecx, esi
call fcn.00401f01
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4d2758
mov eax, dword [ebp + 0xc]
mov edi, eax
cmp eax, ebx
jne 0x4d2678
xor eax, eax
jmp 0x4d26a7
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4d268b
xor eax, eax
jmp 0x4d26a7
lea esi, [eax + eax]
mov eax, esi
call fcn.004eff00
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.004115b4
mov esi, dword [ebp - 0x1c0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x4d26c0
push 0x537290
mov ecx, esi
call fcn.00401f01
jmp 0x4d273e
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
movzx edx, byte [eax + 3]
movzx ecx, byte [eax + 2]
push edx
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x52add0
push ecx
call fcn.004d0af0
add esp, 0x18
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x1bc]
call fcn.00439fbe
mov byte [ebp - 4], 2
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x1bc]
add eax, 0xfffffff0
push eax
call fcn.0040157b
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x1bc]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d273e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2764
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea esp, [ebp - 0x1d0]
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.004ee5a2
mov esp, ebp
pop ebp
ret 8