Function at 0x513ca0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd08
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2f8], edx
mov dword [ebp - 0x2f4], edx
mov dword [ebp - 0x2f0], edx
mov dword [ebp - 0x2ec], edx
mov dword [ebp - 0x2e8], edx
mov dword [ebp - 0x2e0], edx
mov dword [ebp - 0x2e4], edx
mov dword [ebp - 0x2dc], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x514047
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x41c794]
call fcn.00404718
mov esi, eax
xor edx, edx
push ebp
push 0x51401a
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1d8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x513d5e
push 0x514060
push dword [ebp - 8]
push 0x514098
lea eax, [ebp - 0x2dc]
mov edx, 3
call fcn.00405a34
mov ecx, dword [ebp - 0x2dc]
mov dl, 1
mov eax, dword [0x40a7f8]
call fcn.004106cc
call fcn.00404ffc
push 0x51409c
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
test edi, edi
je 0x513d7b
push 0x5140a8
push edi
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
test ebx, ebx
je 0x514007
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403cb4
xor edx, edx
push ebp
push 0x514000
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x48], 0x3c
mov eax, pe_nt_image_headers32
call fcn.00402f78
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], pe_nt_image_headers32
mov eax, 0x80
call fcn.00402f78
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x80
mov eax, 0x80
call fcn.00402f78
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x80
mov eax, 0x800
call fcn.00402f78
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x800
mov eax, 0x800
call fcn.00402f78
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x800
mov edi, dword [ebp - 8]
test edi, edi
je 0x513e17
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x48]
push eax
push 0x80000000
push edi
mov eax, dword [ebp - 8]
call fcn.00405b74
push eax
call ebx
test eax, eax
jne 0x513e4b
mov ecx, 0x5140c4
mov dl, 1
mov eax, dword [0x40a7f8]
call fcn.004106cc
call fcn.00404ffc
jmp 0x513fca
mov eax, dword [ebp - 0x38]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x513f35
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x2d8]
push eax
push 0
call sub.kernel32.dll_GetLastError_1
push eax
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x2e4]
lea edx, [ebp - 0x2d8]
mov ecx, pe_nt_image_headers32
call fcn.00405904
mov eax, dword [ebp - 0x2e4]
mov ecx, 0x5140e8
mov edx, 0x5140f4
call fcn.0049431c
mov eax, dword [ebp - 0x2e0]
mov ecx, 0x5140e8
mov edx, 0x514100
call fcn.0049431c
push dword [ebp - 4]
push 0x5140e8
lea eax, [ebp - 0x2e8]
mov edx, dword [ebp - 0x38]
call fcn.0040588c
push dword [ebp - 0x2e8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405a34
push dword [ebp - 4]
push 0x5140e8
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2ec]
call fcn.0040c3a4
push dword [ebp - 0x2ec]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405a34
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x40a7f8]
call fcn.004106cc
call fcn.00404ffc
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x513f41
cmp dword [ebx], 0
jne 0x513f75
push 0x51410c
push dword [ebp - 8]
push 0x514098
lea eax, [ebp - 0x2f0]
mov edx, 3
call fcn.00405a34
mov ecx, dword [ebp - 0x2f0]
mov dl, 1
mov eax, dword [0x40a7f8]
call fcn.004106cc
call fcn.00404ffc
mov eax, dword [ebx]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x2f4]
call fcn.0040588c
mov edx, dword [ebp - 0x2f4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
jmp 0x513fc1
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x2f8]
call fcn.0040588c
mov edx, dword [ebp - 0x2f8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
mov edi, dword [ebx]
test edi, edi
jne 0x513f9d
mov dword [ebp - 0xc], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514007
mov eax, dword [ebp - 0x38]
call fcn.00402fe4
mov eax, dword [ebp - 0x2c]
call fcn.00402fe4
mov eax, dword [ebp - 0x24]
call fcn.00402fe4
mov eax, dword [ebp - 0x1c]
call fcn.00402fe4
mov eax, dword [ebp - 0x14]
call fcn.00402fe4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514021
call sub.wsock32.dll_WSACleanup
ret