Function at 0x408dd0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x80
test eax, eax
push ebp
push esi
push edi
jne 0x408e44
push 0x446a44
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x408e13
push 0x446a44
push 0x41a9e8
push 0x41a9dc
call fcn.00405960
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x80
ret
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
mov edi, 0x446afc
mov esi, dword [eax]
mov ax, word [0x446ae8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [0x446af8], 2
jmp 0x408fdd
mov edi, 0x446a44
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408ecb
mov al, byte [esp + edx + 0xc]
cmp al, 0x2e
je 0x408ea1
test al, al
je 0x408e07
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x408e7c
jmp 0x408ecb
lea edi, [esp + edx + 0xd]
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + edx + 0xc], 0
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408f2c
mov al, byte [esp + edx + 0x2c]
cmp al, 0x2e
je 0x408f02
test al, al
je 0x408e07
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x408edd
jmp 0x408f2c
lea edi, [esp + edx + 0x2d]
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + edx + 0x2c], 0
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408f8d
mov al, byte [esp + edx + 0x4c]
cmp al, 0x2e
je 0x408f63
test al, al
je 0x408e07
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x408f3e
jmp 0x408f8d
lea edi, [esp + edx + 0x4d]
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x6c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + edx + 0x4c], 0
lea ecx, [esp + 0xc]
push ecx
call fcn.0040a0e9
lea edx, [esp + 0x30]
mov byte [0x446afc], al
push edx
call fcn.0040a0e9
mov byte [0x446afd], al
lea eax, [esp + 0x54]
push eax
call fcn.0040a0e9
lea ecx, [esp + 0x78]
mov byte [0x446afe], al
push ecx
call fcn.0040a0e9
mov dx, word [0x446ae8]
add esp, 0x10
mov byte [0x446aff], al
mov word [0x446af8], 2
push edx
call dword [sym.imp.WS2_32.dll_htons]
pop edi
mov word [0x446afa], ax
pop esi
mov eax, 1
pop ebp
add esp, 0x80
ret