Function at 0x40ea30
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x44]
mov cl, byte [eax]
mov byte [ebp - 0x49], cl
add dword [ebp - 0x44], 1
cmp byte [ebp - 0x49], 0
jne 0x40ea4f
mov edx, dword [ebp - 0x44]
sub edx, dword [ebp - 0x48]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 8], 0
je 0x40ea9b
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00425dd3
add esp, 4
mov edx, dword [ebp - 0x40]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00425067
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 8]
push edx
call fcn.0042a860
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
jmp 0x40eae8
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xc]
jge 0x40eb7d
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x10]
movsx edx, byte [eax + ecx]
cmp edx, 0x3a
jne 0x40eb08
jmp 0x40eb7d
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
mov cl, byte [ecx + esi]
mov byte [eax + edx], cl
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x10]
movsx edx, byte [eax + ecx]
cmp edx, 0x2e
jne 0x40eb3d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x40eadf
cmp dword [ebp - 8], 1
jne 0x40eb45
jmp 0x40eadf
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
movsx ecx, byte [edx + eax]
test ecx, ecx
jge 0x40eb68
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x10]
movsx edx, byte [eax + ecx]
cmp edx, 0x39
jg 0x40eb71
mov dword [ebp - 8], 0
jmp 0x40eb78
mov dword [ebp - 8], 1
jmp 0x40eadf
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x54]
mov cl, byte [eax]
mov byte [ebp - 0x59], cl
add dword [ebp - 0x54], 1
cmp byte [ebp - 0x59], 0
jne 0x40eb8f
mov edx, dword [ebp - 0x54]
sub edx, dword [ebp - 0x58]
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x60], 1
ja 0x40ebdf
mov eax, dword [ebp - 0x40]
cmp dword [eax + 8], 0
je 0x40ebd8
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00425dd3
add esp, 4
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 8], 0
xor al, al
jmp 0x40ed5e
cmp dword [ebp - 4], 3
jne 0x40ebf7
cmp dword [ebp - 8], 0
jne 0x40ebf7
mov al, 1
jmp 0x40ed5e
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40ec41
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 8], 0
je 0x40ec35
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00425dd3
add esp, 4
mov edx, dword [ebp - 0x40]
mov dword [edx + 8], 0
xor al, al
jmp 0x40ed5e
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
jmp 0x40ec5c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax*4], 0
je 0x40ed34
mov edx, dword [ebp - 0x40]
cmp dword [edx + 8], 0
je 0x40ec94
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.00425dd3
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
add eax, 1
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x64]
mov dl, byte [ecx]
mov byte [ebp - 0x69], dl
add dword [ebp - 0x64], 1
cmp byte [ebp - 0x69], 0
jne 0x40ecb8
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
add ecx, 1
push ecx
call fcn.00425067
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x74]
mov al, byte [edx]
mov byte [ebp - 0x7d], al
mov ecx, dword [ebp - 0x78]
mov dl, byte [ebp - 0x7d]
mov byte [ecx], dl
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x78]
add ecx, 1
mov dword [ebp - 0x78], ecx
cmp byte [ebp - 0x7d], 0
jne 0x40ed03
mov al, 1
jmp 0x40ed5e
mov edx, dword [ebp - 0x40]
cmp dword [edx + 8], 0
je 0x40ed5c
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00425dd3
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [eax + 8], 0
xor al, al
pop esi
mov esp, ebp
pop ebp
ret