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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd10
mov eax, 0x47f954
push ebx
lea ebx, [ebp - 0x60]
push esi
call fcn.004734f8
mov ax, 2
lea edx, [ebp - 0x2f0]
push edx
push eax
mov esi, 0x100
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
je 0x4020dd
mov word [ebx + 0x10], 8
mov edx, 0x47e32a
lea eax, [ebp - 4]
call fcn.0047c1c8
inc dword [ebx + 0x1c]
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.0047c2c8
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.0047c298
pop eax
mov word [ebx + 0x10], 8
inc dword [ebx + 0x1c]
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x402339
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.00420c80
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.00420c80
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.00420c80
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.00420c80
lea edx, [ebp - 8]
push edx
mov edx, str....
lea eax, [ebp - 0xc]
call fcn.0047c1c8
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.0047c2dc
lea eax, [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x18], edx
lea ecx, [ebp - 0x18]
inc dword [ebx + 0x1c]
pop edx
call fcn.0047c2dc
lea eax, [ebp - 0x18]
push eax
mov edx, 0x47e32d
lea eax, [ebp - 0x1c]
call fcn.0047c1c8
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.0047c2dc
lea eax, [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x28]
inc dword [ebx + 0x1c]
pop edx
call fcn.0047c2dc
lea eax, [ebp - 0x28]
push eax
mov edx, 0x47e32f
lea eax, [ebp - 0x2c]
call fcn.0047c1c8
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.0047c2dc
lea eax, [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x38], edx
lea ecx, [ebp - 0x38]
inc dword [ebx + 0x1c]
pop edx
call fcn.0047c2dc
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x3c]
call fcn.0047c200
mov edx, eax
inc dword [ebx + 0x1c]
mov eax, dword [ebp + 8]
call fcn.0047c2c8
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.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0047c298
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