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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432ef0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2e0
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x190
lea eax, [ebp - 0x2c8]
mov dword [esi], 0
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00423800
add esp, 0xc
lea eax, [ebp - 0x2c8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x406121
push 0x104
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00423800
add esp, 0xc
lea eax, [ebp - 0x120]
push 0x104
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x40611b
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x2d0], eax
test eax, eax
je 0x40611b
mov ecx, dword [eax + 0xc]
xor edi, edi
movsx eax, word [eax + 0xa]
dec eax
test eax, eax
jle 0x40611b
mov eax, dword [ecx]
test eax, eax
je 0x40611b
push dword [eax]
add ecx, 4
mov dword [ebp - 0x2d4], ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
test edx, edx
je 0x406100
mov ecx, edx
mov dword [ebp - 0x2dc], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2d8], 0
movups xmmword [ebp - 0x2ec], xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x2cc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405fe2
sub ecx, dword [ebp - 0x2cc]
push ecx
push edx
lea ecx, [ebp - 0x2ec]
call fcn.00408490
lea edx, [ebp - 0x2ec]
lea ecx, [ebp - 0x138]
call fcn.004036e0
mov ecx, dword [ebp - 0x2d8]
cmp ecx, 0x10
jb 0x406047
mov edx, dword [ebp - 0x2ec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40603d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406141
push ecx
push edx
call fcn.004205b6
add esp, 8
cmp dword [ebp - 0x128], 0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d8], 0xf
mov byte [ebp - 0x2ec], 0
je 0x4060c4
lea edx, [ebp - 0x138]
mov ecx, edx
call fcn.00406150
test al, al
je 0x4060c4
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x4060b5
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [ebp - 0x138]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x10], xmm0
add dword [esi + 4], 0x18
jmp 0x406100
lea ecx, [ebp - 0x138]
push ecx
push eax
mov ecx, esi
call fcn.00401e70
mov ecx, dword [ebp - 0x124]
cmp ecx, 8
jb 0x406100
mov edx, dword [ebp - 0x138]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4060f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406141
push ecx
push edx
call fcn.004205b6
add esp, 8
mov eax, dword [ebp - 0x2d0]
inc edi
movsx eax, word [eax + 0xa]
dec eax
cmp edi, eax
jge 0x40611b
mov ecx, dword [ebp - 0x2d4]
jmp 0x405f94
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042552f
int3