Function at 0x401f60
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd10
mov eax, 0x47e8e4
push ebx
lea ebx, [ebp - 0x60]
push esi
call fcn.00472bac
mov ax, 2
lea edx, [ebp - 0x2f0]
push edx
push eax
mov esi, 0x100
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
je 0x401fe5
mov word [ebx + 0x10], 8
mov edx, 0x47d2b9
lea eax, [ebp - 4]
call fcn.0047b87c
inc dword [ebx + 0x1c]
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.0047b97c
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebx + 0x10], 0x14
push eax
lea eax, [ebp - 4]
dec dword [ebx + 0x1c]
call fcn.0047b94c
pop eax
mov word [ebx + 0x10], 8
inc dword [ebx + 0x1c]
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x402241
push esi
lea ecx, [ebp - 0x160]
push ecx
call sub.WSOCK32.DLL_gethostname
lea eax, [ebp - 0x160]
push eax
call sub.WSOCK32.DLL_gethostbyname
mov word [ebx + 0x10], 0x20
mov esi, eax
xor eax, eax
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x34]
inc dword [ebx + 0x1c]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
movzx eax, byte [eax + 3]
call fcn.0042034c
lea edx, [ebp - 0x34]
xor ecx, ecx
push edx
mov dword [ebp - 0x24], ecx
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x24]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
xor eax, eax
mov al, byte [ecx + 2]
call fcn.0042034c
lea edx, [ebp - 0x24]
xor ecx, ecx
push edx
mov dword [ebp - 0x14], ecx
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
xor eax, eax
mov al, byte [ecx + 1]
call fcn.0042034c
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov dword [ebp - 8], ecx
inc dword [ebx + 0x1c]
lea edx, [ebp - 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
xor eax, eax
mov al, byte [ecx]
call fcn.0042034c
lea edx, [ebp - 8]
push edx
mov edx, str....
lea eax, [ebp - 0xc]
call fcn.0047b87c
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0xc]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x10]
pop eax
call fcn.0047b990
lea eax, [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x18], edx
lea ecx, [ebp - 0x18]
inc dword [ebx + 0x1c]
pop edx
call fcn.0047b990
lea eax, [ebp - 0x18]
push eax
mov edx, 0x47d2bc
lea eax, [ebp - 0x1c]
call fcn.0047b87c
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x1c]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x20]
pop eax
call fcn.0047b990
lea eax, [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x28]
inc dword [ebx + 0x1c]
pop edx
call fcn.0047b990
lea eax, [ebp - 0x28]
push eax
mov edx, 0x47d2be
lea eax, [ebp - 0x2c]
call fcn.0047b87c
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x2c]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x30]
pop eax
call fcn.0047b990
lea eax, [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x38], edx
lea ecx, [ebp - 0x38]
inc dword [ebx + 0x1c]
pop edx
call fcn.0047b990
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x3c]
call fcn.0047b8b4
mov edx, eax
inc dword [ebx + 0x1c]
mov eax, dword [ebp + 8]
call fcn.0047b97c
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebx + 0x10], 0x2c
push eax
lea eax, [ebp - 0x3c]
dec dword [ebx + 0x1c]
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0047b94c
pop eax
mov word [ebx + 0x10], 0x20
inc dword [ebx + 0x1c]
mov edx, dword [ebx]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret